/* ==========================================================================
   LO — Lorena & Ossiel
   --------------------------------------------------------------------------
   Collage de papeleria: papel texturizado de fondo, sobres verde olivo,
   tarjetas blancas encimadas, alcatraces, lacre dorado y dibujos a linea.
   Referencia de estilo: invite.amoreaestudio.com/miguelycamila (2026-12-01).
   Todo lo de aqui es propio: el sobre, el lacre, la flor, el ovalo y los
   dibujos son CSS/SVG; las fuentes son libres (Google Fonts).

   Una sola columna angosta centrada, como la referencia, en celular y en
   monitor. Prefijo `lo-`. Las clases `bw-*` NO se pueden renombrar: las
   escribe o las lee `assets/js/script.js` (cuenta regresiva y RSVP).
   Esta invitacion va sin pase QR (BODA.qr = false), por eso no hay estilos
   pass-* / qr-*.
   ========================================================================== */

:root {
    --lo-papel: #ebe9e4;
    /* fondo: papel gris calido */
    --lo-tarjeta: #fbf9f5;
    /* tarjetas blancas */
    --lo-olivo: #434a2c;
    /* sobres, flor, ovalo */
    --lo-olivo-hondo: #333a1f;
    --lo-olivo-claro: #5a6238;
    --lo-forro: #8d8a3c;
    /* forro del sobre: olivo dorado */
    --lo-tinta: #1d1d1b;
    --lo-tinta-suave: #4d4b45;
    --lo-filete: rgba(29, 29, 27, .18);
    --lo-crema: #f3efe6;
    /* texto sobre olivo */

    --lo-script: "Pinyon Script", "Snell Roundhand", "Segoe Script", cursive;
    --lo-serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, serif;
    --lo-suave: "Cormorant Garamond", "Garamond", Georgia, serif;

    --lo-col: 27rem;
    --lo-sombra: 0 1px 1px rgba(0, 0, 0, .06), 0 8px 18px -6px rgba(0, 0, 0, .22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body.lo {
    margin: 0;
    background-color: var(--lo-papel);
    color: var(--lo-tinta);
    font-family: var(--lo-serif);
    font-weight: 300;
    line-height: 1.4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Relieve de papel: ruido con luz rasante, encima de todo y sin estorbar */
body.lo::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.045' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='2.2'%3E%3CfeDistantLight azimuth='225' elevation='58'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
    background-size: 320px 320px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.lo-col {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--lo-col);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Datos que todavia no mandan los novios: se ven subrayados para no
   olvidarlos. Al llegar el dato se quita el span. */
.lo-pend {
    text-decoration: underline dotted rgba(140, 40, 40, .55);
    text-underline-offset: .2em;
}

/* --------------------------------------------------------------------------
   Piezas compartidas
   -------------------------------------------------------------------------- */

/* Tarjeta de papel blanco */
.lo-tarjeta {
    position: relative;
    background: var(--lo-tarjeta);
    box-shadow: var(--lo-sombra);
    text-align: center;
}

.lo-tarjeta::after {
    /* grano fino del papel de la tarjeta */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .48  0 0 0 0 .44  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Etiqueta en mayusculas espaciadas */
.lo-etiqueta {
    margin: 0;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Dato en italica: "3:00 pm | Lugar" */
.lo-dato {
    margin: .25rem 0 0;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-style: italic;
    font-size: .8125rem;
    line-height: 1.45;
}

/* Boton rectangular de un pixel: "Ubicacion", "Lista de regalos" */
.lo-boton {
    display: inline-block;
    padding: .2rem 1.1rem;
    border: 1px solid currentColor;
    background: transparent;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: .875rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.lo-boton:hover,
.lo-boton:focus-visible {
    background: var(--lo-tinta);
    color: var(--lo-tarjeta);
}

.lo-boton--claro:hover,
.lo-boton--claro:focus-visible {
    background: var(--lo-crema);
    color: var(--lo-olivo);
}

/* Titulo grande en serif delgada: REGALOS, FALTAN */
.lo-titulo-xl {
    margin: 0;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: clamp(3.6rem, 19vw, 5.6rem);
    line-height: .9;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-align: center;
}

/* Frase en italica suave */
.lo-frase {
    margin: 0;
    font-family: var(--lo-suave);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.35;
    text-align: center;
}

/* Dibujos a linea (iglesia, arco, vestimenta) */
.lo-dibujo {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Foto que falta: hueco con la medida exacta */
.lo-foto-pend {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .06)),
        #c9c6bb;
    color: rgba(29, 29, 27, .55);
    font-family: var(--lo-suave);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

/* Alcatraces (simbolo SVG) */
.lo-calas {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .14));
}

/* --------------------------------------------------------------------------
   Sobre verde olivo
   .lo-sobre--abierto: solapa arriba con el forro a la vista y algo que asoma
   .lo-sobre--cerrado: solapa abajo, con lacre
   -------------------------------------------------------------------------- */

.lo-sobre {
    position: relative;
    width: 100%;
    aspect-ratio: 1.4;
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .22));
}

.lo-sobre-fondo,
.lo-sobre-frente,
.lo-sobre-solapa {
    position: absolute;
    left: 0;
    width: 100%;
}

.lo-sobre-fondo {
    top: 0;
    height: 100%;
    background: var(--lo-olivo-hondo);
}

/* Solapa abierta: triangulo hacia arriba, forro adentro */
.lo-sobre--abierto .lo-sobre-solapa {
    bottom: 100%;
    height: 62%;
    margin-bottom: -1px;
    background: var(--lo-olivo);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.lo-sobre--abierto .lo-sobre-solapa::before {
    content: "";
    position: absolute;
    inset: 9% 9% 0;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    background:
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, .16) 0 8%, transparent 9%),
        radial-gradient(circle at 62% 58%, rgba(255, 255, 255, .12) 0 10%, transparent 11%),
        radial-gradient(circle at 48% 86%, rgba(0, 0, 0, .12) 0 12%, transparent 13%),
        linear-gradient(160deg, #a4a04a, var(--lo-forro) 55%, #6f6d2a);
}

/* Bolsillo del frente: tapas de los lados y de abajo */
.lo-sobre-frente {
    bottom: 0;
    height: 100%;
    background: var(--lo-olivo);
    clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
    z-index: 3;
}

.lo-sobre-frente::before,
.lo-sobre-frente::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* tapas laterales un poco mas oscuras */
.lo-sobre-frente::before {
    background: var(--lo-olivo-hondo);
    opacity: .35;
    clip-path: polygon(0 0, 46% 56%, 0 100%, 100% 0, 54% 56%, 100% 100%);
}

/* tapa de abajo, con su filo */
.lo-sobre-frente::after {
    background: linear-gradient(180deg, var(--lo-olivo-claro), var(--lo-olivo));
    clip-path: polygon(0 100%, 50% 44%, 100% 100%);
}

/* Lo que asoma del sobre abierto (foto o tarjeta) */
.lo-sobre-carta {
    position: absolute;
    z-index: 2;
    left: 12%;
    right: 12%;
}

/* Sobre cerrado: la solapa baja hasta el centro */
.lo-sobre--cerrado .lo-sobre-fondo {
    background: var(--lo-olivo);
}

.lo-sobre--cerrado .lo-sobre-fondo::after {
    /* filos de las tapas de abajo, apenas marcados */
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top right, transparent calc(50% - .5px), rgba(0, 0, 0, .18) 50%, transparent calc(50% + .5px)) left bottom / 50% 50% no-repeat,
        linear-gradient(to top left, transparent calc(50% - .5px), rgba(0, 0, 0, .18) 50%, transparent calc(50% + .5px)) right bottom / 50% 50% no-repeat;
}

.lo-sobre--cerrado .lo-sobre-solapa {
    top: 0;
    height: 58%;
    z-index: 2;
    background: linear-gradient(180deg, var(--lo-olivo), var(--lo-olivo-claro));
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}

/* Lacre dorado */
.lo-lacre {
    position: absolute;
    z-index: 5;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 48% 52% 50% 46% / 50% 46% 54% 50%;
    background:
        radial-gradient(circle at 34% 28%, #f2d9a6 0 6%, transparent 30%),
        radial-gradient(circle at 50% 50%, #c99a57 0 52%, #a77a3c 70%, #7d5626 100%);
    box-shadow:
        0 3px 6px rgba(0, 0, 0, .3),
        inset 0 -3px 5px rgba(80, 50, 15, .45),
        inset 0 2px 3px rgba(255, 235, 190, .55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lo-lacre::before {
    content: "";
    position: absolute;
    inset: .5rem;
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(80, 50, 15, .5),
        0 1px 0 rgba(255, 235, 190, .5);
}

.lo-lacre span {
    position: relative;
    font-family: var(--lo-script);
    font-size: 1.55rem;
    line-height: 1;
    color: #7a5222;
    text-shadow: 0 1px 0 rgba(255, 232, 185, .7), 0 -1px 0 rgba(70, 40, 10, .35);
    letter-spacing: -.06em;
}

/* --------------------------------------------------------------------------
   1. Encabezado: iniciales en script cruzadas con el nombre en serif
   -------------------------------------------------------------------------- */

.lo-cabeza {
    padding: 3.5rem 0 0;
    text-align: center;
}

.lo-monograma {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin: 0;
    font-weight: 300;
    white-space: nowrap;
    /* todo escala con el ancho de la pantalla, sin pasar de la columna */
    font-size: min(7.6vw, 2.1rem);
    line-height: 1;
}

.lo-monograma .ini {
    display: inline-block;
    font-family: var(--lo-script);
    font-weight: 400;
    font-size: 2.9em;
    line-height: .66;
    transform: rotate(-12deg) translateY(.06em);
    margin-right: -.12em;
    position: relative;
    z-index: 1;
}

.lo-monograma .resto {
    font-family: var(--lo-serif);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: -.01em;
    padding-bottom: .05em;
}

.lo-monograma .y {
    font-family: var(--lo-script);
    font-size: 2.1em;
    line-height: .66;
    margin: 0 .08em 0 .14em;
}

.lo-cabeza-fecha {
    margin: 1rem 0 0;
    font-family: var(--lo-suave);
    font-size: 1.05rem;
    letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   2. Portada: sobre abierto con la foto, alcatraces y ramito
   -------------------------------------------------------------------------- */

.lo-portada {
    position: relative;
    padding: 9.5rem 0 4.5rem;
}

.lo-portada .lo-sobre {
    width: 86%;
    margin: 0 auto;
}

/* Ventana: del 52% sobre el sobre hasta casi su pie (mide 150% del alto del
   sobre). Recorta abajo para que la foto, guardada, no asome bajo el sobre. */
.lo-portada .lo-sobre-carta {
    top: -52%;
    bottom: 2%;
    left: 13%;
    right: 13%;
    overflow: hidden;
}

/* La tarjeta con la foto: 112% del alto del sobre (74.7% de la ventana) y su
   pie al 34% del sobre (21.3% de la ventana) => asoma 46% por arriba */
.lo-carta {
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 21.3%;
    height: 74.7%;
    padding: .45rem;
    background: var(--lo-tarjeta);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

.lo-carta>* {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Animacion: la solapa se abre y la foto sale del sobre ──
   Solo con .lo-anim en <html> (lo pone el <head> si no se pidio reducir el
   movimiento); sin JS o con movimiento reducido se ve abierto desde el inicio.
   El script agrega .is-abierto a la portada cuando entra en pantalla. */

/* Estado inicial: solapa doblada sobre el frente, foto guardada */
.lo-anim .lo-portada .lo-sobre-solapa {
    transform-origin: 50% 100%;
    transform: perspective(900px) rotateX(180deg);
    z-index: 4;
    background-color: #4d5535;
}

.lo-anim .lo-portada .lo-sobre-solapa::before {
    opacity: 0;
}

/* Bajarla 90% de su alto la deja por debajo de la V del bolsillo: no se ve */
.lo-anim .lo-portada .lo-carta {
    transform: translateY(90%);
}

.lo-anim .lo-portada.is-abierto .lo-sobre-solapa {
    animation: lo-solapa-abre 1s .35s cubic-bezier(.45, 0, .3, 1) both;
}

.lo-anim .lo-portada.is-abierto .lo-sobre-solapa::before {
    animation: lo-forro-aparece 1s .35s linear both;
}

.lo-anim .lo-portada.is-abierto .lo-carta {
    animation: lo-carta-sale 1.7s 1.15s cubic-bezier(.2, .75, .25, 1) both;
}

/* A medio giro (90°, de canto) la solapa pasa detras de la foto, y su cara
   de adentro (el forro) es la que queda a la vista */
@keyframes lo-solapa-abre {
    0% {
        transform: perspective(900px) rotateX(180deg);
        z-index: 4;
        background-color: #4d5535;
    }

    49.9% {
        z-index: 4;
        background-color: #4d5535;
    }

    50% {
        transform: perspective(900px) rotateX(90deg);
        z-index: 0;
        background-color: var(--lo-olivo);
    }

    100% {
        transform: perspective(900px) rotateX(0deg);
        z-index: 0;
        background-color: var(--lo-olivo);
    }
}

@keyframes lo-forro-aparece {

    0%,
    49.9% {
        opacity: 0;
    }

    50%,
    100% {
        opacity: 1;
    }
}

@keyframes lo-carta-sale {
    from {
        transform: translateY(90%);
    }

    to {
        transform: none;
    }
}

/* Los de la derecha van detras del sobre; el ramito de la izquierda, delante */
.lo-portada .lo-calas--der {
    width: 44%;
    right: -3%;
    top: 1.5rem;
    z-index: 0;
    transform: rotate(14deg);
}

.lo-portada .lo-calas--izq {
    width: 34%;
    left: -4%;
    bottom: 1rem;
    z-index: 4;
    transform: rotate(-18deg) scaleX(-1);
}

/* --------------------------------------------------------------------------
   3. Musica
   -------------------------------------------------------------------------- */

.lo-musica {
    padding: 0 0 3rem;
    text-align: center;
}

.lo-musica .lo-frase {
    font-style: normal;
    font-size: 1.35rem;
}

.lo-reproductor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    margin-top: .9rem;
}

.lo-reproductor-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 0;
    background: var(--lo-tinta);
    color: var(--lo-tarjeta);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.lo-reproductor-btn:active {
    transform: scale(.94);
}

.lo-reproductor-btn svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.lo-reproductor-btn .ico-pausa {
    display: none;
}

.lo-reproductor.is-sonando .ico-play {
    display: none;
}

.lo-reproductor.is-sonando .ico-pausa {
    display: block;
}

.lo-reproductor-barra {
    width: 7rem;
    height: 1px;
    background: var(--lo-filete);
    position: relative;
}

.lo-reproductor-barra span {
    position: absolute;
    left: 0;
    top: -1px;
    height: 3px;
    width: 0;
    background: var(--lo-tinta);
    border-radius: 2px;
}

/* --------------------------------------------------------------------------
   4. Invitacion: tarjeta con padres, nombres y fecha
   -------------------------------------------------------------------------- */

.lo-invitacion {
    padding: 3.75rem 1.75rem 3.5rem;
}

.lo-padres {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.4rem;
}

.lo-padres p {
    margin: 0;
    font-style: italic;
    font-size: .9rem;
    line-height: 1.3;
}

.lo-etiqueta--sub {
    margin-top: 1.75rem;
    font-size: .6875rem;
    color: var(--lo-tinta-suave);
}

.lo-invitacion-texto {
    max-width: 13rem;
    margin: 2.25rem auto 0;
    font-size: .8125rem;
}

.lo-nombres {
    margin: 1.5rem 0 0;
    font-family: var(--lo-script);
    font-weight: 400;
    font-size: 2.4rem;
    line-height: .95;
}

.lo-nombres .y {
    display: block;
    font-size: .6em;
    line-height: .9;
}

.lo-invitacion-fecha {
    margin: 1.75rem 0 0;
    font-family: var(--lo-suave);
    font-size: 1.05rem;
    letter-spacing: .08em;
}

/* --------------------------------------------------------------------------
   5. Flor: "Anadelo a tu calendario"
   -------------------------------------------------------------------------- */

.lo-flor {
    position: relative;
    display: block;
    width: 15rem;
    margin: -2.5rem 0 0 -.25rem;
    color: var(--lo-crema);
    text-decoration: none;
    text-align: center;
    /* `rotate`/`scale` sueltos y no `transform`: el transform lo usa la
       aparicion al hacer scroll ([data-rev]) y se comeria el giro */
    rotate: -4deg;
    position: relative;
    z-index: 2;
}

.lo-flor[data-rev] {
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1), rotate .35s ease, scale .35s ease;
}

.lo-flor:hover,
.lo-flor:focus-visible {
    rotate: -1deg;
    scale: 1.03;
}

.lo-flor svg {
    width: 100%;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .2));
}

.lo-flor-txt {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lo-flor-txt .arriba {
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lo-flor-txt .abajo {
    font-family: var(--lo-script);
    font-size: 2.6rem;
    line-height: .95;
}

/* --------------------------------------------------------------------------
   6. Ceremonia: sobre cerrado con lacre y la tarjeta encima
   -------------------------------------------------------------------------- */

.lo-ceremonia {
    position: relative;
    padding: 2rem 0 0;
}

.lo-ceremonia .lo-sobre {
    width: 86%;
    margin-left: -1%;
}

.lo-ceremonia .lo-tarjeta {
    position: relative;
    z-index: 4;
    width: 80%;
    margin: -24% 0 0 auto;
    padding: 1.75rem 1rem 1.5rem;
}

/* La punta de la solapa cae a ~42% del ancho de la seccion; la tarjeta
   empieza en el 20%, asi que dentro de ella queda al 27.5% */
.lo-ceremonia .lo-lacre {
    left: calc(27.5% - 2.2rem);
    top: -2.2rem;
}

.lo-ceremonia .lo-dibujo {
    width: 7.5rem;
    margin: 1rem auto 1.1rem;
    color: #8a8780;
}

/* --------------------------------------------------------------------------
   7. Recepcion: ovalo mitad papel, mitad olivo
   -------------------------------------------------------------------------- */

.lo-recepcion {
    padding: 2.5rem 0 0;
}

.lo-ovalo {
    position: relative;
    width: 13.5rem;
    aspect-ratio: .7;
    margin-left: 6%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(180deg, var(--lo-tarjeta) 0 36%, var(--lo-olivo) 36%);
    box-shadow: var(--lo-sombra);
    color: var(--lo-crema);
    text-align: center;
}

.lo-ovalo-arriba {
    height: 36%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 1.4rem .65rem;
    color: var(--lo-tinta);
}

.lo-ovalo-abajo {
    padding: 1rem 1.4rem 0;
}

.lo-ovalo .lo-dibujo {
    width: 5.2rem;
    margin: 0 auto .9rem;
    color: rgba(243, 239, 230, .75);
}

/* --------------------------------------------------------------------------
   8. Vestimenta: tarjeta de texto, tarjeta con dibujo y etiqueta festoneada
   -------------------------------------------------------------------------- */

.lo-vestimenta {
    position: relative;
    padding: 5rem 0 2rem;
    min-height: 32rem;
}

.lo-vestimenta-texto {
    position: relative;
    z-index: 2;
    width: 52%;
    padding: 1.6rem 1rem;
}

.lo-vestimenta-texto p {
    margin: 0;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: .78rem;
    letter-spacing: .06em;
    line-height: 1.55;
    text-transform: uppercase;
}

.lo-vestimenta-dibujo {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 10.5rem;
    width: 52%;
    aspect-ratio: .66;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem .5rem 1.5rem;
}

.lo-vestimenta-dibujo .lo-dibujo {
    width: 100%;
    color: #6e6b64;
}

.lo-etiqueta-festoneada {
    position: absolute;
    z-index: 3;
    left: 14%;
    top: 16.5rem;
    width: 11rem;
    color: var(--lo-crema);
    text-align: center;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .22));
}

.lo-etiqueta-festoneada svg {
    width: 100%;
}

.lo-etiqueta-festoneada p {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    font-family: var(--lo-script);
    font-size: 2.7rem;
    line-height: .8;
}

.lo-vestimenta .lo-calas {
    width: 36%;
    left: 40%;
    top: 1.5rem;
    z-index: 0;
    transform: rotate(8deg);
}

/* --------------------------------------------------------------------------
   9. Frase  ·  10. Regalos
   -------------------------------------------------------------------------- */

.lo-cita {
    padding: 2.5rem 0 3.5rem;
}

.lo-regalos {
    position: relative;
    padding: 0 0 6rem;
}

.lo-regalos .lo-titulo-xl {
    position: relative;
    z-index: 3;
    margin-bottom: -1.9rem;
}

.lo-regalos .lo-tarjeta {
    width: 86%;
    margin: 0 auto;
    padding: 3.25rem 1.6rem 2.25rem;
}

.lo-regalos .lo-tarjeta p {
    margin: 0 0 1.25rem;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* No hay mesa de regalos: en lugar del boton, el sobre de la lluvia de sobres */
.lo-sobres {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lo-sobres svg {
    width: 1.6rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.lo-regalos .lo-calas {
    width: 30%;
    right: -4%;
    bottom: 1.5rem;
    z-index: 4;
    transform: rotate(-10deg);
}

/* --------------------------------------------------------------------------
   11. Cuenta regresiva (script.js pinta los .bw-count-*)
   -------------------------------------------------------------------------- */

.lo-cuenta {
    padding: 1rem 0 3rem;
    text-align: center;
}

.lo-clock {
    display: flex;
    justify-content: center;
    gap: .35rem;
    margin: 1.25rem 0 1.5rem;
    min-height: 5rem;
}

.lo-clock .bw-count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.6rem;
    padding: .6rem 0 .5rem;
    border-left: 1px solid var(--lo-filete);
}

.lo-clock .bw-count-item:first-child {
    border-left: 0;
}

.lo-clock .bw-count-num {
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: 2.3rem;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.lo-clock .bw-count-label {
    margin-top: .4rem;
    font-size: .625rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lo-tinta-suave);
}

/* --------------------------------------------------------------------------
   12. Confirmacion: la tarjeta sale del sobre y trae el formulario
   -------------------------------------------------------------------------- */

.lo-rsvp {
    position: relative;
    padding: 4rem 0 2rem;
}

.lo-rsvp-sobre {
    position: relative;
    width: 96%;
    margin: 0 auto;
}

/* Medidas en % del ancho del sobre (padding y margin en % se miden contra
   el ancho): el bolsillo mide 100/1.4 = 71.4% de alto, sube 68% sobre el pie
   de la tarjeta, y en las orillas de la tarjeta tapa hasta ~62% hacia arriba.
   Por eso la tarjeta lleva 64% de aire abajo: el formulario nunca queda tras
   el bolsillo, y por la V se ve el papel como en un sobre de verdad. */
.lo-rsvp .lo-tarjeta {
    position: relative;
    z-index: 2;
    width: 84%;
    margin: 0 auto;
    padding: 2rem 1.4rem 64%;
    text-align: left;
}

.lo-rsvp-fondo {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 1.4;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 40%),
        var(--lo-olivo-hondo);
}

.lo-rsvp-titulo {
    margin: 0 0 1.4rem;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
    text-align: center;
}

.lo-rsvp-aviso {
    margin: -.6rem 0 1.1rem;
    font-style: italic;
    font-size: .875rem;
    line-height: 1.4;
    text-align: center;
}

.lo-rsvp-aviso strong {
    font-weight: 400;
}

.lo-rsvp-aviso--adultos {
    margin-top: -.6rem;
    font-style: normal;
    font-size: .625rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lo-tinta-suave);
}

/* El bolsillo se sube sobre el pie de la tarjeta */
.lo-rsvp .lo-sobre {
    margin-top: -68%;
    z-index: 3;
}

.lo-rsvp .lo-calas {
    width: 34%;
    left: -2%;
    top: 1rem;
    z-index: 0;
    transform: rotate(-24deg);
}

.lo-rsvp-pie {
    max-width: 16rem;
    margin: 2rem auto 0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
}

/* Banner del invitado (llega con ?id_invitado=) */
.bw-guest-banner {
    padding: .9rem 0 1rem;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--lo-filete);
    border-bottom: 1px solid var(--lo-filete);
    text-align: center;
}

.bw-guest-banner .hello {
    margin: 0 0 .2rem;
    font-size: .625rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--lo-tinta-suave);
}

.bw-guest-banner .gname {
    margin: 0;
    font-family: var(--lo-script);
    font-size: 1.9rem;
    line-height: 1.15;
}

.bw-guest-banner .gcount {
    margin: .2rem 0 0;
    font-style: italic;
    font-size: .8125rem;
    color: var(--lo-tinta-suave);
}

/* "No te reconocimos" — script.js la prende con .show */
.bw-search-box {
    display: none;
    padding: .9rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--lo-filete);
    font-size: .8125rem;
    text-align: center;
}

.bw-search-box.show {
    display: block;
}

.bw-search-box p {
    margin: 0;
}

.bw-search-box .hint {
    margin-top: .25rem;
    font-style: italic;
    color: var(--lo-tinta-suave);
}

.lo-rsvp .bw-field {
    margin-bottom: 1.25rem;
}

.lo-rsvp .bw-field-lbl {
    display: block;
    margin-bottom: .45rem;
    font-size: .625rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lo-tinta-suave);
}

