/* ============================================
   WEDDING WEBSITE - ALEJANDRO & VICTORIA
   SOPHISTICATED TERRACOTTA DESIGN SYSTEM
   Refined, Artisanal, Unforgettable
   ============================================ */

/* === BASE RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global word-wrap for all text elements */
p, li, a, span, strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* NO hyphens for titles and names */
h1, h2, h3, h4, h5, h6, .nombres, .fecha {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body, .container {
    overflow-x: hidden;
}

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* TERRACOTTA COLOR PALETTE - Warm & Sophisticated */
    --terracotta-warm: #c67c5c;           /* Primary titles - burnt sienna elegance */
    --terracotta-deep: #a86548;           /* Emphasis & hover - rich earth tones */
    --terracotta-soft: #d89680;           /* Delicate accents */
    --terracotta-muted: #b8826e;          /* Subtle decorative elements */

    --gold-antique: #c9a882;              /* Precious details */
    --gold-light: #dbc4a8;                /* Subtle highlights */

    /* Logo Color - Elegant & Professional */
    --logo-primary: #8b4513;              /* Rich brown for navbar logo */

    /* Text Colors - Much Lighter & Readable */
    --text-primary: #5a4a42;              /* Main text - soft brown */
    --text-secondary: #8b7568;            /* Secondary text - warm neutral */
    --text-muted: #a89585;                /* Muted text */
    --text-emphasis: #6d5447;             /* Strong emphasis */

    /* Background Colors - Warm Creamy Bases */
    --bg-cream-light: #f5ede4;            /* Lightest cream */
    --bg-cream: #ebe2d7;                  /* Medium cream */
    --bg-cream-warm: #e8ddd0;             /* Warm cream */
    --bg-overlay-light: rgba(245, 237, 228, 0.7);
    --bg-overlay-warm: rgba(200, 124, 92, 0.04);

    /* Spacing Scale - Optimized for elegant density */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 20px;     /* Reduced from 24px - tighter paragraph spacing */
    --space-lg: 32px;     /* Reduced from 40px - moderate gaps */
    --space-xl: 48px;     /* Reduced from 64px - section internal spacing */
    --space-2xl: 64px;    /* Reduced from 96px - section margins */
    --space-3xl: 96px;    /* Reduced from 128px - major separators */

    /* Typography Scale */
    --font-display-elegant: 'Cinzel Decorative', serif;     /* Ultra elegant names */
    --font-display: 'Cormorant Garamond', serif;            /* Elegant titles */
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --font-size-xs: 1rem;          /* 16px - increased from 14px */
    --font-size-sm: 1.125rem;      /* 18px - increased from 16px */
    --font-size-base: 1.375rem;    /* 22px - increased from 18px */
    --font-size-md: 1.5rem;        /* 24px - increased from 20px */
    --font-size-lg: 2rem;          /* 32px - increased from 28px */
    --font-size-xl: 3.5rem;        /* 56px - increased from 48px */
    --font-size-2xl: 5.5rem;       /* 88px - stays same (main title) */

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.9;
    --line-height-loose: 2.1;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elegant: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Shadows - Sophisticated */
    --shadow-soft: 0 4px 16px rgba(168, 101, 72, 0.08);
    --shadow-medium: 0 8px 24px rgba(168, 101, 72, 0.12);
    --shadow-strong: 0 12px 40px rgba(168, 101, 72, 0.16);
}

/* === BODY === */
body {
    font-family: var(--font-body);
    background: linear-gradient(160deg,
        var(--bg-cream-light) 0%,
        var(--bg-cream) 45%,
        var(--bg-cream-warm) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: var(--space-xl) 0;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, var(--bg-overlay-warm) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--bg-overlay-warm) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* === CONTAINER === */
.container {
    max-width: 900px;
    margin: 0 auto;
    width: 90%;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

/* === HERO SECTION === */
.hero {
    margin-bottom: var(--space-lg);    /* Reduced from xl - tighter hero to content spacing */
    padding: var(--space-xl) 0;        /* Reduced from 2xl - more compact hero */
    position: relative;
    animation: heroFadeIn 2s var(--transition-elegant);

    /* Grid layout: text left, photo right */
    display: grid;
    grid-template-columns: 1fr 330px; /* Increased from 320px to accommodate wider photo */
    gap: var(--space-2xl);
    align-items: center;
}

/* Subtle decorative glow behind composition */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 40% 50%,
        rgba(198, 124, 92, 0.04) 0%,
        rgba(198, 124, 92, 0.02) 40%,
        transparent 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* Text content container - left side */
.hero-text-container {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Photo Container - right side */
.hero-photo-container {
    position: relative;
    width: 310px; /* Increased from 300px to prevent horizontal cropping */
    height: 535px; /* Portrait ratio optimized for 2000x3555px image */
    max-height: 600px;
    justify-self: end;
    overflow: visible; /* Ensure no clipping */
    margin-left: var(--space-lg); /* Extra spacing from text */
}

/* Photo Image - Clean minimal style */
.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full portrait without cropping */
    object-position: center;
    display: block;
    border-radius: 8px;
    box-shadow:
        0 12px 40px rgba(168, 101, 72, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-slow);
    animation: photoReveal 1.2s var(--transition-elegant) 0.3s backwards;
    /* Prevent any browser rendering clipping */
    max-width: 100%;
    max-height: 100%;
}

@keyframes photoReveal {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effect - subtle lift */
.hero-photo:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 56px rgba(168, 101, 72, 0.2),
        0 6px 16px rgba(0, 0, 0, 0.1);
}

.nombres {
    font-family: var(--font-display-elegant);
    font-size: var(--font-size-2xl);
    color: var(--terracotta-warm);
    margin-bottom: var(--space-xl);     /* Reduced from 2xl - tighter name to date spacing */
    font-weight: 400;
    line-height: var(--line-height-tight);
    letter-spacing: 0.03em;
    position: relative;
    text-shadow: 0 2px 12px rgba(198, 124, 92, 0.15);
    animation: titleReveal 1.5s var(--transition-elegant);
}

/* Subtle underline decoration for names */
.nombres::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(to right,
        transparent,
        var(--terracotta-soft) 20%,
        var(--gold-antique) 50%,
        var(--terracotta-soft) 80%,
        transparent);
    opacity: 0.6;
}

.fecha {
    font-family: var(--font-body);
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: var(--space-xl);  /* Reduced from 2xl - tighter date to divider spacing */
    margin-top: var(--space-lg);     /* Reduced from xl - tighter name to date spacing */
    animation: fadeInUp 1.8s var(--transition-elegant);
}

/* === ADVANCED DIVIDERS === */

/* Main Hero Divider - Elaborate Floral */
.divider {
    width: 200px;
    height: 60px;
    margin: var(--space-xl) auto;  /* Reduced from 2xl - tighter divider spacing */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central ornamental element */
.divider::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--terracotta-warm);
    border-radius: 50%;
    box-shadow:
        0 0 0 4px var(--bg-cream-light),
        0 0 0 5px var(--terracotta-soft);
    z-index: 2;
    animation: dividerPulse 3s ease-in-out infinite;
}

