:root {
    --font-main: 'Poppins', sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* ENVELOPE PALETTE (Antique/Aged from Reference) */
    --env-paper: #E6DBC4;
    /* Warmer, lighter antique beige */
    --env-shadow: #BFAEA0;
    --env-flap: #D9CDB8;

    /* WAX SEAL RED */
    --wax-red: #A81817;

    /* MODERN ELEGANT PALETTE */
    --primary-navy: #1a2332;
    --accent-sage: #8b9d83;
    --accent-gold: #b8956a;
    --accent-blush: #d4a5a5;
    --accent-teal: #5a8f8f;
    --warm-beige: #d4c5b9;
    --charcoal: #2d3436;
    --text-black: #000000;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --elegant-gray: #6c7a89;

    /* GLASSMORPHISM VARS */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: #fdfbf7;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
   0. ACCESS DENIED SCREEN
   ========================================= */
/* Combined with intro-overlay for shared background */
#access-denied {
    z-index: 10000;
    /* Above everything */
    text-align: center;
    padding: 20px;
}

#access-denied.hidden {
    display: none;
}

.denied-content h2 {
    font-family: var(--font-main);
    color: var(--text-black);
    font-size: 1.5rem;
    line-height: 1.6;
}

/* =========================================
   1. 3D ENVELOPE — INTRO OVERLAY (Página 1)
   ========================================= */

/* Full-screen overlays */
#intro-overlay,
#access-denied {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-image: url('../FondoCarta1.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
}

/* ---- 3D SCENE (perspective wrapper) ---- */
.envelope-scene {
    perspective: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    cursor: pointer;
    width: 100%;
    max-width: 560px;
    padding: 0 20px;
    /* Needed so the absolutely-positioned seal can reference this container */
    position: relative;
}

/* ---- ENVELOPE BODY ---- */
.env3d {
    position: relative;
    width: 100%;
    /* fills scene width */
    /* Aspect ratio ~3:2 for an envelope */
    aspect-ratio: 3 / 2;
    max-height: 55vh;
    /* Never taller than 55% of viewport */
    transform-style: preserve-3d;

    /* Realistic paper gradient */
    background: linear-gradient(170deg, #ede0cb 0%, #d9c9ae 50%, #c9b89a 100%);
    border-radius: 4px 4px 6px 6px;

    /* Stacked paper thickness + drop shadow (closed state) */
    box-shadow:
        0 3px 0 #c4ad92,
        0 6px 0 #b8a086,
        0 9px 0 #ac9078,
        0 18px 35px rgba(0, 0, 0, 0.4),
        inset 0 0 80px rgba(80, 55, 30, 0.1);

    transition:
        box-shadow 0.9s ease-in-out,
        transform 0.3s ease;

    /* Clip so inner triangles don't overflow */
    overflow: hidden;
}

/* Hover lift effect */
.envelope-scene:hover .env3d {
    transform: translateY(-5px) rotateX(2deg);
}

/* Open state: shadow becomes deeper / more elevated */
.env3d.open {
    box-shadow:
        0 2px 0 #c4ad92,
        0 4px 0 #b8a086,
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 60px 100px rgba(0, 0, 0, 0.2),
        inset 0 0 80px rgba(80, 55, 30, 0.06);
    overflow: visible;
    /* allow flap to show above */
}

/* ---- INNER ENVELOPE TRIANGLES (visible inside when open) ---- */
/* Left inner triangle */
.env3d-inner-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52%;
    height: 58%;
    background: linear-gradient(135deg, #c8b89a, #d8cbb5);
    clip-path: polygon(0% 100%, 100% 100%, 0% 0%);
    z-index: 2;
}

/* Right inner triangle */
.env3d-inner-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    height: 58%;
    background: linear-gradient(225deg, #c8b89a, #d8cbb5);
    clip-path: polygon(0% 100%, 100% 100%, 100% 0%);
    z-index: 2;
}

/* Bottom inner triangle */
.env3d-inner-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 52%;
    background: linear-gradient(to top, #bfaf96, #d0c2aa);
    clip-path: polygon(0% 100%, 100% 100%, 50% 0%);
    z-index: 3;
}

/* ---- FLAP (top triangle, rotates open) ---- */
.env3d-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    z-index: 20;
    /* above everything */
    transform-origin: top center;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);

    /* Triangle pointing downward */
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    background: linear-gradient(170deg, #e2d5be 0%, #cdbfa4 60%, #c0b090 100%);

    /* Subtle crease line at fold */
    box-shadow: inset 0 -3px 10px rgba(0, 0, 0, 0.12);
}

