    :root {
      --cream: #f7f3ed;
      --paper: #fffdf9;
      --ink: #343b32;
      --muted: #77796f;
      --green: #687765;
      --green-dark: #435344;
      --gold: #b69a68;
      --line: #e7dfd2;
      --serif: "Cormorant Garamond", Georgia, serif;
      --sans: "Montserrat", Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0; background: var(--cream); color: var(--ink);
      font-family: var(--sans); font-size: 14px; line-height: 1.8;
    }
    a { color: inherit; }
    .hero {
      min-height: 100svh; display: grid; place-items: center; text-align: center;
      padding: 70px 22px; position: relative; overflow: hidden;
      background:
        radial-gradient(ellipse at 8% 12%, #dce2d3 0, transparent 28%),
        radial-gradient(ellipse at 92% 88%, #e7ddcb 0, transparent 30%),
        var(--cream);
    }
    .hero > img {position: absolute; inset: 0; opacity: 0.4; filter: brightness(50%);}
    .hero::before, .hero::after {
      content: ""; position: absolute; width: 220px; height: 330px;
      border: 1px solid rgba(104,119,101,.25); border-radius: 100% 0 100% 0;
      transform: rotate(28deg); pointer-events: none;
    }
    .hero::before { left: -120px; top: 8%; }
    .hero::after { right: -120px; bottom: 5%; transform: rotate(208deg); }
    .hero-inner { max-width: 760px; position: relative; z-index: 1}
    
    .eyebrow, .section-kicker {
      text-transform: uppercase; letter-spacing: .28em; font-size: 10px;
      font-weight: 600; color: var(--green-dark); 
    }
    .ornament { color: var(--paper); font-size: 27px; margin: 22px 0; }
    h1 {
      font-family: var(--serif); font-size: clamp(64px, 11vw, 112px);
      line-height: .85; font-weight: 400; margin: 18px 0; color: var(--green-dark);
    }
    h1 span { display: block; font-size: .48em; font-style: italic; color: var(--paper); margin: 15px 0; }
    .hero-subtitle { letter-spacing: .22em; text-transform: uppercase; font-size: 11px; margin-top: 28px; }
    .hero-date { font-family: var(--serif); font-size: 28px; margin: 8px 0 20px; }
    .intro { max-width: 440px; margin: 0 auto; color: (--ink); font-size: 13px; }
    .scroll-link {
      display: inline-block; margin-top: 38px; padding: 12px 24px;
      border: 1px solid var(--green); text-decoration: none; letter-spacing: .15em;
      text-transform: uppercase; font-size: 10px; transition: .2s;
    }
    .scroll-link:hover { background: var(--green); color: white; }
    section { padding: 86px 20px; }
    .section-inner { width: min(850px, 100%); margin: auto; text-align: center; }
    .frase-ropa {font-family: var(--sans); font-size: 13px}
    .section-title {
      font-family: var(--serif); font-size: clamp(40px, 7vw, 58px);
      font-weight: 500; line-height: 1.05; margin: 10px 0 18px;
      color: var(--green-dark);
    }
    .section-copy { max-width: 560px; margin: 0 auto 30px; color: var(--muted); }
    .countdown-section { background: var(--green-dark); color: white; }
    .countdown-section .section-kicker { color: #d8c49e; }
    .countdown-section .section-title { color: white; }
    .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 620px; margin: 38px auto 0; }
    .time-box { border: 1px solid rgba(255,255,255,.3); padding: 20px 8px; }
    .time-box strong { display: block; font-family: var(--serif); font-size: clamp(35px, 7vw, 54px); font-weight: 400; line-height: 1.1; }
    .time-box span { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #e4ddcf; }
    .calendar-wrap { background: var(--paper); padding: 34px; max-width: 480px; margin: 42px auto 0; box-shadow: 0 12px 40px rgba(50,50,40,.05); }
    .calendar-month { font-family: var(--serif); font-size: 30px; margin-bottom: 18px; color:#435344 }
    .calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
    .calendar div { padding: 9px 2px; font-size: 12px; color:#343b32}
    .calendar .day-name { color: var(--muted); font-size: 9px; font-weight: 600; }
    .calendar .wedding-day { background: var(--green); color: white; border-radius: 50%; font-weight: 600; }
    .family-section { background: #eee9df; }
    .family-card { max-width: 500px;margin: auto; padding: 28px 28px; border: 1px solid #d7cbb8; }
    .family-card > img{width: 100%; height: 100%; object-fit: cover;}
    .family-card h3 { font: 500 42px var(--serif); margin: 6px 0 12px; color: var(--green-dark); }
    .program-grid { display: block; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; text-align: center; }
    .program-card { background: var(--paper); padding: 34px 24px; border: 1px solid var(--line); min-width: 350px; justify-self: center;}
    .program-time { font: 500 36px var(--serif); color: var(--gold); }
    .program-card h3 { font: 600 22px var(--serif); margin: 8px 0; }
    .program-card p { color: var(--muted); margin: 4px 0; }
    .text-link { display: inline-block; margin-top: 18px; color: var(--green-dark); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-decoration-thickness: 1px; text-underline-offset: 5px; }
    .rsvp-section { background: #e9e8df; }
    .rsvp-card { max-width: 580px; margin: auto; background: var(--paper); padding: 42px; text-align: left; box-shadow: 0 12px 40px rgba(50,50,40,.05); }
    .passes { text-align: center; color: var(--green); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 25px; }
    label { display: block; font-size: 11px; letter-spacing: .08em; margin: 17px 0 6px; color: var(--muted); }
    input, textarea, select {
      width: 100%; border: 1px solid var(--line); background: white; padding: 13px;
      font: 13px var(--sans); color: var(--ink); border-radius: 0;
    }
    textarea { min-height: 90px; resize: vertical; }
    .button {
      border: 1px solid var(--green-dark); background: var(--green-dark); color: white;
      padding: 15px 20px; width: 100%; margin-top: 20px; cursor: pointer;
      text-transform: uppercase; letter-spacing: .15em; font: 600 10px var(--sans);
    }
    .button:hover { background: transparent; color: var(--green-dark); }
    .rsvp-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }
    .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 35px; }
    .info-card { padding: 30px 22px; border: 1px solid var(--line); }
    .info-card h3 { font: 500 28px var(--serif); color: var(--green-dark); margin: 0 0 8px; }
    .info-card p { color: var(--muted); margin: 0; }
    .gift-section { background: #eee9df; }
    .gift-icon { font-size: 28px; color: var(--gold); }
    footer { text-align: center; padding: 60px 20px; background: var(--green-dark); color: white; }
    footer .names { font: 500 52px var(--serif); line-height: 1; }
    footer p { color: #e2ddcf; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
    @media (max-width: 620px) {
      section { padding: 66px 18px; }
      .program-grid, .info-grid { grid-template-columns: 1fr; }
      .rsvp-card { padding: 28px 20px; }
      .calendar-wrap { padding: 24px 12px; }
      .countdown { gap: 6px; }
      .time-box { padding: 16px 4px; }
      .time-box span { font-size: 8px; letter-spacing: .08em; }
    }
    /* PANTALLA DE APERTURA */

#pantalla-apertura {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e9e5de;
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

/* ESCENA */

.escena {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 1200px;
}

/* SOBRE */

.sobre {
    position: relative;
    width: min(88vw, 430px);
    height: min(62vw, 290px);
    min-height: 210px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 20px 25px rgba(0,0,0,.18));
}

/* CARTA BLANCA */

.carta {
    position: absolute;
    z-index: 2;
    left: 8%;
    bottom: 8%;
    width: 84%;
    height: 110%;
    background: linear-gradient(145deg, #ffffff, #fafafa);
    padding: 9px;
    box-shadow:
        0 2px 5px rgba(0,0,0,.08),
        0 10px 25px rgba(0,0,0,.12);
    transform: translateY(55%);
    transition: transform 1.3s cubic-bezier(.22,.8,.25,1);
}

.borde-carta {
    width: 100%;
    height: 100%;
    border: 1px solid #ded6c9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-sizing: border-box;
}

.carta-pequena {
    color: #9b8b75;
    font-size: 9px;
    letter-spacing: 3px;
}

.carta h2 {
    color: #34445b;
    font-family: Georgia, serif;
    font-size: 39px;
    font-weight: normal;
    margin: 15px 0;
}

.carta h2 span {
    font-style: italic;
    color: #b49a72;
}

.linea-carta {
    width: 55px;
    height: 1px;
    background: #c6b18f;
    margin: 5px 0 15px;
}

.mensaje-carta {
    max-width: 230px;
    color: #77716a;
    font-family: Georgia, serif;
    font-size: 13px;
    line-height: 1.6;
}

.firma-carta {
    color: #34445b;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 15px;
    margin-top: 12px;
}

/* CUERPO DEL SOBRE */

.cuerpo-sobre {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(145deg, #ffffff, #eeeae3);
    clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
    border-radius: 3px;
    box-shadow: inset 0 0 15px rgba(0,0,0,.05);
}

/* SOLAPA SUPERIOR */

.solapa {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(160deg, #ffffff, #d3cec5ec);
    clip-path: polygon(0 0, 100% 0, 50% 65%);
    transform-origin: top center;
    transition: transform .9s ease;
    backface-visibility: hidden;
}

/* SELLO DE LACRE */

#abrir-invitacion {
    position: absolute;
    z-index: 5;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px double #c5a77c;
    background: radial-gradient(circle at 35% 30%, #536987, #263951 75%);
    color: #fffaf0;
    font-family: Georgia, serif;
    font-size: 23px;
    font-style: italic;
    box-shadow:
        0 4px 8px rgba(0,0,0,.25),
        inset 0 0 0 4px rgba(255,255,255,.08);
    cursor: pointer;
    transition: transform .3s ease, opacity .4s ease;
}

#abrir-invitacion:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.instruccion-apertura {
    margin-top: 55px;
    color: #756b5e;
    font-size: 10px;
    letter-spacing: 3px;
    text-align: center;
}

/* ANIMACIÓN DE APERTURA */

.sobre.abierta .solapa {
    transform: rotateX(180deg);
    z-index: 1;
}

.sobre.abierta #abrir-invitacion {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
    pointer-events: none;
}

.sobre.abierta .carta {
    transform: translateY(-12%);
    transition-delay: .45s;
}

#pantalla-apertura.salida {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* AJUSTES PARA CELULARES */

@media (max-width: 480px) {
    .hero {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    .sobre {
        width: 90vw;
        height: 60vw;
    }

    .carta-pequena {
        font-size: 8px;
    }

    .mensaje-carta {
        font-size: 11px;
    }

    #abrir-invitacion {
        width: 68px;
        height: 68px;
        font-size: 21px;
    }
}
#programa {display: grid; grid-template-columns: .9fr 1.1fr;}
.foto{position: relative; box-shadow: 0 18px 35px rgba(38,57,81,.18);}
.vertical { height: 85%; }
.vertical img { object-position: center; object-fit: cover; width: 100%; height: 100%;}
.vertical figcaption { position: absolute; bottom: 0; width: 100%; padding: 18px; color: white; font-style: italic; background: linear-gradient(transparent,rgba(0,0,0,.55)); }
#informacion { background: rgb(238, 233, 223);}
.gift-section {display: grid; grid-template-columns: .9fr 1.1fr;}

.hero {
    position: relative;
    width: 100%;
    height: 800px; /* Altura del bloque */
    overflow: hidden;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 650px;
    }

    .hero img {
        object-fit: cover;
        object-position: 35%;
    }
    #programa{
        display: block;
    }
    .gift-section{display: block;}
}
figure {line-height: 0}

/* Reproductor musical */
.reproductor-musica {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 12px;
}

.boton-musica {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid #d8bd85;

    background: #fffaf0;
    color: #9b7842;

    font-size: 20px;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.boton-musica:hover {
    transform: scale(1.1);
    background: #ead9b5;
}

.texto-musica {
    background: rgba(255, 250, 240, 0.95);
    color: #80643d;
    padding: 9px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Animación cuando la música está sonando */
.boton-musica.sonando {
    animation: pulsoMusical 2s infinite;
}

@keyframes pulsoMusical {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 189, 133, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(216, 189, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(216, 189, 133, 0);
    }
}

/* Ajustes para celulares */
@media (max-width: 600px) {
    .reproductor-musica {
        bottom: 15px;
        right: 15px;
    }

    .boton-musica {
        width: 48px;
        height: 48px;
    }

    .texto-musica {
        font-size: 10px;
    }
}