/* Horizontal line through divider */
.divider::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        var(--terracotta-muted) 30%,
        var(--terracotta-warm) 50%,
        var(--terracotta-muted) 70%,
        transparent);
    top: 50%;
    left: 0;
}

/* Section Dividers - Art Nouveau Inspired */
.divider-small {
    width: 280px;
    height: 50px;
    margin: var(--space-xl) auto;  /* Reduced from 2xl - tighter section divider spacing */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central diamond shape */
.divider-small::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--terracotta-warm);
    transform: rotate(45deg);
    z-index: 2;
    box-shadow:
        0 0 8px rgba(198, 124, 92, 0.3);
}

/* Decorative line with gradient */
.divider-small::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        var(--terracotta-soft) 20%,
        var(--gold-antique) 40%,
        var(--terracotta-warm) 50%,
        var(--gold-antique) 60%,
        var(--terracotta-soft) 80%,
        transparent);
    opacity: 0.5;
}

/* Floral petal decorations on sides */
.divider-small {
    --petal-size: 16px;
    --petal-offset: 60px;
}

/* Left petals */
.divider-small {
    background:
        /* Left side petals */
        radial-gradient(circle at calc(50% - var(--petal-offset)) 50%,
            var(--terracotta-soft) 0%,
            var(--terracotta-soft) 3px,
            transparent 3px),
        radial-gradient(circle at calc(50% - var(--petal-offset) - 12px) 45%,
            var(--terracotta-muted) 0%,
            var(--terracotta-muted) 2.5px,
            transparent 2.5px),
        radial-gradient(circle at calc(50% - var(--petal-offset) - 12px) 55%,
            var(--terracotta-muted) 0%,
            var(--terracotta-muted) 2.5px,
            transparent 2.5px),
        /* Right side petals */
        radial-gradient(circle at calc(50% + var(--petal-offset)) 50%,
            var(--terracotta-soft) 0%,
            var(--terracotta-soft) 3px,
            transparent 3px),
        radial-gradient(circle at calc(50% + var(--petal-offset) + 12px) 45%,
            var(--terracotta-muted) 0%,
            var(--terracotta-muted) 2.5px,
            transparent 2.5px),
        radial-gradient(circle at calc(50% + var(--petal-offset) + 12px) 55%,
            var(--terracotta-muted) 0%,
            var(--terracotta-muted) 2.5px,
            transparent 2.5px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    animation: dividerReveal 1s ease-out forwards;
}

/* === SECTIONS === */
.seccion {
    margin: var(--space-2xl) 0;     /* Reduced from 96px to 64px via variable update */
    padding: var(--space-lg) 0;     /* Reduced from 64px to 32px via variable update */
    position: relative;
    opacity: 0;
    animation: sectionFadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
}

/* Stagger animation delays for sections */
.seccion:nth-child(2) { animation-delay: 0.3s; }
.seccion:nth-child(3) { animation-delay: 0.4s; }
.seccion:nth-child(4) { animation-delay: 0.5s; }

.seccion h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    color: var(--terracotta-warm);
    margin-bottom: var(--space-lg);      /* Reduced from xl - tighter heading to content */
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: var(--line-height-tight);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 12px rgba(198, 124, 92, 0.2);  /* Enhanced shadow for hierarchy */
    transition: all var(--transition-slow);
}

/* Elaborate decorative underline for h2 */
.seccion h2::before {
    content: '';
    position: absolute;
    bottom: -12px;    /* Reduced from -16px - bring decoration closer */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(to right,
        transparent,
        var(--terracotta-soft) 20%,
        var(--terracotta-warm) 50%,
        var(--terracotta-soft) 80%,
        transparent);
    opacity: 0.6;     /* Increased from 0 - show by default for better hierarchy */
    transition: opacity var(--transition-slow);
}

/* Small decorative dots on h2 underline */
.seccion h2::after {
    content: '';
    position: absolute;
    bottom: -14px;    /* Reduced from -18px - bring closer to match ::before */
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--gold-antique);
    border-radius: 50%;
    box-shadow:
        -30px 0 0 var(--terracotta-soft),
        30px 0 0 var(--terracotta-soft);
    opacity: 0.6;     /* Increased from 0 - show by default for better hierarchy */
    transition: opacity var(--transition-slow) 0.1s;
}

/* Enhance decorations on hover or focus */
.seccion h2:hover::before,
.seccion h2:hover::after {
    opacity: 1;  /* Increase from default 0.6 to full opacity on hover */
}

.seccion p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-loose);
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: var(--space-md);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    transition: color var(--transition-base);
}

/* Subtle emphasis on paragraph hover */
.seccion p:hover {
    color: var(--text-emphasis);
}

/* Strong emphasis with terracotta */
.seccion p strong {
    font-weight: 500;
    color: var(--terracotta-deep);
    letter-spacing: 0.01em;
}

/* === SPECIFIC SECTIONS === */

/* Nosotros - Simple text format */
.nosotros {
    text-align: center;
}

.nosotros p {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-loose);
    font-weight: 400;
}

/* Hospedaje */
.hospedaje {
    position: relative;
}