/* Flap rotates 180° upward when open */
.env3d.open .env3d-flap {
    transform: rotateX(-180deg);
}

/* ---- FRONT FACE (empty placeholder for structure) ---- */
.env3d-front {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---- ENVELOPE WRAPPER (relative container for seal overlay) ---- */
.env3d-wrapper {
    position: relative;
    width: 100%;
    /* matches .env3d width */
}

/* Wax seal — positioned over the envelope center, outside overflow:hidden */
.env3d-seal {
    position: absolute;
    /* Center horizontally and vertically over the envelope */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(90px, 24%, 150px);
    height: auto;
    object-fit: contain;
    z-index: 30;
    /* Always above the flap (z-index 20) */
    filter:
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition:
        transform 0.6s ease-in-out,
        opacity 0.5s ease-in-out;
    pointer-events: none;
}

/* Seal fades when envelope opens (class added by JS) */
.env3d-seal.hidden-seal {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
}



/* ---- HINT TEXT (below envelope) ---- */
.env3d-hint {
    font-family: var(--font-main);
    font-size: clamp(0.65rem, 2vw, 0.8rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4a3220;
    background: rgba(255, 255, 255, 0.8);
    padding: 9px 22px;
    border-radius: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 2.2s ease-in-out infinite;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

/* Hide hint when open */
.env3d.open+.env3d-hint,
.envelope-scene.opened .env3d-hint {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.55;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* =========================================
   1.2 INVITATION LETTER — FULL SCREEN (Página 1.2)
   ========================================= */
#invitation-letter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5000;
    display: flex;
    justify-content: center;
    /* Push content into the paper area of FondoCarta2.1.webp */
    /* The image has decorative top/bottom borders ~15% each */
    align-items: center;
    text-align: center;
    /* Vertical padding keeps text inside the paper area */
    padding: 18vh 24px 16vh;
    cursor: pointer;

    background-image: url('../FondoCarta2.1.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-black);
}

#invitation-letter.hidden {
    display: none;
}

/* Letter content wrapper — constrained to paper area */
#invitation-letter .letter-content-wrapper {
    max-width: 480px;
    width: 100%;
    padding: 0 16px;
    pointer-events: auto;
}




/* =========================================
   2. INTERIOR STYLES (The Summer Dream)
   ========================================= */

#app-content {
    opacity: 0;
    /* Hidden initially, GSAP will reveal */
    background-image: url('../FondoBaner1.webp');
    /* Page 3: FondoBaner1.webp */
    background-size: cover;
    background-position: center;
    /* background: linear-gradient(135deg, #FFF5EE 0%, #E0F7FA 100%);  Remove gradient if image covers */
    min-height: 100vh;
}



/* ---- EVENT PHOTO GRID (¿Qué nos espera?) ---- */
.event-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 40px;
}

.event-photo-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.event-photo-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.event-photo-label {
    text-align: center;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 10px 8px;
    margin: 0;
}

@media (max-width: 600px) {
    .event-photo-grid {
        gap: 8px;
    }

    .event-photo-label {
        font-size: 0.65rem;
        padding: 6px 4px;
        letter-spacing: 0.5px;
    }
}

