@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--paper:#f8f5ee;--cream:#f0e9dc;--ink:#333d32;--olive:#59634e;--gold:#9a7943;--line:#d9ccb5;--muted:#676a60;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 var(--sans)}body:not(.opened){overflow:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b08c50;outline-offset:4px}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.06}h2{font-size:clamp(2.6rem,6vw,4.25rem);margin:.35rem 0 1.1rem}h3{font-size:2rem;margin:.5rem 0}p+p{margin-top:.6rem}.eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);line-height:1.7}.muted{font-size:.83rem;color:var(--muted)}.cover{position:fixed;inset:0;z-index:20;overflow:auto;display:grid;place-items:center;background:radial-gradient(ellipse at center,#faf7ee,#e4ddcb);padding:24px;transition:opacity .55s,visibility .55s}.cover.dismissed{opacity:0;visibility:hidden;pointer-events:none}.cover-card{text-align:center;width:min(100%,560px);padding:30px 20px 36px;border:1px solid #cbbd9f;outline:1px solid #ded2ba;outline-offset:6px;background:rgba(255,253,247,.52)}.cover-botanical{width:180px;height:78px;object-fit:contain;display:block;margin:0 auto 12px}.cover h1{font-size:clamp(2.8rem,8vw,4.6rem);margin:10px 0 12px}.cover-date{font-size:.83rem;letter-spacing:.16em;text-transform:uppercase;color:var(--olive)}.cover-note{font:italic 1.15rem var(--serif);margin-top:18px;color:var(--muted)}.envelope-button{display:flex;flex-direction:column;align-items:center;gap:20px;margin:26px auto 0;padding:8px;background:transparent;border:0;color:var(--olive);max-width:100%}.envelope{width:min(72vw,290px);height:175px;display:block;position:relative;perspective:700px;background:#ded1b9;box-shadow:0 14px 28px #5b4a2b24}.letter{position:absolute;left:10%;right:10%;top:8%;height:87%;display:grid;align-content:center;justify-content:center;background:#fffaf0;border:1px solid #c9b28b;color:var(--gold);font:2.1rem var(--serif);transition:transform .65s .2s;z-index:1}.letter small{font:italic 1rem var(--serif)}.envelope-front{position:absolute;inset:0;background:linear-gradient(150deg,#e9dec8,#d6c4a2);clip-path:polygon(0 0,50% 50%,100% 0,100% 100%,0 100%);z-index:2}.flap{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 61%);background:linear-gradient(#efe5d0,#d4c09a);transform-origin:top;transition:transform .6s;z-index:3}.seal{position:absolute;z-index:4;top:44%;left:50%;transform:translate(-50%,-15%);width:45px;height:45px;display:grid;place-items:center;border:3px double #c5a572;border-radius:50%;background:#a3834d;color:#fff4d9;font-size:1.6rem;box-shadow:0 3px 8px #5a421b33;transition:opacity .25s}.envelope-button:hover .seal{background:#8d6c37}.cover.opening .flap{transform:rotateX(180deg);z-index:0}.cover.opening .letter{transform:translateY(-58px)}.cover.opening .seal{opacity:0}.open-label{font-size:.73rem;letter-spacing:.2em;font-weight:700;border-bottom:1px solid var(--gold);padding-bottom:5px}.open-label span{margin-left:6px}.hero{min-height:690px;display:grid;grid-template-columns:1fr 1fr;max-width:1440px;margin:auto}.hero-content{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:70px 32px}.hero-botanical{width:210px;height:110px;object-fit:contain;margin-bottom:18px}.hero h2{font-size:clamp(4rem,7vw,7.3rem);line-height:.92;white-space:pre-line;margin:1.2rem 0}.rule{color:var(--gold);display:flex;align-items:center;gap:14px;width:160px;margin:12px 0}.rule:before,.rule:after{content:'';height:1px;background:var(--line);flex:1}.hero-quote{font:italic 1.55rem/1.45 var(--serif);max-width:390px;margin:10px 0 22px}.hero-date{font-size:.83rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase}.scroll-link{font-size:.78rem;text-decoration:none;margin-top:30px;display:flex;gap:9px;align-items:center}.hero-visual{min-height:100%;overflow:hidden;background:#ddd6c4}.hero-visual img{display:block;width:100%;height:100%;object-fit:cover}.section{padding:80px 24px;text-align:center;max-width:1100px;margin:auto}.countdown-section{background:var(--cream);max-width:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:490px;margin:30px auto}.countdown>div{display:grid;gap:6px;border:1px solid var(--line);padding:15px 4px;background:#faf6eb}.countdown strong{font:500 clamp(2.3rem,7vw,3.6rem)/1 var(--serif);font-variant-numeric:tabular-nums}.countdown span{font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 24px;border:1px solid var(--olive);background:var(--olive);color:#fff;border-radius:2px;text-decoration:none;font-size:.85rem;font-weight:600;transition:background .2s,transform .2s}.btn:hover{background:#414c3b;transform:translateY(-1px)}.btn-outline{background:transparent;color:var(--olive)}.btn-outline:hover{color:white}.prose{max-width:640px;margin:0 auto 32px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.gallery img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:var(--cream)}.gallery img:nth-child(2){margin-top:22px}.events{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.event-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:780px;margin:32px auto 0}.event-card{border:1px solid var(--line);padding:32px 22px;background:#fffdf7}.detail-symbol{font:2.5rem var(--serif);color:var(--gold);display:block}.event-card .time{font-weight:700;color:var(--olive);margin-bottom:9px}.event-card .btn,.event-card .muted{margin-top:18px}.timeline{max-width:460px;margin:32px auto 0;text-align:left}.timeline-item{position:relative;display:grid;grid-template-columns:105px 1fr;gap:25px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.timeline-item time{color:var(--gold);font-weight:700;font-size:.8rem}.timeline-item p{font:1.45rem var(--serif);margin:0}.details{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:0}.detail-card{padding:36px 22px;border:1px solid var(--line);background:var(--cream)}.detail-card h2{font-size:clamp(2rem,4vw,3rem)}.palette{display:flex;gap:12px;justify-content:center;margin:22px 0}.palette span{width:30px;height:30px;border-radius:50%;border:1px solid #0002}.gift-data{overflow-wrap:anywhere;font-weight:600}.rsvp{max-width:none;background:#e6e9de;border-block:1px solid #d4d8ca}.rsvp-form{max-width:440px;margin:28px auto 0;display:grid;gap:10px;text-align:left}.rsvp-form label{display:block;font-size:.8rem;font-weight:700;margin:8px 0 3px}.rsvp-form input,.rsvp-form select,.rsvp-form textarea{display:block;width:100%;min-height:45px;background:#fbfcf7;border:1px solid #bfc8b8;border-radius:2px;color:var(--ink);padding:10px 12px}.rsvp-form textarea{resize:vertical}.rsvp-form .btn{margin-top:10px}.rsvp-form .muted{text-align:center}.status{border:1px solid #a9b49d;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}footer{text-align:center;padding:52px 24px;background:var(--paper)}.footer-botanical{width:150px;height:80px;object-fit:contain}footer h2{font-size:3rem}footer small{display:block;font-size:.72rem;color:var(--muted);margin-top:24px}.music{position:fixed;right:18px;bottom:18px;z-index:10;display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 13px;border-radius:30px;border:1px solid #b6bfae;background:#fbfaf3;color:var(--olive);box-shadow:0 4px 16px #0002;font-size:.8rem}.music span:first-child{font-size:1.3rem}.js-reveal .reveal{opacity:0;transform:translateY(18px);transition:opacity .75s,transform .75s}.js-reveal .reveal.visible{opacity:1;transform:none}
@media(max-width:700px){.hero{min-height:auto;grid-template-columns:1fr}.hero-content{padding:42px 22px 40px}.hero-botanical{width:160px;height:80px;margin-bottom:7px}.hero h2{font-size:clamp(3.5rem,13vw,5.2rem)}.hero-quote{font-size:1.3rem}.hero-visual{height:440px;min-height:0}.section{padding:55px 20px}.gallery{gap:7px}.gallery img:nth-child(2){margin-top:12px}.event-grid,.details{grid-template-columns:1fr}.details{padding-top:0}.event-card{padding:25px 20px}.countdown{gap:6px}.countdown span{font-size:.59rem;letter-spacing:.06em}.countdown>div{padding:12px 2px}.cover-card{padding:22px 14px 27px}.cover-botanical{height:65px}.timeline-item{grid-template-columns:84px 1fr;gap:12px}.timeline-item p{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.js-reveal .reveal{opacity:1;transform:none}}


/* =========================================
   MEJORA 01 - SOBRE PREMIUM ELEGANCE
========================================= */

/* Fondo principal */
.cover {
    background:
        radial-gradient(
            ellipse at 50% 35%,
            #fffdf7 0%,
            #f0e8d9 55%,
            #d9cbb4 100%
        );
}

/* Tarjeta de presentación */
.cover-card {
    border: 1px solid #b99a65;
    outline: 1px solid #d3c1a2;
    outline-offset: 7px;
    background: rgba(255, 253, 247, 0.85);
    box-shadow: 0 20px 60px rgba(78, 60, 32, 0.12);
    padding: 35px 20px;
}

/* Nombres de los novios */
.cover h1 {
    color: #4e5745;
    font-weight: 500;
    letter-spacing: -1px;
}

/* Diseño del sobre */
.envelope {
    width: min(65vw, 320px);
    height: auto;
    aspect-ratio: 1.65;
    border-radius: 3px;
    background: #cdbb9b;
    box-shadow:
        0 20px 35px rgba(70, 51, 25, 0.22),
        0 4px 8px rgba(70, 51, 25, 0.10);
    transition: transform 0.4s ease;
}

/* Efecto al pasar el cursor */
.envelope-button:hover .envelope {
    transform: translateY(-5px);
}

/* Carta interior */
.letter {
    background: linear-gradient(
        145deg, #fffdf7, #f5ecdc
    );
    border: 1px solid #c5a572;
    box-shadow: 0 0 12px #00000015;
    transition: transform 0.7s ease 0.15s;
}

/* Parte frontal del sobre */
.envelope-front {
    background: linear-gradient(
        145deg, #f5ead5, #ccb48b
    );
    border-radius: 0 0 3px 3px;
}

/* Solapa superior */
.flap {
    background: linear-gradient(
        180deg, #f8eedb, #dfcbaa
    );
    transition: transform 0.65s ease-in-out;
}

/* Sello de lacre dorado */
.seal {
    width: 58px;
    height: 58px;
    font-size: 1.9rem;
    border: 4px double #d9b976;
    border-radius: 47% 53% 49% 51%;
    background: radial-gradient(
        circle at 30% 25%,
        #d9b976,
        #b28a43 50%,
        #795725 100%
    );
    color: #fff1d2;
    box-shadow:
        0 5px 12px #62461955,
        inset 0 2px 5px #ffffff35;
}

/* Animación de apertura */
.cover.opening .letter {
    transform: translateY(-65px);
}

/* Texto del botón */
.open-label {
    color: #92703c;
    letter-spacing: 3px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.envelope-button:hover .open-label {
    color: #57401e;
}

/* Adaptación a celulares */
@media (max-width: 480px) {

    .cover-card {
        padding: 25px 14px;
    }

    .seal {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .cover.opening .letter {
        transform: translateY(-45px);
    }
}


/* =========================================
   MEJORA 02 - PORTADA FOTOGRÁFICA PREMIUM
========================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #333d32;
    color: #ffffff;
}

/* Fotografía de fondo */

.hero-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* Capa oscura para destacar los textos */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.42),
        rgba(0, 0, 0, 0.65)
    );
}