/* Hospedaje Image Styling - Watercolor Frame */
.hospedaje-image-container {
    margin: var(--space-lg) auto var(--space-xl) auto;  /* Reduced spacing around image */
    max-width: 800px;
    position: relative;
    padding: var(--space-md);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(245, 237, 228, 0.95) 50%,
        rgba(235, 226, 215, 0.9) 100%);
    border-radius: 4px;
    box-shadow:
        0 12px 48px rgba(168, 101, 72, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(198, 124, 92, 0.1);
    transition: all var(--transition-slow);
}

.hospedaje-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    padding: 3px;
    background: linear-gradient(135deg,
        var(--terracotta-soft) 0%,
        var(--gold-antique) 25%,
        var(--terracotta-warm) 50%,
        var(--gold-light) 75%,
        var(--terracotta-muted) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.hospedaje-image-container:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 64px rgba(168, 101, 72, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(198, 124, 92, 0.15);
}

.hospedaje-image-container:hover::before {
    opacity: 0.5;
}

.hospedaje-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

/* Decorative corner flourishes */
.hospedaje-image-container::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 2px;
    background:
        /* Top left corner */
        radial-gradient(circle at 0% 0%, var(--terracotta-warm) 2px, transparent 2px),
        radial-gradient(circle at 0% 0%, var(--gold-antique) 1px, transparent 1px) 8px 8px,
        /* Top right corner */
        radial-gradient(circle at 100% 0%, var(--terracotta-warm) 2px, transparent 2px),
        radial-gradient(circle at 100% 0%, var(--gold-antique) 1px, transparent 1px) calc(100% - 8px) 8px,
        /* Bottom left corner */
        radial-gradient(circle at 0% 100%, var(--terracotta-warm) 2px, transparent 2px),
        radial-gradient(circle at 0% 100%, var(--gold-antique) 1px, transparent 1px) 8px calc(100% - 8px),
        /* Bottom right corner */
        radial-gradient(circle at 100% 100%, var(--terracotta-warm) 2px, transparent 2px),
        radial-gradient(circle at 100% 100%, var(--gold-antique) 1px, transparent 1px) calc(100% - 8px) calc(100% - 8px);
    background-repeat: no-repeat;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.hospedaje-image-container:hover::after {
    opacity: 0.6;
}

.hospedaje .detalle {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-style: italic;
}

.hospedaje .precio {
    font-weight: 500;
    color: var(--terracotta-deep);
    margin-top: var(--space-md);     /* Reduced from lg - tighter spacing */
    font-size: var(--font-size-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg,
        rgba(198, 124, 92, 0.1) 0%,
        rgba(201, 168, 130, 0.15) 100%);
    display: inline-block;
    position: relative;
    clip-path: polygon(
        12px 0,
        100% 0,
        100% calc(100% - 12px),
        calc(100% - 12px) 100%,
        0 100%,
        0 12px
    );
    box-shadow:
        0 6px 24px rgba(168, 101, 72, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 1px 0 0 rgba(198, 124, 92, 0.2);
    transition: all var(--transition-base);
}

/* Decorative corner accent */
.hospedaje .precio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background:
        linear-gradient(135deg, var(--terracotta-warm) 0%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.6;
}

/* Bottom right corner accent */
.hospedaje .precio::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background:
        linear-gradient(135deg, transparent 0%, var(--gold-antique) 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.6;
}

.hospedaje .precio:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(168, 101, 72, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 1px 0 0 rgba(198, 124, 92, 0.3);
}

.hospedaje .precio:hover::before {
    opacity: 0.9;
}

.hospedaje .precio:hover::after {
    opacity: 0.9;
}

/* Preboda */
.preboda {
    text-align: center;
}

/* === DÍA B - AUTHENTIC HUMAN-CENTERED DESIGN === */

.dia-b {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

/* Narrative intro - Warm conversational tone */
.dia-b-intro {
    font-family: var(--font-display);
    font-size: var(--font-size-md);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    max-width: 620px;
    margin: 0 auto var(--space-xl) auto;
    position: relative;
    padding: 0 var(--space-md);
}

/* Subtle hand-drawn underline on intro - imperfect on purpose */
.dia-b-intro::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 2px;
    background: var(--terracotta-soft);
    opacity: 0.4;
    /* Intentional slight curve - not perfectly straight */
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

/* Ceremony details card - Organic asymmetric layout */
.ceremonia-card {
    max-width: 740px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(142deg,
        rgba(245, 237, 228, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(235, 226, 215, 0.75) 100%);
    border-radius: 8px 2px 8px 2px; /* Asymmetric corners - human touch */
    position: relative;
    box-shadow:
        0 6px 28px rgba(168, 101, 72, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(198, 124, 92, 0.15);
    transition: all var(--transition-slow);
}

/* Subtle hover - not too perfect */
.ceremonia-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 36px rgba(168, 101, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Organic corner accent - top left (intentionally imperfect) */
.ceremonia-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 80px;
    height: 80px;
    background:
        /* Main curved line - not perfectly circular */
        radial-gradient(ellipse at 0% 0%, transparent 58%, var(--terracotta-soft) 58%, var(--terracotta-soft) 60%, transparent 60%),
        /* Inner accent dots - irregular spacing */
        radial-gradient(circle at 18px 10px, var(--terracotta-muted) 2px, transparent 2px),
        radial-gradient(circle at 12px 22px, var(--gold-antique) 1.5px, transparent 1.5px),
        radial-gradient(circle at 28px 18px, var(--terracotta-warm) 1.5px, transparent 1.5px);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

/* Bottom right accent - different from top left */
.ceremonia-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 70px; /* Intentionally different size */
    height: 70px;
    background:
        radial-gradient(ellipse at 100% 100%, transparent 62%, var(--gold-antique) 62%, var(--gold-antique) 64%, transparent 64%),
        radial-gradient(circle at 52px 60px, var(--terracotta-soft) 1.5px, transparent 1.5px),
        radial-gradient(circle at 58px 48px, var(--terracotta-warm) 2px, transparent 2px);
    opacity: 0.5;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.ceremonia-card:hover::before,
.ceremonia-card:hover::after {
    opacity: 0.7;
}

/* Individual detail blocks - asymmetric positioning */
.ceremonia-detalle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-md);
    position: relative;
}

/* Offset middle block for natural asymmetry */
.ceremonia-hora {
    margin-left: -8px; /* Slight left offset */
    padding-top: var(--space-xl); /* Different top spacing */
}

.ceremonia-lugar {
    margin-left: 12px; /* Slight right offset - opposite direction */
    padding-top: var(--space-lg);
}

/* Hand-drawn doodles - organic decorative elements */
.detalle-doodle {
    color: var(--terracotta-soft);
    opacity: 0.6;
    margin-bottom: var(--space-xs);
    /* Subtle animation on load - feels drawn */
    animation: doodleDraw 1.2s ease-out;
}

@keyframes doodleDraw {
    from {
        opacity: 0;
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        opacity: 0.6;
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

/* Typography hierarchy - conversational feel */
.detalle-label {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.detalle-destacado {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--terracotta-deep);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.3;
    margin-top: 2px;
}

.detalle-secundario {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
    margin-top: -4px;
}

/* Map link - integrated naturally, not generic button */
.detalle-mapa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-sm);
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--terracotta-deep);
    text-decoration: none;
    border: 1.5px solid var(--terracotta-soft);
    border-radius: 20px 4px 20px 4px; /* Asymmetric rounded corners */
    background: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-base);
    letter-spacing: 0.03em;
    position: relative;
    overflow: visible;
}

/* Map icon color */
.detalle-mapa svg {
    color: var(--terracotta-warm);
    transition: transform var(--transition-base);
}

/* Natural hover - not over-designed */
.detalle-mapa:hover {
    color: white;
    background: linear-gradient(125deg, var(--terracotta-warm), var(--terracotta-deep));
    border-color: var(--terracotta-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 101, 72, 0.25);
    border-bottom: 1.5px solid var(--terracotta-deep); /* Override global link style */
}

.detalle-mapa:hover svg {
    color: white;
    transform: translateY(-1px);
}

/* Override global link styles for map button */
.detalle-mapa::after {
    display: none;
}

/* Closing note - warm send-off */
.dia-b-cierre {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
    margin-top: var(--space-xl);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
    opacity: 0.85;
}

/* === PANORÁMICA FULL WIDTH === */
.panoramica-section {
    position: relative;
    width: 100vw;
    height: 850px;
    margin-left: calc(-50vw + 50%);
    margin-top: var(--space-3xl);      /* Keep 96px - dramatic visual break */
    margin-bottom: var(--space-3xl);   /* Keep 96px - intentional pause */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Diagonal gradient overlay for perfect angle matching */
.panoramica-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg,
        rgba(245, 237, 228, 0.4) 0%,
        transparent 15%,
        transparent 85%,
        rgba(232, 221, 208, 0.4) 100%);
    z-index: 3;
    pointer-events: none;
}

.panoramica-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay terracotta sutil */
.panoramica-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(198, 124, 92, 0.15) 0%,
        rgba(168, 101, 72, 0.12) 50%,
        rgba(201, 168, 130, 0.15) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* ADVANCED MULTI-LAYER MASK - Organic Watercolor Fade */
.panoramica-image {
    /* Eased cubic-bezier fade for natural watercolor blending */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 3%,
        rgba(0,0,0,0.4) 6%,
        rgba(0,0,0,0.7) 10%,
        rgba(0,0,0,0.9) 14%,
        black 18%,
        black 82%,
        rgba(0,0,0,0.9) 86%,
        rgba(0,0,0,0.7) 90%,
        rgba(0,0,0,0.4) 94%,
        rgba(0,0,0,0.1) 97%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.1) 3%,
        rgba(0,0,0,0.4) 6%,
        rgba(0,0,0,0.7) 10%,
        rgba(0,0,0,0.9) 14%,
        black 18%,
        black 82%,
        rgba(0,0,0,0.9) 86%,
        rgba(0,0,0,0.7) 90%,
        rgba(0,0,0,0.4) 94%,
        rgba(0,0,0,0.1) 97%,
        transparent 100%
    );
}