/* Video Container */

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.play-btn-overlay {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-btn-overlay:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.letter-content-wrapper {
    max-width: 800px;
    width: 90%;
    animation: fadeIn 2s ease-out;
    /* Transparent background to show page background */
    background: transparent;
    padding: 3rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    position: relative;
}

.handwritten-title {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
    font-size: 5rem;
    color: black;
    margin-bottom: 2rem;
    text-shadow: none;
    line-height: 0.8;
    /* Tighter for two lines */
}

/* New Helper for "Hola" */
.greeting-small {
    font-family: 'Ubuntu', sans-serif;
    /* Clean font for clarity */
    font-size: 1.5rem;
    /* Much smaller */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    /* Force new line logic visually if needed */
    margin-bottom: 0px;
    /* Tangerine has tall line-height, reduce gap */
    color: var(--text-dark);
}

.handwritten-body {
    font-family: 'Ubuntu', sans-serif;
    /* User Request: Ubuntu */
    font-weight: 300;
    font-size: 1.5rem;
    /* Adjusted for Ubuntu readability */
    color: black;
    /* User Request: Black */
    margin-bottom: 1rem;
    line-height: 1.6;
}

.signatures {
    margin-top: 2rem;
    font-family: 'Italianno', cursive;
    /* User Request: Italiano */
    font-size: 5rem;
    color: black;
    /* User Request: Black */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-shadow: none;
}

.ampersand {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.7;
}

#enter-site-btn {
    margin-top: 3rem;
    background: transparent;
    border: none;
    /* No border for icon only */
    color: var(--text-black);
    /* Dark color for visibility */
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    pointer-events: auto;
    /* Allow clicking on button even though parent has pointer-events: none */
}

#enter-site-btn:hover {
    color: var(--accent-sage);
    background: transparent;
    transform: scale(1.2);
}

/* Add subtle pulse to entire letter wrapper as hint */
.letter-content-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-sage);
    border-radius: 50%;
    opacity: 0;
    animation: clickHintPulse 2s infinite;
    pointer-events: none;
}

@keyframes clickHintPulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* RSVP Attendance Options */
.attendance-options {
    margin-bottom: 1.5rem;
    text-align: left;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-family: var(--font-main);
    color: var(--text-dark);
    cursor: pointer;
}

.option-row input[type="radio"] {
    accent-color: var(--accent-sage);
    width: 20px;
    height: 20px;
}

.option-row label {
    cursor: pointer;
    font-size: 1rem;
}

/* HERO */
.hero-section {
    height: 90vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Desktop: FondoBaner1.webp */
    background-image: url('../FondoBaner1.webp');
    background-size: cover;
    background-position: center;
    color: white;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(26, 35, 50, 0.2);
}

/* Mobile-specific background for hero section (Page 2) */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('../FondoBaner1-mobile.webp');
        /* Mobile: Vertical banner background */
        background-position: center center;
    }
}

.hero-logo {
    max-width: 80%;
    /* responsive width */
    width: 400px;
    /* max desktop width */
    height: auto;
    margin: 20px auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.eyebrow {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.location {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 300;
}

.divider {
    width: 60px;
    height: 3px;
    background: white;
    margin: 20px auto;
}

/* SCROLL INDICATOR */
.scroll-mouse {
    position: absolute;
    bottom: 40px;
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 4px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

/* CONTENT CONTAINER */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

section {
    margin-bottom: 80px;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-navy);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-blush), var(--accent-gold));
    margin: 10px auto 0;
    border-radius: 2px;
}

p {
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Photo Gallery Grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.photo-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.1), rgba(184, 149, 106, 0.1));
    color: var(--elegant-gray);
}

.photo-placeholder p {
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   TIMELINE SECTION - INTERACTIVE STORY
   ========================================= */
.timeline-section {
    margin-bottom: 100px;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Central vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--accent-blush) 10%,
            var(--accent-teal) 50%,
            var(--primary-navy) 90%,
            transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* Individual timeline item */
.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInTimeline 0.8s ease-out forwards;
}

/* Stagger animation for each item */
.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(6) {
    animation-delay: 0.6s;
}