/* Contenedor de los textos */

.hero-content {
    position: relative;
    width: 100%;
    max-width: 850px;
    padding: 60px 25px;
    text-align: center;
    color: #ffffff;
}

/* Decoración botánica */

.hero-botanical {
    width: 180px;
    height: 90px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Texto Nuestra boda */

.hero .eyebrow {
    color: #f0dfbb;
    font-size: 0.8rem;
    letter-spacing: 5px;
}

/* Nombres de los novios */

.hero h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

/* Separador decorativo */

.hero .rule {
    color: #e9d1a1;
}

.hero .rule::before,
.hero .rule::after {
    background: #e9d1a1;
}

/* Frase romántica */

.hero-quote {
    font-size: 1.6rem;
    font-style: italic;
    color: #ffffff;
    max-width: 450px;
}

/* Fecha del matrimonio */

.hero-date {
    color: #f0dfbb;
    font-size: 0.9rem;
    letter-spacing: 4px;
}

/* Botón para continuar */

.hero .scroll-link {
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
    padding: 12px 24px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.hero .scroll-link:hover {
    background: rgba(255,255,255,0.18);
}

/* Animación de entrada */

body.opened .hero-content {
    animation: entradaPortada 1.8s ease both;
}

body.opened .hero-visual img {
    animation: zoomPortada 18s ease-out both;
}

@keyframes entradaPortada {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomPortada {
    from {
        transform: scale(1.06);
    }

    to {
        transform: scale(1);
    }
}

/* Adaptación a dispositivos móviles */

@media (max-width: 768px) {

    .hero-content {
        padding: 45px 20px;
    }

    .hero h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-botanical {
        width: 130px;
        height: 65px;
    }

    .hero-quote {
        font-size: 1.25rem;
    }

    .hero-date {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .hero-visual img {
        object-position: center center;
    }
}

/* Accesibilidad */

@media (prefers-reduced-motion: reduce) {
    body.opened .hero-content,
    body.opened .hero-visual img {
        animation: none;
    }
}


/* =========================================
   MEJORA 03 - DECORACIÓN FLORAL ELEGANCE
========================================= */

/* Decoración de las secciones */

.section {
    position: relative;
}

/* Ornamentos botánicos */

.countdown-section::before,
.story::before,
.events::before,
#programa::before,
.rsvp::before {
    content: "";
    display: block;
    width: 150px;
    height: 70px;
    margin: 0 auto 20px;

    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    opacity: 0.85;
    pointer-events: none;
}

/* Separadores dorados debajo de los títulos */

.section > h2::after,
.detail-card > h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 1px;
    margin: 22px auto;

    background: linear-gradient(
        to right,
        transparent,
        #b28a43,
        transparent
    );
}

/* Fondo de la cuenta regresiva */

.countdown-section {
    background: radial-gradient(
        ellipse at center,
        #fffdf8,
        #eee5d5
    );
}

/* Sección Nuestra historia */

.story {
    background: #f8f5ee;
}

/* Sección de ceremonia y recepción */

.events {
    background: linear-gradient(
        135deg,
        #f8f5ee,
        #eee9df
    );
}

/* Tarjetas de ceremonia y recepción */

.event-card {
    border: 1px solid #cdb78f;
    background: #fffdf8;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(74, 60, 38, 0.07);
    transition: transform 0.4s ease,
                box-shadow 0.4s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(74, 60, 38, 0.12);
}

/* Vestimenta y mesa de regalos */

.detail-card {
    background: linear-gradient(
        145deg,
        #fffdf8,
        #f0e9dc
    );

    border: 1px solid #cdb78f;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(74, 60, 38, 0.06);
}

/* Confirmación de asistencia */

.rsvp {
    background: radial-gradient(
        ellipse at center,
        #f4f5ee,
        #e0e5d7
    );
}

/* Botones elegantes */

.btn {
    border-radius: 30px;
    padding: 12px 30px;
    letter-spacing: 1px;
}

/* Pie de página */

footer {
    background: linear-gradient(
        to bottom,
        #f8f5ee,
        #e9e0cf
    );
    border-top: 1px solid #cdb78f;
    padding: 70px 24px;
}

.footer-botanical {
    width: 180px;
    height: 90px;
}

/* Adaptación a celulares */

@media (max-width: 768px) {

    .countdown-section::before,
    .story::before,
    .events::before,
    #programa::before,
    .rsvp::before {
        width: 110px;
        height: 55px;
        margin-bottom: 15px;
    }

    .section > h2::after,
    .detail-card > h2::after {
        width: 65px;
        margin: 18px auto;
    }

    .footer-botanical {
        width: 140px;
        height: 70px;
    }
}

/* =========================================
   MEJORA 03B - ORNAMENTOS BOTÁNICOS VISIBLES
========================================= */

/* Variables de apoyo */
:root {
    --botanical-opacity: 0.18;
    --botanical-opacity-strong: 0.30;
    --botanical-size: 140px;
    --botanical-color-bg: rgba(168, 176, 154, 0.16);
}

/* Secciones generales */
.section,
.countdown-section,
.story,
.events,
#programa,
.rsvp,
footer {
    position: relative;
    overflow: hidden;
}

/* ORNAMENTO SUPERIOR CENTRAL */
.countdown-section::before,
.story::before,
.events::before,
#programa::before,
.rsvp::before,
footer::before {
    content: "";
    display: block;
    width: 170px;
    height: 80px;
    margin: 0 auto 22px;
    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.95;
    pointer-events: none;
}

/* ESQUINA SUPERIOR IZQUIERDA */
.countdown-section::after,
.story::after,
.events::after,
#programa::after,
.rsvp::after,
footer::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 10px;
    width: 120px;
    height: 120px;
    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: var(--botanical-opacity);
    transform: rotate(-28deg);
    pointer-events: none;
}

/* ORNAMENTOS EXTRA EN ESQUINA INFERIOR DERECHA */
.countdown-section .section-inner,
.story .section-inner,
.events .section-inner,
#programa .section-inner,
.rsvp .section-inner {
    position: relative;
}

.countdown-section .section-inner::after,
.story .section-inner::after,
.events .section-inner::after,
#programa .section-inner::after,
.rsvp .section-inner::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -12px;
    width: 120px;
    height: 120px;
    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: var(--botanical-opacity);
    transform: rotate(148deg);
    pointer-events: none;
}

/* Si tu HTML no tiene .section-inner, esta alternativa ayuda */
.countdown-section > .container,
.story > .container,
.events > .container,
#programa > .container,
.rsvp > .container {
    position: relative;
}

.countdown-section > .container::after,
.story > .container::after,
.events > .container::after,
#programa > .container::after,
.rsvp > .container::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -12px;
    width: 120px;
    height: 120px;
    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: var(--botanical-opacity);
    transform: rotate(148deg);
    pointer-events: none;
}