/* ATMOSPHERIC BLENDING LAYERS - Extended and Refined */

/* Top Edge - Seamless Background Integration */
.panoramica-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(160deg,
        #f5ede4 0%,
        #ebe2d7 45%,
        #e8ddd0 100%);
    z-index: 2;
    /* Sophisticated eased curve - eliminates visible transitions */
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 8%,
        rgba(0,0,0,0.92) 15%,
        rgba(0,0,0,0.82) 25%,
        rgba(0,0,0,0.68) 35%,
        rgba(0,0,0,0.5) 45%,
        rgba(0,0,0,0.32) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.08) 75%,
        rgba(0,0,0,0.02) 85%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 8%,
        rgba(0,0,0,0.92) 15%,
        rgba(0,0,0,0.82) 25%,
        rgba(0,0,0,0.68) 35%,
        rgba(0,0,0,0.5) 45%,
        rgba(0,0,0,0.32) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.08) 75%,
        rgba(0,0,0,0.02) 85%,
        transparent 100%
    );
}

/* Bottom Edge - Seamless Background Integration */
.panoramica-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(160deg,
        #f5ede4 0%,
        #ebe2d7 45%,
        #e8ddd0 100%);
    z-index: 2;
    /* Sophisticated eased curve - eliminates visible transitions */
    mask-image: linear-gradient(
        to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 8%,
        rgba(0,0,0,0.92) 15%,
        rgba(0,0,0,0.82) 25%,
        rgba(0,0,0,0.68) 35%,
        rgba(0,0,0,0.5) 45%,
        rgba(0,0,0,0.32) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.08) 75%,
        rgba(0,0,0,0.02) 85%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.98) 8%,
        rgba(0,0,0,0.92) 15%,
        rgba(0,0,0,0.82) 25%,
        rgba(0,0,0,0.68) 35%,
        rgba(0,0,0,0.5) 45%,
        rgba(0,0,0,0.32) 55%,
        rgba(0,0,0,0.18) 65%,
        rgba(0,0,0,0.08) 75%,
        rgba(0,0,0,0.02) 85%,
        transparent 100%
    );
}

/* Texto sobre la imagen */
.panoramica-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 var(--space-md);
}