.timeline-item:nth-child(7) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeInTimeline {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternate left/right layout */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Timeline marker (dot on the line) */
.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border: 4px solid var(--accent-blush);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(212, 165, 165, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 12px rgba(90, 143, 143, 0.25);
}

/* Timeline content card */
.timeline-content {
    width: calc(50% - 60px);
    text-align: left;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

/* Year badge */
.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(90, 143, 143, 0.35);
    letter-spacing: 1px;
}

/* Timeline title */
.timeline-title {
    font-size: 1.5rem;
    color: var(--text-black);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Timeline description */
.timeline-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Timeline media container */
.timeline-media {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-media:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.timeline-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 350px;
}

.timeline-media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 350px;
}

/* Play button overlay for videos */
.timeline-media video {
    cursor: pointer;
}

/* Placeholder for media */
.timeline-media-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(139, 157, 131, 0.1), rgba(184, 149, 106, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--elegant-gray);
    font-size: 0.9rem;
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {

    /* Remove central line on mobile */
    .timeline-container::before {
        left: 20px;
    }

    /* Stack all items to the right */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 50px;
    }

    /* Marker on the left */
    .timeline-marker {
        left: 20px;
    }

    .timeline-item:hover .timeline-marker {
        transform: scale(1.3);
    }

    /* Content takes full width */
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin: 0;
    }

    /* Adjust spacing */
    .timeline-item {
        margin-bottom: 50px;
    }

    .timeline-title {
        font-size: 1.3rem;
    }

    .timeline-description {
        font-size: 0.95rem;
    }
}

/* CARDS & GLASSMORPHISM */
/* Map Container Grid - 2 Columns on Desktop */
.map-container-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-top: 30px;
}

.location-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-embed {
    min-height: 400px;
    padding: 0;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 768px) {
    .map-container-grid {
        grid-template-columns: 1fr;
    }

    .map-embed {
        min-height: 300px;
    }
}

/* BENTO GRID SYSTEM */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* Modern Glass Card (Bento Style) */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    /* Lighter, more modern */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    /* More rounded */
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.85);
    border-color: #fff;
}

/* Flight/Travel Specifics - Modern Design */
.flight-card-modern {
    cursor: pointer;
    text-align: left;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flight-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.flight-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.flag-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.flight-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-black);
}

.country-name {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    padding: 15px 0;
}

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blush);
    box-shadow: 0 0 0 3px rgba(212, 165, 165, 0.3);
}

.route-dot.destination {
    background: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(90, 143, 143, 0.25);
}

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(212, 165, 165, 0.3), rgba(90, 143, 143, 0.3));
    position: relative;
}

.plane-icon {
    font-size: 1.5rem;
    color: var(--accent-blush);
    animation: planeFly 2s ease-in-out infinite;
}

@keyframes planeFly {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.destination-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-top: 10px;
}

.arrow-icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.3;
    transition: all 0.3s;
    font-size: 1.5rem;
    color: var(--accent-teal);
}

.flight-card-modern:hover .arrow-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Legacy flight card - keep for backwards compatibility */
.flight-card {
    cursor: pointer;
    text-align: left;
}

.flight-card .icon {
    background: rgba(139, 157, 131, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: background 0.3s;
}

.flight-card:hover .icon {
    background: rgba(139, 157, 131, 0.2);
    color: var(--accent-sage);
}

.flight-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-black);
}

.flight-card p {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: 0;
}

/* RSVP FORM - MODERN ENVELOPE DESIGN */
.envelope-rsvp-container {
    perspective: 1500px;
    width: 100%;
    max-width: 750px;
    margin: 40px auto 0;
    min-height: auto;
    position: relative;
}

/* Open Envelope Design - Modern & Professional */
.envelope-open {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.envelope-open.sending {
    animation: envelopeClose 1.5s forwards ease-in-out;
}

@keyframes envelopeClose {
    0% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
    }

    30% {
        transform: scale(0.95) rotateX(10deg);
        opacity: 0.9;
    }

    60% {
        transform: scale(0.3) rotateX(90deg) translateY(-100px);
        opacity: 0.5;
    }

    100% {
        transform: scale(0) translateY(-500px) rotateX(180deg);
        opacity: 0;
    }
}