.lo-rsvp .bw-field input[type="text"],
.lo-rsvp .bw-field select {
    width: 100%;
    padding: .55rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(29, 29, 27, .35);
    border-radius: 0;
    color: var(--lo-tinta);
    font-family: var(--lo-serif);
    font-weight: 300;
    /* 16px minimo: con menos, iOS hace zoom al tocar el campo */
    font-size: 1rem;
    outline: none;
    transition: border-color .25s ease;
}

.lo-rsvp .bw-field input[type="text"]:focus,
.lo-rsvp .bw-field select:focus {
    border-bottom-color: var(--lo-olivo);
}

.lo-rsvp .bw-field input[readonly] {
    color: var(--lo-tinta-suave);
}

.bw-radio-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.bw-radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .65rem;
    border: 1px solid rgba(29, 29, 27, .3);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.bw-radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bw-radio-card .ico {
    flex: none;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(29, 29, 27, .5);
    border-radius: 50%;
    transition: background .2s ease, border-color .2s ease;
}

.bw-radio-card .txt {
    font-size: .8125rem;
    line-height: 1.25;
}

.bw-radio-card:has(input:checked),
.bw-radio-card.is-checked {
    border-color: var(--lo-olivo);
    background: rgba(67, 74, 44, .08);
}

.bw-radio-card:has(input:checked) .ico,
.bw-radio-card.is-checked .ico {
    background: var(--lo-olivo);
    border-color: var(--lo-olivo);
}