.panoramica-label {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    color: white;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    text-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: var(--space-md) var(--space-xl);
    background: rgba(198, 124, 92, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    animation: panoramicaTextFadeIn 1.5s var(--transition-elegant);
}

@keyframes panoramicaTextFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === LINKS === */
a {
    color: var(--terracotta-deep);
    text-decoration: none;
    border-bottom: 1.5px solid var(--terracotta-soft);
    transition: all var(--transition-base);
    padding-bottom: 2px;
    position: relative;
}

/* Elegant underline hover effect */
a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--terracotta-warm), var(--gold-antique));
    transition: width var(--transition-slow);
}

a:hover::after,
a:focus::after {
    width: 100%;
}

a:hover,
a:focus {
    color: var(--terracotta-warm);
    border-bottom-color: transparent;
    outline: none;
}

a:focus-visible {
    outline: 2px solid var(--terracotta-warm);
    outline-offset: 4px;
    border-radius: 2px;
}

/* === NOTA IMPORTANTE - Asymmetric Minimalism === */
.nota {
    padding: var(--space-lg) var(--space-md);  /* Reduced from xl lg - more compact note */
    padding-left: calc(var(--space-md) + 12px);
    background: linear-gradient(125deg,
        rgba(198, 124, 92, 0.08) 0%,
        rgba(235, 226, 215, 0.6) 40%,
        rgba(201, 168, 130, 0.1) 100%);
    border-radius: 0 8px 8px 0;
    position: relative;
    box-shadow:
        -4px 0 0 0 var(--terracotta-warm),
        0 8px 32px rgba(168, 101, 72, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.nota:hover {
    box-shadow:
        -6px 0 0 0 var(--terracotta-deep),
        0 12px 48px rgba(168, 101, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Decorative quotation mark */
.nota::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    left: 24px;
    font-size: 5rem;
    color: var(--terracotta-soft);
    opacity: 0.15;
    font-family: var(--font-display);
    line-height: 1;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.nota:hover::before {
    opacity: 0.25;
}

/* Asymmetric accent line */
.nota::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 2px;
    background: linear-gradient(to left,
        var(--gold-antique),
        transparent);
    opacity: 0.4;
    transition: width var(--transition-slow);
}

.nota:hover::after {
    width: 60%;
    opacity: 0.6;
}

.nota-importante {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: var(--line-height-loose);
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* === CONFIRMATION BUTTON === */
.confirmacion {
    padding: var(--space-xl) 0;  /* Reduced from 2xl - tighter section padding */
}

.btn-cuestionario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-lg);  /* Reduced from xl - tighter button spacing */
    padding: 20px 56px;
    color: var(--terracotta-deep);
    text-decoration: none;
    border: 2.5px solid var(--terracotta-warm);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: all var(--transition-elegant);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 4px 16px rgba(198, 124, 92, 0.15);
}

/* Sophisticated gradient slide effect */
.btn-cuestionario::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
        var(--terracotta-warm) 0%,
        var(--terracotta-deep) 100%);
    transition: left var(--transition-elegant);
    z-index: -1;
}

/* Shimmer effect */
.btn-cuestionario::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn-cuestionario:hover::before,
.btn-cuestionario:focus::before {
    left: 0;
}

.btn-cuestionario:hover::after {
    width: 300px;
    height: 300px;
}

.btn-cuestionario:hover,
.btn-cuestionario:focus {
    color: white;
    border-color: var(--terracotta-deep);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(198, 124, 92, 0.3);
    border-bottom: 2.5px solid var(--terracotta-deep);
}

.btn-cuestionario:active {
    transform: translateY(-1px) scale(1);
}

.btn-cuestionario:focus-visible {
    outline: 3px solid var(--terracotta-soft);
    outline-offset: 6px;
}

/* === REGALO SECTION === */
.regalo {
    padding: var(--space-xl) var(--space-lg);  /* Reduced from 2xl - more compact section */
}

.cuenta-bancaria {
    margin-top: var(--space-xl);
    text-align: center;
}

.cuenta-numero {
    font-size: 1.8rem;
    color: #5D4037 !important;
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: 900 !important;
    line-height: 1.6;
    margin: 0;
    letter-spacing: 0.15em;
    word-spacing: 0.3em;
}

.cuenta-numero strong,
.cuenta-grupo {
    color: #5D4037 !important;
    font-weight: 900 !important;
}

.cuenta-grupo {
    display: inline;
    white-space: nowrap;
}

/* === CONTACTO - AUTHENTIC HUMAN-CENTERED DESIGN === */

.contacto {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}

/* Warm invitation intro */
.contacto-intro {
    font-family: var(--font-display);
    font-size: var(--font-size-md);
    line-height: var(--line-height-loose);
    color: var(--text-secondary);
    font-weight: 400;
    font-style: italic;
    max-width: 580px;
    margin: 0 auto var(--space-xl) auto;
    position: relative;
}

/* Subtle hand-drawn underline - imperfect on purpose */
.contacto-intro::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: var(--terracotta-soft);
    opacity: 0.35;
    /* Intentional slight curve - not perfectly straight */
    border-radius: 50% 50% 0 0 / 25% 25% 0 0;
}

/* Contact cards container - asymmetric grid */
.contacto-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 820px;
    margin: var(--space-3xl) auto var(--space-xl) auto;
    align-items: start; /* Prevent equal heights - more organic */
}

/* Base contact card - shared foundation */
.contacto-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    background: linear-gradient(138deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(245, 237, 228, 0.8) 45%,
        rgba(235, 226, 215, 0.7) 100%);
    border: 1.5px solid rgba(198, 124, 92, 0.2);
    box-shadow:
        0 8px 32px rgba(168, 101, 72, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all var(--transition-slow);
    overflow: visible;
}

/* Both cards - same alignment */
.contacto-alejandro,
.contacto-victoria {
    border-radius: 8px; /* Uniform corners */
}

/* Card hover - subtle lift */
.contacto-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 48px rgba(168, 101, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Tape effect - top left corner */
.contacto-card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 80px;
    height: 25px;
    background: rgba(232, 221, 208, 0.7);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: rotate(-3deg);
    z-index: 10;
    border-radius: 2px;
    pointer-events: none;
}