/* Envelope Back (Bottom part) - Premium Paper Texture */
.envelope-back {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #f5ebe0 0%, #ede0d4 100%);
    background-image:
        linear-gradient(135deg, #f5ebe0 0%, #ede0d4 100%),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.1) 2px,
            rgba(255, 255, 255, 0.1) 4px);
    border-radius: 0 0 20px 20px;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 -3px 8px rgba(0, 0, 0, 0.08),
        inset 0 2px 3px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

/* Decorative stamp effect on envelope */
.envelope-back::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-sage) 0%, var(--accent-gold) 100%);
    border-radius: 8px;
    opacity: 0.15;
    border: 2px dashed rgba(139, 157, 131, 0.3);
}

/* Envelope Flap (Open state) - More Realistic */
.envelope-flap-open {
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, #e8dcc8 0%, #dcc9b3 100%);
    position: absolute;
    top: -200px;
    left: 0;
    transform-origin: top center;
    transform: rotateX(180deg);
    clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%);
    box-shadow:
        0 -8px 20px rgba(0, 0, 0, 0.15),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
    border: 1px solid rgba(139, 115, 85, 0.1);
}

/* Subtle texture on flap */
.envelope-flap-open::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.05) 3px,
            rgba(255, 255, 255, 0.05) 6px);
    pointer-events: none;
}

/* Letter/Form Inside Envelope - Premium Card Design */
.envelope-letter {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 520px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: all 0.5s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Decorative corner on letter */
.envelope-letter::before {
    content: '✉';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.1;
    color: var(--accent-sage);
}

.rsvp-form-envelope {
    width: 100%;
}

.rsvp-form-envelope h3 {
    margin-bottom: 20px;
    color: var(--primary-navy);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    font-family: var(--font-script);
}

.input-group-compact {
    margin-bottom: 15px;
}

.input-group-compact input {
    width: 100%;
    padding: 14px 16px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--text-black);
}

.input-group-compact input::placeholder {
    color: var(--elegant-gray);
}

.input-group-compact input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-sage);
    box-shadow:
        0 0 0 4px rgba(139, 157, 131, 0.1),
        0 2px 8px rgba(139, 157, 131, 0.15);
    transform: translateY(-1px);
}

.envelope-submit {
    width: 100%;
    margin-top: 20px;
    font-size: 1.05rem;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-navy) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(90, 143, 143, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.envelope-submit:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(90, 143, 143, 0.45),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.envelope-submit:active {
    transform: translateY(0);
    box-shadow:
        0 2px 10px rgba(90, 143, 143, 0.35),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Regret Simple Container */
.regret-simple {
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-card-3d {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.rsvp-card-3d.sent {
    animation: sendEnvelope 1.5s forwards ease-in-out;
}

@keyframes sendEnvelope {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.1) rotateX(70deg);
        opacity: 0;
    }

    100% {
        transform: scale(0) translateY(-500px);
        opacity: 0;
    }
}

.info-card {
    /* Legacy keeping for safety, but overriding with glass-card */
    display: none;
}

/* MAP BUTTON */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(90, 143, 143, 0.4);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-blush), var(--accent-teal));
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(90, 143, 143, 0.5);
}

/* RSVP FORM */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-main);
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    background: white;
    border-color: var(--accent-sage);
    box-shadow: 0 0 10px rgba(139, 157, 131, 0.2);
}

.cta-button.primary {
    width: 100%;
    font-size: 1.1rem;
}

/* RSVP Choice Buttons - Modern Design */
.rsvp-choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.choice-btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.choice-btn:hover::before {
    left: 100%;
}

.btn-attend {
    background: #ffffff;
    color: var(--primary-navy);
    border: 2.5px solid var(--accent-teal);
    box-shadow:
        0 4px 20px rgba(90, 143, 143, 0.25),
        0 0 0 0 rgba(90, 143, 143, 0);
}