.bw-rsvp-submit {
    width: 100%;
    padding: .85rem;
    margin-top: .25rem;
    background: var(--lo-olivo);
    color: var(--lo-crema);
    border: 0;
    font-family: var(--lo-serif);
    font-weight: 300;
    font-size: .75rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease;
}

.bw-rsvp-submit:hover {
    background: var(--lo-olivo-hondo);
}

.bw-rsvp-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* script.js los prende con .show()/.hide(), asi que arrancan ocultos */
#loader,
#success,
#error {
    display: none;
    margin-top: .9rem;
    font-style: italic;
    font-size: .875rem;
    text-align: center;
}

#success {
    color: var(--lo-olivo);
}

#error {
    color: #8c3a32;
}

/* --------------------------------------------------------------------------
   13. Cierre
   -------------------------------------------------------------------------- */

.lo-cierre {
    padding: 2rem 0 2.5rem;
    text-align: center;
}

.lo-cierre .lo-monograma {
    font-size: min(6.4vw, 1.75rem);
}

.lo-credito {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0 0 2rem;
    font-size: .6875rem;
    letter-spacing: .08em;
    text-align: center;
    color: var(--lo-tinta-suave);
}

.lo-credito a {
    text-decoration: none;
    border-bottom: 1px solid var(--lo-filete);
}

/* --------------------------------------------------------------------------
   14. Aparicion al hacer scroll
   -------------------------------------------------------------------------- */

[data-rev] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

[data-rev].visto {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-rev] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .lo-flor,
    .lo-flor:hover {
        transition: none;
    }
}

/* Pantallas muy angostas (320px): se aprieta un poco el collage */
@media (max-width: 360px) {
    .lo-col {
        padding: 0 .9rem;
    }

    .lo-vestimenta-texto p {
        font-size: .7rem;
    }

    .lo-etiqueta-festoneada {
        width: 9.5rem;
    }

    .lo-clock .bw-count-item {
        min-width: 3.9rem;
    }
}