/* Tape effect - top right corner */
.contacto-card::after {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 80px;
    height: 25px;
    background: rgba(232, 221, 208, 0.7);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: rotate(3deg);
    z-index: 10;
    border-radius: 2px;
    pointer-events: none;
}


/* Hand-drawn doodles - organic decorative elements */
.contacto-doodle {
    color: var(--terracotta-soft);
    opacity: 0.55;
    margin-bottom: var(--space-xs);
}

/* Name typography */
.contacto-nombre {
    font-family: var(--font-display);
    font-size: var(--font-size-lg);
    color: var(--terracotta-deep);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-top: var(--space-xs);
}

/* Phone number - prominent but not clinical */
.contacto-numero {
    font-family: var(--font-body);
    font-size: var(--font-size-md);
    font-weight: 500;
    color: var(--terracotta-warm);
    text-decoration: none;
    border-bottom: 2px solid var(--terracotta-soft);
    padding: 8px 20px;
    margin-top: var(--space-xs);
    transition: all var(--transition-base);
    letter-spacing: 0.08em;
    border-radius: 20px 4px 20px 4px; /* Asymmetric like "Día B" map link */
    background: rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Phone number hover - warm invitation */
.contacto-numero:hover,
.contacto-numero:focus {
    color: white;
    background: linear-gradient(130deg, var(--terracotta-warm), var(--terracotta-deep));
    border-color: var(--terracotta-deep);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(168, 101, 72, 0.3);
    border-bottom: 2px solid var(--terracotta-deep); /* Override global link style */
}

/* Override global link ::after for phone numbers */
.contacto-numero::after {
    display: none;
}

/* Closing warm note - final human touch */
.contacto-cierre {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
    margin-top: var(--space-lg);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
    opacity: 0.9;
    position: relative;
}

/* Playful closing note decoration */
.contacto-cierre::before {
    content: '\2764'; /* Heart symbol - warm touch */
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--terracotta-soft);
    opacity: 0.4;
}

/* === FOOTER === */
footer {
    margin-top: var(--space-2xl);     /* Reduced from 3xl - tighter footer spacing */
    padding-top: var(--space-xl);     /* Reduced from 2xl - more compact */
    position: relative;
}

/* Decorative footer divider */
footer .divider {
    margin-bottom: var(--space-lg);   /* Reduced from xl - tighter divider to text */
}

.footer-text {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--text-muted);
    margin-top: var(--space-lg);      /* Reduced from xl - tighter text spacing */
    line-height: var(--line-height-normal);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* === ANIMATIONS === */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dividerReveal {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes dividerPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.8;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === RESPONSIVE DESIGN === */

/* Large Desktop (> 1200px) - Extra refinement */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .seccion p {
        max-width: 800px;
    }

    .hero {
        grid-template-columns: 1fr 370px; /* Increased to accommodate wider photo */
        gap: var(--space-xl);
    }

    .hero-photo-container {
        width: 350px; /* Increased to prevent horizontal cropping */
        height: 605px;
        max-height: 650px;
    }
}