.btn-attend:hover {
    transform: translateY(-3px) scale(1.05);
    background: #ffffff;
    border-color: var(--sunset-coral);
    color: var(--sunset-coral);
    box-shadow:
        0 8px 30px rgba(90, 143, 143, 0.35),
        0 0 0 4px rgba(90, 143, 143, 0.1);
}

.btn-decline {
    background: linear-gradient(135deg, #78909c, #546e7a);
    color: white;
}

.btn-decline:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(120, 144, 156, 0.4);
}

/* Regret Form Styling */
.regret-form {
    background: rgba(240, 240, 240, 0.7);
}

.regret-message {
    font-style: italic;
    color: var(--elegant-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Rain Animation for Sad Mode */
.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

.rain-drop {
    position: absolute;
    top: -10px;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(174, 194, 224, 0.5));
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

/* Fade in Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

footer {
    text-align: center;
    padding: 40px;
    color: #999;
}

.footer-logo {
    width: 80px;
    opacity: 0.5;
    margin-bottom: 10px;
}

/* ============================================================
   TIMELINE COUNTDOWN (evento 2026)
   ============================================================ */
.timeline-content--countdown {
    text-align: center;
}

.timeline-countdown {
    margin-top: 20px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.countdown-label {
    font-family: var(--font-main);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sunset-coral);
    margin: 0 0 14px;
    opacity: 0.85;
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-num {
    font-family: 'Tangerine', cursive;
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.countdown-text {
    font-family: var(--font-main);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.6;
    margin-top: 2px;
}

.countdown-sep {
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 300;
    color: var(--sunset-coral);
    opacity: 0.5;
    line-height: 1;
    align-self: flex-start;
    padding-top: 4px;
}

.countdown-date {
    font-family: var(--font-main);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    opacity: 0.55;
    margin: 16px 0 0;
}

@media (max-width: 480px) {
    .countdown-unit {
        min-width: 44px;
    }

    .countdown-num {
        font-size: 2.8rem;
    }
}

/* Mobile Tweaks */

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .envelope-body {
        width: 300px;
        height: 200px;
    }

    .envelope-flap {
        border-left-width: 150px;
        border-right-width: 150px;
        border-top-width: 110px;
    }

    .envelope-pocket {
        border-left-width: 150px;
        border-right-width: 150px;
        border-bottom-width: 110px;
    }

    .envelope-letter {
        width: 260px;
        height: 180px;
    }
}

/* =========================================
   TIPOGRAFÍA ITALIANA — Cormorant Garamond
   ========================================= */

/* Aplicada globalmente a todos los h2 del contenido */
#app-content h2,
.story-section h2,
.timeline-section h2,
.map-section h2,
.bento-section h2,
.cuando-section h2,
.programa-section h2,
.chatbot-section h2,
.titulo-italiano,
h2.titulo-italiano {
    font-family: 'Cormorant Garamond', 'Italianno', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.04em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
}

/* =========================================
   EL PROGRAMA — Carrusel Horizontal
   ========================================= */
.programa-section {
    padding: 70px 0 60px;
    overflow: hidden;
}

.programa-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.programa-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 20px 40px 10px;
}

.programa-track::-webkit-scrollbar {
    display: none;
}

.programa-track.dragging {
    cursor: grabbing;
}

/* ---- Card ---- */
.prog-card {
    flex: 0 0 280px;
    background: #fffdf9;
    border: 1px solid rgba(184, 149, 106, 0.18);
    border-radius: 2px;
    padding: 32px 28px 28px;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(184, 149, 106, 0.15);
}

.prog-card--main {
    background: linear-gradient(160deg, #fff9f3, #fef3e8);
    border-color: rgba(184, 149, 106, 0.4);
    flex: 0 0 310px;
}

.prog-day {
    font-family: 'Poppins', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.prog-time {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.prog-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(184, 149, 106, 0.08);
    border: 1.5px solid rgba(184, 149, 106, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.prog-icon {
    font-size: 2rem;
    line-height: 1;
}

/* Línea conectora tipo boda */
.prog-connector {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
    gap: 0;
}

.prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    flex-shrink: 0;
}

.prog-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(184, 149, 106, 0.15));
}

.prog-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.prog-card--main .prog-title {
    font-size: 1.6rem;
    color: var(--accent-gold);
}

.prog-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--elegant-gray);
    margin-bottom: 14px;
}

.prog-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text-medium);
    font-style: italic;
}