/* TÍTULOS MÁS DECORATIVOS */
.section > h2,
.countdown-section h2,
.story h2,
.events h2,
#programa h2,
.rsvp h2,
footer h2 {
    position: relative;
    z-index: 1;
}

/* LÍNEA DORADA DECORATIVA */
.section > h2::after,
.countdown-section h2::after,
.story h2::after,
.events h2::after,
#programa h2::after,
.rsvp h2::after,
.detail-card > h2::after {
    content: "";
    display: block;
    width: 90px;
    height: 1px;
    margin: 18px auto 0;
    background: linear-gradient(
        to right,
        transparent,
        #b28a43,
        transparent
    );
}

/* TARJETAS DE EVENTO CON DETALLE FLORAL */
.event-card,
.detail-card {
    position: relative;
    overflow: hidden;
}

.event-card::before,
.detail-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 8px;
    width: 72px;
    height: 72px;
    background-image: url('../img/botanica.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.10;
    transform: rotate(28deg);
    pointer-events: none;
}

/* DECORACIÓN LATERAL SUAVE PARA LA HISTORIA */
.story {
    background:
        radial-gradient(circle at top left, rgba(177, 184, 161, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(177, 184, 161, 0.10), transparent 28%),
        #f8f5ee;
}

/* DECORACIÓN LATERAL SUAVE PARA EVENTOS */
.events {
    background:
        radial-gradient(circle at top right, rgba(177, 184, 161, 0.10), transparent 26%),
        radial-gradient(circle at bottom left, rgba(177, 184, 161, 0.08), transparent 25%),
        linear-gradient(135deg, #f8f5ee, #eee9df);
}

/* DECORACIÓN LATERAL SUAVE PARA RSVP */
.rsvp {
    background:
        radial-gradient(circle at top left, rgba(177, 184, 161, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(177, 184, 161, 0.08), transparent 24%),
        radial-gradient(ellipse at center, #f4f5ee, #e0e5d7);
}

/* PIE DE PÁGINA MÁS ORNAMENTADO */
footer {
    background:
        radial-gradient(circle at top center, rgba(177, 184, 161, 0.10), transparent 32%),
        linear-gradient(to bottom, #f8f5ee, #e9e0cf);
    border-top: 1px solid #cdb78f;
    padding: 70px 24px;
}

/* BOTÓN DE MÚSICA MÁS ELEGANTE */
.music-toggle,
.audio-control,
.btn-music {
    border-radius: 999px;
    border: 1px solid #bfc5b4;
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 6px 18px rgba(74, 60, 38, 0.10);
}

/* BOTONES EN GENERAL */
.btn {
    border-radius: 999px;
    padding: 12px 30px;
    letter-spacing: 1px;
    border: 1px solid #87907d;
    box-shadow: 0 6px 16px rgba(74, 60, 38, 0.08);
}

/* CONTADOR MÁS ESTÉTICO */
.countdown-item,
.count-box,
.time-box {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.28);
    border: 1px solid #d7c8ad;
}

.countdown-item::before,
.count-box::before,
.time-box::before {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    background-image: url('../img/botanica.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.10;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .countdown-section::before,
    .story::before,
    .events::before,
    #programa::before,
    .rsvp::before,
    footer::before {
        width: 130px;
        height: 60px;
        margin-bottom: 18px;
    }

    .countdown-section::after,
    .story::after,
    .events::after,
    #programa::after,
    .rsvp::after,
    footer::after {
        width: 80px;
        height: 80px;
        top: 10px;
        left: -8px;
        opacity: 0.16;
    }

    .countdown-section .section-inner::after,
    .story .section-inner::after,
    .events .section-inner::after,
    #programa .section-inner::after,
    .rsvp .section-inner::after,
    .countdown-section > .container::after,
    .story > .container::after,
    .events > .container::after,
    #programa > .container::after,
    .rsvp > .container::after {
        width: 78px;
        height: 78px;
        right: -10px;
        bottom: -8px;
        opacity: 0.15;
    }

    .event-card::before,
    .detail-card::before {
        width: 52px;
        height: 52px;
    }
}

.story,
.events,
.countdown-section,
#programa,
.rsvp,
footer {
    padding-left: 22px;
    padding-right: 22px;
}

/* =========================================
   MEJORA 04 - NUEVOS ORNAMENTOS BOTÁNICOS
========================================= */

.countdown-section,
.story,
.events,
#programa,
.rsvp,
footer {
    position: relative;
    overflow: hidden;
}

/* ORNAMENTO PRINCIPAL ARRIBA DE CADA SECCIÓN */
.countdown-section::before,
.story::before,
.events::before,
#programa::before,
.rsvp::before,
footer::before {
    content: "";
    display: block;
    width: 180px;
    height: 80px;
    margin: 0 auto 22px;
    background-image: url('../img/botanica-superior.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
}

/* ESQUINA IZQUIERDA */
.countdown-section::after,
.story::after,
.events::after,
#programa::after,
.rsvp::after,
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    background-image: url('../img/botanica-esquina-izquierda.svg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: contain;
    opacity: 0.22;
    pointer-events: none;
}

/* ESQUINA DERECHA */
.countdown-section > .container,
.story > .container,
.events > .container,
#programa > .container,
.rsvp > .container,
footer > .container {
    position: relative;
}

.countdown-section > .container::after,
.story > .container::after,
.events > .container::after,
#programa > .container::after,
.rsvp > .container::after,
footer > .container::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 110px;
    height: 110px;
    background-image: url('../img/botanica-esquina-derecha.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    opacity: 0.20;
    pointer-events: none;
}

/* TARJETAS CON DETALLE BOTÁNICO */
.event-card,
.detail-card {
    position: relative;
    overflow: hidden;
}

.event-card::before,
.detail-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 55px;
    height: 55px;
    background-image: url('../img/botanica-superior.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.08;
    pointer-events: none;
}

/* FOOTER MÁS DECORADO */
footer .footer-botanical,
footer .botanical-footer {
    width: 220px;
    height: 85px;
    margin: 0 auto 20px;
    background-image: url('../img/botanica-footer.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Si no existe ese elemento en el HTML, usamos solo el before */
footer::before {
    background-image: url('../img/botanica-footer.svg');
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .countdown-section::before,
    .story::before,
    .events::before,
    #programa::before,
    .rsvp::before,
    footer::before {
        width: 135px;
        height: 60px;
        margin-bottom: 18px;
    }

    .countdown-section::after,
    .story::after,
    .events::after,
    #programa::after,
    .rsvp::after,
    footer::after {
        width: 78px;
        height: 78px;
        opacity: 0.18;
    }

    .countdown-section > .container::after,
    .story > .container::after,
    .events > .container::after,
    #programa > .container::after,
    .rsvp > .container::after,
    footer > .container::after {
        width: 78px;
        height: 78px;
        opacity: 0.18;
    }

    .event-card::before,
    .detail-card::before {
        width: 42px;
        height: 42px;
    }
}


/* =========================================
   CORRECCIÓN - ORNAMENTOS EN AMBAS ESQUINAS
========================================= */

.countdown-section,
.story,
.events,
#programa,
.rsvp,
footer {
    position: relative;
    overflow: hidden;
}

/* Decoración en ambas esquinas */

.countdown-section::after,
.story::after,
.events::after,
#programa::after,
.rsvp::after,
footer::after {

    content: "";
    position: absolute;

    inset: 0;
    width: auto;
    height: auto;

    margin: 0;
    transform: none;

    background-image:
        url('../img/botanica-esquina-izquierda.svg'),
        url('../img/botanica-esquina-derecha.svg');

    background-position:
        top left,
        bottom right;

    background-size:
        180px 180px,
        180px 180px;

    background-repeat: no-repeat;

    opacity: 0.65;
    pointer-events: none;
}

/* Adaptación para celulares */

@media (max-width: 768px) {

    .countdown-section::after,
    .story::after,
    .events::after,
    #programa::after,
    .rsvp::after,
    footer::after {

        background-size:
            125px 125px,
            125px 125px;

        opacity: 0.65;
    }
}


/* =========================================
   CORRECCIÓN - CAPAS DE LOS ORNAMENTOS
========================================= */

/* Crear un contexto de apilamiento independiente */

.countdown-section,
.story,
.events,
#programa,
.rsvp,
footer {
    position: relative;
    isolation: isolate;
}

/* Colocar los ornamentos detrás del contenido */

.countdown-section::after,
.story::after,
.events::after,
#programa::after,
.rsvp::after,
footer::after {
    z-index: -1;
    pointer-events: none;
}

/* Reservar espacio para los ornamentos inferiores */

.countdown-section,
.story,
.events,
#programa,
.rsvp,
footer {
    padding-bottom: 130px;
}

/* Adaptación para celulares */

@media (max-width: 768px) {

    .countdown-section,
    .story,
    .events,
    #programa,
    .rsvp,
    footer {
        padding-bottom: 100px;
    }
}



/* =========================================
   MEJORA 09 - FORMULARIO RSVP PREMIUM
========================================= */

#confirmar .rsvp-form {
    position: relative;

    max-width: 540px;
    margin: 35px auto;
    padding: 40px 35px;

    background: #fffdf8;

    border: 1px solid #c9b58e;
    border-radius: 5px;

    box-shadow: 0 12px 35px #594c3610;
}

/* Etiquetas */

#confirmar .rsvp-form label {
    color: #59634e;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Campos del formulario */

#confirmar input,
#confirmar select,
#confirmar textarea {
    width: 100%;
    padding: 14px 15px;

    background: #f9f7f1;
    color: #46543f;

    border: 1px solid #d8cbb3;
    border-radius: 5px;

    font-size: 0.95rem;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Campo seleccionado */

#confirmar input:focus,
#confirmar select:focus,
#confirmar textarea:focus {
    outline: none;
    border-color: #9aa58a;
    box-shadow: 0 0 0 3px #9aa58a25;
}

/* Botón de confirmación */

#confirmar button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    padding: 16px 20px;
    margin-top: 15px;

    background: #59634e;
    color: #fffdf8;

    border: 1px solid #59634e;
    border-radius: 40px;

    box-shadow: 0 8px 20px #59634e25;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

#confirmar button[type="submit"]:hover {
    background: #414c3b;
    transform: translateY(-3px);
}

/* Icono integrado */

#confirmar button[type="submit"]::before {
    content: "";
    display: inline-block;

    width: 23px;
    height: 23px;
    flex-shrink: 0;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a9 9 0 0 1-9 9 9.3 9.3 0 0 1-4-.9L3 21l1.4-5A9 9 0 1 1 21 11.5Z'/%3E%3Cpath d='M8 8c0 4 4 8 8 8l1-2-3-2-1 1c-2-1-3-2-4-4l1-1-2-3-2 1Z'/%3E%3C/svg%3E")
                center / contain no-repeat;
}

/* Vista previa del mensaje */

#rsvpStatus {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #eef0e7;
    padding: 20px;
    border-radius: 5px;
    color: #46543f;
    text-align: left;
}

/* Adaptación a celulares */

@media (max-width: 768px) {

    #confirmar .rsvp-form {
        padding: 28px 20px;
    }

    #confirmar input,
    #confirmar select,
    #confirmar textarea {
        font-size: 16px;
    }
}