/* Tablet (< 1024px) */
@media (max-width: 1024px) {
    :root {
        --font-size-2xl: 4.5rem;
        --font-size-xl: 3rem;
        --font-size-lg: 1.75rem;
        --font-size-md: 1.35rem;
        --font-size-base: 1.25rem;
        --space-3xl: 96px;
    }

    .container {
        width: 92%;
    }

    .hero {
        grid-template-columns: 1fr 260px;
        gap: var(--space-lg);
    }

    .hero-photo-container {
        width: 270px; /* Increased to prevent horizontal cropping */
        height: 463px;
        max-height: 500px;
    }

    .panoramica-section {
        height: 650px;
        margin-top: var(--space-2xl);
        margin-bottom: var(--space-2xl);
    }

    /* Maintain proportional overlay height for tablets */
    .panoramica-overlay::before,
    .panoramica-overlay::after {
        height: 210px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    :root {
        --font-size-2xl: 3.2rem;
        --font-size-xl: 2.5rem;
        --font-size-lg: 1.65rem;
        --font-size-md: 1.35rem;
        --font-size-base: 1.2rem;
        --font-size-sm: 1.0625rem;

        /* Mobile-specific tighter spacing */
        --space-lg: 24px;     /* Reduced from 32px desktop */
        --space-xl: 32px;     /* Reduced from 48px desktop */
        --space-2xl: 48px;    /* Reduced from 64px desktop */
        --space-3xl: 64px;    /* Reduced from 96px desktop */
    }

    body {
        padding: 46px 0 var(--space-lg) 0 !important;
    }

    /* Navbar Mobile - Compact & Clean */
    .navbar {
        padding: 0;
        box-shadow: 0 2px 8px rgba(168, 101, 72, 0.1);
        transition: transform var(--transition-slow);
    }

    /* Hide navbar when mobile menu is open */
    body.menu-open .navbar {
        transform: translateY(-100%);
    }

    /* Hide navbar on scroll down, show on scroll up */
    .navbar.hidden {
        transform: translateY(-100%);
    }

    .navbar-content {
        padding: 5px var(--space-md) !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        min-height: 42px !important;
    }

    /* Logo compact on mobile */
    .navbar-logo {
        order: 1;
        flex-shrink: 0;
        z-index: 1001;
    }

    .navbar-logo img {
        height: 50px !important;
        width: auto;
    }

    /* Hamburger button on the right */
    .navbar-toggle {
        display: flex !important;
        order: 3;
        flex-shrink: 0;
        z-index: 1001;
        margin-left: auto;
    }

    /* CENTER MODAL MENU */
    .navbar-menu {
        position: fixed;
        top: 15vh;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        width: 85vw;
        max-width: 400px;
        max-height: 80vh;
        flex-direction: column;
        gap: 0;
        background: linear-gradient(135deg,
            rgba(245, 237, 228, 0.98) 0%,
            rgba(235, 226, 215, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: var(--space-2xl) var(--space-xl);
        box-shadow: 0 20px 60px rgba(168, 101, 72, 0.3);
        border-radius: 16px;
        border: 2px solid rgba(198, 124, 92, 0.2);
        transition: all var(--transition-slow);
        overflow-y: auto;
        z-index: 1000;
        -webkit-overflow-scrolling: touch;
        order: 2;
        opacity: 0;
        pointer-events: none;
    }

    /* Active state - fade in center with scale */
    .navbar-menu.active {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        pointer-events: all;
    }

    /* Dark overlay when menu is open */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background var(--transition-slow);
        z-index: 999;
        opacity: 0;
    }

    body.menu-open::after {
        background: rgba(0, 0, 0, 0.5);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(198, 124, 92, 0.12);
        animation: menuItemFadeIn 0.4s ease-out backwards;
    }

    .navbar-menu.active li:nth-child(1) { animation-delay: 0.15s; }
    .navbar-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .navbar-menu.active li:nth-child(3) { animation-delay: 0.25s; }
    .navbar-menu.active li:nth-child(4) { animation-delay: 0.3s; }
    .navbar-menu.active li:nth-child(5) { animation-delay: 0.35s; }
    .navbar-menu.active li:nth-child(6) { animation-delay: 0.4s; }

    @keyframes menuItemFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-md);
        width: 100%;
        font-size: 1.1rem;
        min-height: 56px;
        position: relative;
        transition: all var(--transition-base);
        border-radius: 8px;
        text-align: center;
    }

    .navbar-menu a::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--terracotta-warm);
        opacity: 0;
        border-radius: 8px;
        transition: opacity var(--transition-base);
        z-index: -1;
    }

    .navbar-menu a:hover::before,
    .navbar-menu a:focus::before {
        opacity: 0.1;
    }

    .navbar-menu a:hover {
        color: var(--terracotta-deep);
        transform: translateY(-2px);
    }

    .container {
        width: 88%;
        padding: var(--space-xl) var(--space-sm);
        margin-top: 0;  /* Minimal space between navbar and content */
    }

    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-lg);           /* Now 24px on mobile */
        padding: var(--space-xl) 0;     /* More breathing room */
        margin-bottom: var(--space-lg); /* More space after hero */
    }

    .hero-text-container {
        text-align: center;
    }

    .hero-photo-container {
        width: 290px; /* Increased to prevent horizontal cropping */
        height: 498px;
        max-height: 520px;
        justify-self: center;
        order: -1; /* Photo first on mobile */
    }

    .nombres {
        margin-bottom: var(--space-md);  /* Keep 20px */
        letter-spacing: 0.02em;
    }

    .nombres::after {
        width: 140px;
    }

    .fecha {
        letter-spacing: 0.15em;
        margin-bottom: var(--space-xl);  /* Now 32px on mobile */
    }

    .divider {
        width: 160px;
        height: 50px;
    }

    .divider-small {
        width: 200px;
        height: 40px;
        margin: var(--space-lg) auto;    /* Now 24px on mobile */
        --petal-offset: 45px;
    }

    .seccion {
        margin: var(--space-xl) 0;       /* Now 32px on mobile */
        padding: var(--space-lg) 0;      /* Now 24px on mobile */
    }

    .seccion h2 {
        margin-bottom: var(--space-md);  /* Now 20px on mobile - tighter */
    }

    .seccion h2::before {
        width: 90%;
    }

    .nosotros,
    .nota,
    .regalo {
        padding: var(--space-lg) var(--space-md);  /* Now 24px 20px on mobile */
    }

    .hospedaje-image-container {
        margin: var(--space-md) auto var(--space-lg) auto;  /* Now 20px auto 24px */
        padding: var(--space-sm);
    }

    .panoramica-section {
        height: 550px;
        margin-top: var(--space-2xl);      /* Now 48px on mobile */
        margin-bottom: var(--space-2xl);   /* Now 48px on mobile */
    }

    /* Maintain proportional overlay height for mobile */
    .panoramica-overlay::before,
    .panoramica-overlay::after {
        height: 180px;
    }

    /* Día B mobile adjustments */
    .dia-b {
        padding: var(--space-lg) var(--space-sm);
    }

    .dia-b-intro {
        font-size: 1.25rem;
        max-width: 100%;
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .ceremonia-card {
        padding: var(--space-lg) var(--space-md);
        border-radius: 6px 2px 6px 2px;
    }

    /* Reset asymmetric offsets on mobile for cleaner stacking */
    .ceremonia-hora,
    .ceremonia-lugar {
        margin-left: 0;
    }

    .ceremonia-detalle {
        padding: var(--space-md) var(--space-sm);
    }

    .detalle-destacado {
        font-size: var(--font-size-md);
    }

    .detalle-mapa {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .dia-b-cierre {
        font-size: 1rem;
        margin-top: var(--space-lg);
        padding: 0 var(--space-sm);
    }

    .nosotros p:first-of-type::first-letter {
        font-size: 2.8em;
        line-height: 1;
        margin: 0.05em 0.12em 0.12em 0;
    }

    .nosotros p {
        font-size: 1.25rem;
    }

    .btn-cuestionario {
        padding: 18px 40px;
        font-size: var(--font-size-xs);
        width: 100%;
        max-width: 340px;
    }

    /* Cuenta bancaria mobile adjustments */
    .cuenta-numero {
        font-size: 1.3rem;
        letter-spacing: 0.1em;
        word-spacing: 0.25em;
        line-height: 1.8;
    }

    .footer-text {
        font-size: 2.5rem;
    }

    /* Contacto mobile adjustments */
    .contacto {
        padding: var(--space-lg) var(--space-sm);
    }

    .contacto-intro {
        font-size: 1.25rem;
        max-width: 100%;
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-lg);
    }

    .contacto-cards {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: var(--space-lg);
    }

    .contacto-card {
        padding: var(--space-lg) var(--space-md);
    }

    /* Ensure number is easily tappable */
    .contacto-numero {
        padding: 12px 24px;
        font-size: 1.25rem;
        min-height: 48px; /* Larger tap target */
        display: inline-flex;
        align-items: center;
    }

    .contacto-nombre {
        font-size: var(--font-size-md);
    }

    .contacto-cierre {
        font-size: 1rem;
        margin-top: var(--space-lg);
        padding: 0 var(--space-sm);
        max-width: 100%;
    }

    /* Hide heart decoration on mobile - can overlap text */
    .contacto-cierre::before {
        display: none;
    }

    /* Larger tap targets for mobile */
    a:not(.navbar-menu a):not(.detalle-mapa):not(.contacto-numero) {
        padding: 6px 3px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Better spacing for mobile sections */
    .seccion p {
        font-size: var(--font-size-base);
        line-height: var(--line-height-loose);
    }

    /* Improve image containers on mobile */
    .hospedaje-image-container,
    .hero-photo-container,
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure buttons are full-width tappable on mobile */
    .btn-cuestionario,
    .detalle-mapa {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(198, 124, 92, 0.3);
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    :root {
        --font-size-2xl: 2.5rem;
        --font-size-xl: 2rem;
        --font-size-lg: 1.5rem;
        --font-size-md: 1.25rem;
        --font-size-base: 1.1rem;
    }

    /* Small mobile navbar adjustments */
    .navbar-logo img {
        height: 46px !important;
    }

    .navbar-content {
        padding: 4px var(--space-sm) !important;
        min-height: 40px !important;
    }

    .navbar-toggle {
        padding: 5px;
    }

    .navbar-toggle span {
        width: 22px;
        height: 2px;
    }

    body {
        padding: 42px 0 var(--space-lg) 0 !important;
    }

    .navbar-menu {
        width: 90vw;
        max-width: 360px;
        max-height: 85vh;
        padding: var(--space-xl) var(--space-lg);
    }

    .navbar-menu a {
        font-size: 1.05rem;
        padding: var(--space-sm);
        min-height: 52px;
    }

    .container {
        width: 90%;
        margin-top: var(--space-xs);  /* Minimal space on small screens */
    }

    .hero {
        padding: var(--space-2xl) 0;  /* More breathing room */
    }

    .hero-photo-container {
        width: 250px; /* Increased to prevent horizontal cropping */
        height: 427px;
        max-height: 450px;
    }

    .nombres::after {
        width: 100px;
    }

    .divider {
        width: 120px;
    }

    .divider-small {
        width: 160px;
        --petal-offset: 35px;
    }

    .hospedaje-image-container {
        padding: var(--space-xs);
        margin: var(--space-sm) auto var(--space-md) auto;  /* Now 16px auto 20px */
    }

    .panoramica-section {
        height: 420px;
        margin-top: var(--space-xl);       /* Now 32px on small mobile */
        margin-bottom: var(--space-xl);    /* Now 32px on small mobile */
    }

    /* Maintain proportional overlay height for small mobile */
    .panoramica-overlay::before,
    .panoramica-overlay::after {
        height: 140px;
    }

    /* Día B small mobile refinements */
    .dia-b-intro {
        font-size: 1.15rem;
    }

    .ceremonia-card {
        padding: var(--space-md) var(--space-sm);
    }

    .detalle-destacado {
        font-size: var(--font-size-base);
    }

    .detalle-label {
        font-size: 0.95rem;
    }

    .detalle-doodle {
        transform: scale(0.85);
    }

    .nosotros::before,
    .nosotros::after {
        width: 60px;
        height: 60px;
    }

    /* Cuenta bancaria small mobile */
    .cuenta-numero {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        word-spacing: 0.2em;
        line-height: 1.8;
    }

    .footer-text {
        font-size: 2rem;
    }

    /* Contacto small mobile refinements */
    .contacto-intro {
        font-size: 1.15rem;
    }

    .contacto-card {
        padding: var(--space-md) var(--space-sm);
    }

    .contacto-nombre {
        font-size: var(--font-size-base);
    }

    .contacto-numero {
        font-size: 1.1rem;
        padding: 10px 20px;
    }


    .contacto-doodle {
        transform: scale(0.85);
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }

    body::before {
        display: none;
    }

    .btn-cuestionario {
        display: none;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .nosotros::before,
    .nosotros::after {
        display: none;
    }

    .seccion h2::before,
    .seccion h2::after {
        opacity: 1;
    }
}

/* === ACCESSIBILITY === */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #1a1a1a;
        --terracotta-warm: #a0482c;
        --terracotta-deep: #7a3620;
    }

    .btn-cuestionario,
    a {
        border-width: 3px;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--terracotta-warm);
    outline-offset: 4px;
    border-radius: 3px;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === NAVIGATION BAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg,
        rgba(245, 237, 228, 0.95) 0%,
        rgba(235, 226, 215, 0.95) 100%);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 2px 20px rgba(168, 101, 72, 0.08);
    border-bottom: 1px solid rgba(198, 124, 92, 0.1);
    animation: navbarSlideDown 0.6s var(--transition-elegant);
}