/* Scroll hint */
.prog-scroll-hint {
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(184, 149, 106, 0.55);
    margin-top: 18px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    animation: pulse-hint 2.5s ease-in-out infinite;
}

@keyframes pulse-hint {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

/* =========================================
   CUANDO — Fechas + Countdown
   ========================================= */
.cuando-section {
    padding: 70px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(212, 197, 185, 0.12), transparent);
}

.cuando-dates {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin: 36px auto 20px;
    flex-wrap: wrap;
}

.cuando-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cuando-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.cuando-day--main .cuando-num {
    font-size: clamp(6rem, 17vw, 11rem);
    color: var(--accent-gold);
}

.cuando-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--elegant-gray);
}

.cuando-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--accent-gold);
}

.cuando-sep {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 200;
    color: rgba(184, 149, 106, 0.35);
    margin-top: 12px;
    align-self: center;
}

.cuando-month {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--elegant-gray);
    margin-bottom: 36px;
}

/* Countdown */
.cuando-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 149, 106, 0.2);
    border-radius: 6px;
    padding: 20px 36px;
    box-shadow: 0 4px 24px rgba(184, 149, 106, 0.1);
}

.cd2-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
}

.cd2-num {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.cd2-lbl {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--elegant-gray);
    margin-top: 4px;
}

.cd2-sep {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(184, 149, 106, 0.5);
    margin-bottom: 18px;
}

/* Responsive programa */
@media (max-width: 600px) {
    .programa-track {
        padding: 16px 20px 10px;
        gap: 0;
    }

    .prog-card {
        flex: 0 0 240px;
    }

    .prog-card--main {
        flex: 0 0 260px;
    }

    .cuando-countdown {
        padding: 16px 20px;
        gap: 4px;
    }

    .cd2-num {
        font-size: 1.8rem;
    }

    .cd2-unit {
        min-width: 40px;
    }
}

/* =========================================
   HERO — eyebrow-sub (Sí, por fin…)
   ========================================= */
.eyebrow-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.14em;
    color: rgba(0, 0, 0, 0.75);
    margin-top: -12px;
    margin-bottom: 14px;
    text-align: center;
}

/* =========================================
   RSVP — Tipografía Uniforme
   ========================================= */
.rsvp-letter-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.rsvp-textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(184, 149, 106, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    resize: vertical;
    line-height: 1.55;
}

.rsvp-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* =========================================
   HOSPEDAJE — Cards
   ========================================= */
.hospedaje-grid {
    margin-top: 48px;
    padding: 0 20px;
}

.hospedaje-titulo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.hospedaje-intro {
    text-align: center;
    font-size: 0.88rem;
    color: var(--elegant-gray);
    margin-bottom: 28px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hospedaje-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hospedaje-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 4px;
}

.hosp-tipo {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.hosp-nombre {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.hosp-desc {
    font-size: 0.83rem;
    color: var(--text-medium);
    line-height: 1.55;
    font-style: italic;
}

.hosp-dir {
    font-size: 0.78rem;
    color: var(--elegant-gray);
}

.hosp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 149, 106, 0.15);
}

.hosp-precio {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-gold);
}

.hosp-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.hosp-link:hover {
    opacity: 0.7;
}

/* =========================================
   ESPACIADO ENTRE SECCIONES — más aire
   ========================================= */
.fade-in-up {
    margin-bottom: 100px;
}

/* Secciones principales con más padding interno */
.story-section,
.programa-section,
.cuando-section,
.timeline-section,
.map-section,
.travel-section,
.rsvp-section,
.chatbot-section {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Footer con espacio superior generoso */
footer {
    margin-top: 80px;
    padding: 40px 20px 32px;
}