@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo with Image */
.navbar-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-logo img {
    height: 120px;
    width: auto;
    display: block;
    transition: all var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(198, 124, 92, 0.15));
}

/* Subtle hover enhancement */
.navbar-logo:hover img {
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(198, 124, 92, 0.25));
}

/* Accessibility focus state */
.navbar-logo:focus-visible {
    outline: 2px solid var(--terracotta-deep);
    outline-offset: 6px;
    border-radius: 4px;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: none;
    position: relative;
    transition: all var(--transition-base);
    display: inline-block;
}

/* Override global size increase for navbar menu */

.navbar-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--terracotta-warm), var(--gold-antique));
    transition: width var(--transition-base);
}

.navbar-menu a:hover,
.navbar-menu a:focus {
    color: var(--terracotta-warm);
}

.navbar-menu a:hover::before {
    width: 100%;
}

.navbar-menu a::after {
    display: none;
}

/* Mobile Toggle Button */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--terracotta-warm);
    transition: all var(--transition-base);
    border-radius: 3px;
}

.navbar-toggle:hover span,
.navbar-toggle:focus span {
    background: var(--terracotta-deep);
}

/* Animated hamburger to X */
.navbar-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Adjust body padding for fixed navbar */
body {
    padding-top: 80px;
}

/* === UTILITY CLASSES === */

/* Subtle hover lift effect */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-3px);
}

/* Decorative text gradient */
.text-gradient {
    background: linear-gradient(120deg, var(--terracotta-warm), var(--gold-antique));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
