:root {

    --brand: #E35336;
    /* terracota de las tarjetas de números */
    --text: #ffffff;
    --formal: "Cormorant Garamond", Georgia, serif;
    --ink: #5A2E24;
    /* texto principal (combina con terracota/blanco) */
    --ink-soft: #6F4035;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: #0e0e0e;
    line-height: 1.5;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: clip;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg picture,
.hero__bg img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero__bg img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.02);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--brand);
    opacity: 0.35;
    /* jQuery lo ajusta si usas data-overlay-opacity */
    mix-blend-mode: multiply;
}

.hero__content {
    position: relative;
    width: min(92vw, 980px);
    text-align: center;
    padding: clamp(16px, 4vw, 40px);
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .35));
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .7s ease, transform .7s ease;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

.hero.is-visible .hero__content {
    opacity: 1;
    transform: translateY(0);
}

.hero__kicker {
    margin: 0 0 .25rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-soft);
    opacity: .95;
    font-size: clamp(12px, 2.2vw, 14px);
}

/* Nombres con contorno ligero en #E35336 */
.hero__names {
    margin: .25rem 0 .5rem 0;
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-size: clamp(44px, 9vw, 96px);
    line-height: 1.05;
    text-wrap: balance;
    color: #fff;

    /* Contorno suave compatible */
    /*text-shadow:
        0 1px 0 rgba(227, 83, 54, .55),
        1px 0 0 rgba(227, 83, 54, .55),
        -1px 0 0 rgba(227, 83, 54, .55),
        0 -1px 0 rgba(227, 83, 54, .55);
    -webkit-text-stroke: 0.8px rgba(227, 83, 54, .6);*/

    text-shadow:
        0 1px 0 rgba(0, 0, 0, .55),
        1px 0 0 rgba(0, 0, 0, .55),
        -1px 0 0 rgba(0, 0, 0, .55),
        0 -1px 0 rgba(0, 0, 0, .55);
    -webkit-text-stroke: 0.8px rgba(0, 0, 0, .6);
}

.hero__subtitle {
    margin: 0 auto .75rem auto;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(16px, 2.8vw, 22px);
    color: var(--text-soft);
    text-wrap: pretty;
    max-width: 60ch;
}

.hero__date {
    margin: 0 0 1.25rem 0;
    font-weight: 700;
    font-size: clamp(15px, 2.5vw, 20px);
    letter-spacing: .02em;
}

.hero__cta {
    display: inline-block;
    padding: .9rem 1.35rem;
    border-radius: 999px;
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    font-size: clamp(14px, 2.4vw, 16px);
}

.hero__cta:hover {
    transform: translateY(-1px);
}

.hero__cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

/* Siguiente sección */
.next-section {
    background: #fff;
    color: #111;
    padding: min(8vw, 64px) min(5vw, 40px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.next-section h2 {
    margin: 0 0 .5rem 0;
    font-size: clamp(20px, 4vw, 28px);
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .hero__content {
        transition: none;
    }
}

/* ================================
   CUENTA REGRESIVA — REEMPLAZO
   ================================ */
:root {
    --brand: #E35336;
    /* terracota tarjetas */
    --text: #ffffff;
    --formal: "Cormorant Garamond", Georgia, serif;
    --ink: #5A2E24;
    /* texto del card */
    --ink-soft: #6F4035;
}

.countdown {
    --cd-bg: none;
    /* pásala inline: style="--cd-bg:url('...')" */
    position: relative;
    padding: min(10vw, 88px) min(6vw, 48px);
    color: var(--text);
    isolation: isolate;
    background-color: var(--brand);
}

.countdown::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .10);
    /* puedes poner 0 si no lo quieres */
    pointer-events: none;
}

.countdown__inner {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: min(1100px, 100%);
    /* evita “zonas muertas” por width menor que el viewport */
}

.countdown__card {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
    padding: clamp(18px, 4vw, 36px) clamp(16px, 4vw, 44px);
    text-align: center;
}

.countdown__title,
.countdown__lead,
.countdown .label {
    font-family: var(--formal);
    color: var(--ink);
}

.countdown__title {
    margin: 0 0 .9rem 0;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.15;
    font-size: clamp(22px, 4.2vw, 30px);
}

/* Lead sin “zona muerta”: ancho completo y cortes seguros */
.countdown__lead {
    margin: 0 auto 1.35rem auto;
    max-width: none;
    /* << clave para quitar hueco */
    padding-inline: 2px;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(16px, 2.6vw, 20px);
    line-height: 1.65;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.countdown__lead strong {
    font-weight: 700;
    color: var(--ink);
}

.countdown__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: clamp(12px, 2.5vw, 28px);
    align-items: stretch;
    justify-items: center;
}

/* Tarjetas: no fuerces min-width en pantallas chicas */
.countdown .unit {
    background: var(--brand);
    color: #fff;
    border-radius: 18px;
    padding: clamp(14px, 3.2vw, 22px) clamp(12px, 2.8vw, 20px);
    min-width: 0;
    /* << evita desbordes */
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 26px rgba(227, 83, 54, .35);
}

.countdown .num {
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 8vw, 60px);
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums lining-nums;
}

.countdown .label {
    margin-top: .5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .95;
}

.countdown__note {
    margin: 1.25rem 0 0 0;
    font-family: var(--formal);
    font-weight: 700;
    font-size: clamp(16px, 2.8vw, 20px);
    color: var(--ink);
}

/* ===== Breakpoints anti “zona muerta” ===== */
@media (max-width: 900px) {
    .countdown__inner {
        width: 100%;
    }

    .countdown__card {
        padding: clamp(16px, 5vw, 28px);
    }

    .countdown__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* 2x2 */
        gap: 14px;
    }

    .countdown .unit {
        min-width: 0;
    }

    /* asegura que quepa */
    .countdown__lead {
        max-width: none;
    }

    /* sin límites de ancho */
}

@media (max-width: 420px) {
    .countdown__grid {
        grid-template-columns: 1fr;
        /* 1x1 si es muy angosto */
        gap: 12px;
    }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .countdown * {
        transition: none !important;
    }
}


/* =======================================
    LÍNEA DE TIEMPO — SOLUCIÓN ESTABLE (FLEX)
   ======================================= */
:root {
    --brand: #E35336;
    /* línea y dots */
    --ink: #2b2b2b;
    --ink-soft: #5a5a5a;
    --formal: "Cormorant Garamond", Georgia, serif;
    --tl-h: clamp(320px, 34vw, 460px);
    /* alto mínimo de cada fila */
}

/* Sección */
.timeline {
    background: #fff;
    color: var(--ink);
    position: relative;
    padding: min(10vw, 88px) min(6vw, 48px);
}

.timeline__inner {
    width: min(1100px, 94vw);
    margin: 0 auto;
    position: relative;
}

/* Línea central fija */
.timeline__inner::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: var(--brand);
    border-radius: 2px;
    opacity: .9;
}

/* ===== Ítem ===== */
.tl-item {
    position: relative;
    display: flex;
    /* FLEX en lugar de grid */
    gap: clamp(16px, 3vw, 28px);
    align-items: stretch;
    /* columnas se estiran a la misma altura */
    min-height: var(--tl-h);
    /* asegura altura consistente */
    margin: clamp(18px, 4vw, 36px) 0;
}

/* Alternar lados: pares a la derecha con row-reverse */
.tl-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Columnas */
.tl-media,
.tl-content {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    /* centra vertical */
}

/* Imagen ocupa toda la altura disponible del ítem */
.tl-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

/* separa título y descripción sin romper el centrado */
.tl-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centrado vertical se mantiene */
    gap: clamp(8px, 1.2vw, 14px);
    /* espacio fluido entre título y párrafo */
}

/* centra verticalmente el bloque de texto */
.tl-item:nth-child(even) .tl-content {
    text-align: right;
    justify-content: center;
}

.tl-title {
    margin: 0 0 .35rem 0;
    font-family: var(--formal);
    font-weight: 700;
    font-size: clamp(20px, 3.6vw, 28px);
    letter-spacing: .01em;
    color: var(--ink);
}

.tl-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(14px, 2.6vw, 18px);
    line-height: 1.65;
    max-width: 46ch;
    margin-inline: auto 0;
    /* empuja hacia el eje correcto */
}

.tl-item:nth-child(even) .tl-desc {
    margin-inline: 0 auto;
}

/* Dot centrado sobre la línea */
.tl-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 4px solid var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(227, 83, 54, .12);
}

/* ===== Móvil: una columna natural ===== */
@media (max-width:900px) {
    .timeline__inner::before {
        left: 8px;
        transform: none;
    }

    .tl-item {
        flex-direction: column;
        min-height: auto;
        padding-left: 28px;
        /* espacio para la línea + dot */
    }

    .tl-media,
    .tl-content {
        width: 100%;
        align-items: stretch;
        justify-content: flex-start;
    }

    .tl-media img {
        height: auto;
    }

    /* fluye natural */
    .tl-item .tl-content {
        text-align: left !important;
    }

    .tl-dot {
        left: 8px;
    }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .timeline * {
        transition: none !important;
    }
}

/* ===== Ajustes Mobile Timeline ===== */
@media (max-width: 900px) {
    .timeline__inner::before {
        left: 14px;
        width: 3px;
        transform: none;
        opacity: .9;
    }

    .tl-item {
        flex-direction: column !important;
        display: block;
        padding-left: 34px;
        margin: 28px 0;
    }

    .tl-item .tl-media {
        order: 1;
    }

    .tl-item .tl-content {
        order: 2;
    }

    .tl-media img {
        height: auto !important;
        width: 90%;
        margin-bottom: 14px;
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    }

    .tl-content {
        margin-left: 0;
        padding-left: 2px;
    }

    .tl-title {
        margin: 0 0 8px 0;
    }

    .tl-desc {
        line-height: 1.7;
    }

    .tl-dot {
        left: 14px;
        width: 12px;
        height: 12px;
        border-width: 3px;
        box-shadow: 0 0 0 4px rgba(227, 83, 54, .12);
    }
}

/* === Fix móvil: texto a ancho completo, sin zonas muertas ni desbordes === */
@media (max-width: 900px) {

    /* espacio para la línea a la izquierda y margen a la derecha */
    .tl-item {
        padding-left: 38px;
        /* línea + dot */
        padding-right: 16px;
        /* margen derecho simétrico */
        margin: 28px 0;
    }

    /* imagen arriba con separación */
    .tl-media img {
        width: 100%;
        height: auto !important;
        margin-bottom: 14px;
        display: block;
    }

    /* el bloque de texto ocupa todo el ancho útil */
    .tl-content {
        padding-left: 2px;
        /* micro respiro del borde izquierdo */
        padding-right: 2px;
    }

    /* quitar límites de ancho en títulos y párrafos */
    .tl-title,
    .tl-desc {
        max-width: none !important;
    }

    /* evitar desbordes de palabras largas o URLs */
    .tl-desc {
        overflow-wrap: anywhere;
        /* permite cortar en cualquier punto si es necesario */
        word-break: normal;
        /* cortes con guion si el idioma lo soporta */
        line-height: 1.7;
    }
}

/* ===== Timeline — espaciado cómodo en móvil ===== */
@media (max-width: 900px) {

    /* padding lateral global de la sección (respeta notches) */
    .timeline {
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }

    /* cada item: más espacio a la izquierda para la línea y aire a la derecha */
    .tl-item {
        padding-left: 42px;
        /* línea + dot + respiro */
        padding-right: 18px;
        /* margen derecho uniforme */
        margin: 22px 0;
        /* separación vertical entre items */
        gap: 12px;
        /* espacio entre imagen y texto */
    }

    /* línea y dot ligeramente contenidos */
    .timeline__inner::before {
        left: 16px;
        width: 3px;
        transform: none;
    }

    .tl-dot {
        left: 16px;
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    /* imagen con padding óptico y sombra suave */
    .tl-media img {
        width: 100%;
        height: auto !important;
        display: block;
        border-radius: 10px;
        margin-bottom: 12px;
        /* aire debajo de la imagen */
        box-shadow: 0 10px 22px rgba(0, 0, 0, .10);
    }

    /* texto con respiración lateral y buena lectura */
    .tl-content {
        padding: 0 4px;
        /* micro respiro para que no “toque” el borde */
    }

    .tl-title {
        margin: 0 0 10px 0;
        /* separa título de descripción */
    }

    .tl-desc {
        line-height: 1.7;
        overflow-wrap: anywhere;
        hyphens: auto;
    }
}


/* Evita scroll lateral por transforms iniciales de AOS */
html,
body {
    overflow-x: clip;
}

/* más estricto que hidden en navegadores modernos */

/* Corta cualquier “salida” horizontal durante la animación */
[data-aos] {
    overflow-x: clip;
}

/* Garantiza clipping en tus secciones grandes */
.hero,
.countdown,
.timeline,
.tl-item,
section,
header,
main {
    overflow-x: clip;
}

/* Si usas efectos AOS de izquierda/derecha, cambia a desplazamiento vertical
   para que no “ensanchen” el layout antes de animar */
[data-aos="fade-left"],
[data-aos="fade-right"],
[data-aos="slide-left"],
[data-aos="slide-right"] {
    transform: translate3d(0, 16px, 0);
    /* vertical en vez de horizontal */
}

[data-aos="fade-left"].aos-animate,
[data-aos="fade-right"].aos-animate,
[data-aos="slide-left"].aos-animate,
[data-aos="slide-right"].aos-animate {
    transform: translate3d(0, 0, 0);
}

/* Pequeñas optimizaciones para animaciones más suaves y sin “jitter” */
[data-aos] {
    backface-visibility: hidden;
    will-change: transform, opacity;
}

// ...existing code...
[data-aos="slide-left"].aos-animate,
[data-aos="slide-right"].aos-animate {
    transform: translate3d(0, 0, 0);
}

/* ================================
   Galería Rollo Fotográfico (CSS Loop)
   ================================ */
.film-section {
    background-color: var(--brand);
    color: var(--text);
    padding: min(10vw, 88px) 0;
    font-family: var(--formal);
}

.film-container {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.film-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin: 0 0 .5rem 0;
}

.film-subtitle {
    font-size: clamp(15px, 2.5vw, 18px);
    font-style: italic;
    color: var(--text);
    margin: 0 auto 2.5rem auto;
    max-width: 60ch;
    padding: 0 1rem;
}

.filmstrip {
    display: flex;
    overflow-x: auto;
    /* Cambiado para permitir scroll nativo */
    padding: 1rem 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
    mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
    scrollbar-width: none;
    /* Ocultar scrollbar en Firefox */
}

.filmstrip::-webkit-scrollbar {
    display: none;
    /* Ocultar scrollbar en Chrome/Safari */
}

.filmstrip.is-dragging {
    cursor: grabbing;
}

.filmstrip__track {
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    width: max-content;
    /* Clave para que el track se expanda */
    /* Animación de bucle infinito */
    animation: scroll 60s linear infinite;
}

.filmstrip[data-direction="reverse"] .filmstrip__track {
    animation-name: scroll-reverse;
}

.filmstrip__track img {
    height: 220px;
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filmstrip__track img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
    /* Pausa la imagen individual, no todo el track */
}

@media (max-width: 768px) {
    .filmstrip__track img {
        height: 180px;
    }
}

/* Keyframes para la animación de scroll */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* Mueve hasta la mitad (donde empieza la copia) */
}

@keyframes scroll-reverse {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ================================
   Modal de la Galería
   ================================ */
/* ... (El CSS del modal no necesita cambios, puedes dejarlo como está) ... */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gallery-modal__content {
    position: relative;
    padding: 1rem;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.gallery-modal.is-visible .gallery-modal__content {
    transform: scale(1);
}

.gallery-modal__content img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.gallery-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: grid;
    place-items: center;
    padding-bottom: 4px;
}

.gallery-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ========== Dónde & Cuándo (elegante) ========== */
:root {
    --brand: #E35336;
    --ink: #2b2b2b;
    --muted: #6f6f6f;
    --paper: #ffffff;
    --formal: "Cormorant Garamond", Georgia, serif;
    --sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.dwq {
    background: #fff;
    color: var(--ink);
    padding: min(10vw, 88px) min(6vw, 48px);
}

.dwq__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(18px, 3vw, 32px);
    width: min(1100px, 94vw);
    margin: 0 auto;
    align-items: stretch;
}

@media (max-width: 960px) {
    .dwq__inner {
        grid-template-columns: 1fr;
    }
}

.dwq__card {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(3px);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
    padding: clamp(18px, 2.8vw, 28px);
}

.dwq__title {
    font-family: var(--formal);
    font-weight: 700;
    font-size: clamp(22px, 3.6vw, 30px);
    margin: 0 0 clamp(12px, 2vw, 18px);
    text-align: left;
}

.dwq__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: clamp(10px, 1.8vw, 14px);
}

.dwq__row {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.dwq__row:last-child {
    border-bottom: 0;
}

.dwq__icon {
    color: var(--brand);
    display: grid;
    place-items: center;
}

.dwq__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dwq__text strong {
    font-family: var(--formal);
    font-weight: 700;
    letter-spacing: .01em;
}

.dwq__text span {
    color: var(--muted);
}

.dwq__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(12px, 2vw, 18px);
}

.dwq__btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: .8rem 1.1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(227, 83, 54, .35);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s;
    font-family: var(--sans);
}

.dwq__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(227, 83, 54, .42);
}

.dwq__btn--ghost {
    background: #fff;
    color: var(--brand);
    border: 2px solid var(--brand);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

.dwq__btn-ico {
    display: grid;
    place-items: center;
}

.dwq__map {
    min-height: 320px;
}

.dwq__map-frame {
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

.dwq__map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========= De los novios (carta elegante) ========= */
:root {
    --brand: #E35336;
    --ink: #2b2b2b;
    --muted: #6f6f6f;
    --paper: #ffffff;
    --formal: "Cormorant Garamond", Georgia, serif;
    --cursive: "Great Vibes", "Allura", cursive;
    /* usa la que ya tengas cargada */
}

.letter {
    background: #fff;
    color: var(--ink);
    padding: min(10vw, 88px) min(6vw, 48px);
    overflow-x: clip;

    isolation: isolate;
    background-image: url('../img/fondo_contador.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.letter__inner {
    width: min(940px, 92vw);
    margin: 0 auto;
}

.letter__title {
    font-family: var(--formal);
    font-weight: 700;
    font-size: clamp(22px, 4vw, 32px);
    text-align: center;
    margin: 0 0 clamp(18px, 3vw, 28px);
}

.letter__card {
    position: relative;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
}

/* cinta/ornamento lateral muy sutil en terracota */
.letter__ribbon {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(227, 83, 54, .08), transparent 24%) left top/14px 100% no-repeat,
        linear-gradient(270deg, rgba(227, 83, 54, .08), transparent 24%) right top/14px 100% no-repeat;
    pointer-events: none;
}

.letter__body {
    max-width: 65ch;
    /* ancho ideal para lectura */
    margin: 0 auto;
    color: var(--ink);
    font-family: var(--formal);
    font-size: clamp(16px, 2.3vw, 20px);
    line-height: 1.8;
}

/* cursiva elegante + capitular sutil en el primer párrafo real */
.letter__body p {
    margin: 0 0 1rem 0;
    color: var(--ink);
    font-style: italic;
}

.letter__body p:first-of-type::first-letter {
    font-size: 1.9em;
    line-height: 1;
    padding-right: .04em;
    color: var(--brand);
    font-weight: 700;
    font-style: normal;
}

/* firma en cursiva grande */
.letter__signature {
    margin-top: clamp(14px, 2.4vw, 20px);
    text-align: center;
}

.letter__signature span {
    font-family: var(--cursive);
    font-size: clamp(28px, 5.5vw, 44px);
    color: var(--brand);
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(227, 83, 54, .15));
}

/* accesibilidad y estabilidad en móviles */
@media (max-width: 520px) {
    .letter {
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }

    .letter__body {
        line-height: 1.9;
    }
}

/* ===== Footer ===== */
:root {
    /* Asegúrate de tener esta variable ya definida en tu proyecto */
    --brand: #E35336;
    --ink: #2b2b2b;
}

.site-footer {
    background: #fff;
    color: rgba(0, 0, 0, .66);
    text-align: center;
    padding: 18px 16px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    overflow-x: clip;
}

.site-footer__text {
    margin: 0;
    font-size: clamp(14px, 2.2vw, 15px);
    line-height: 1;
}

.site-footer__heart {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
    margin: 0 6px;
    color: var(--brand);
    /* color del corazón (via currentColor) */
}

.site-footer__heart svg {
    display: block;
}

.site-footer__link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(227, 83, 54, .35);
}

.site-footer__link:hover,
.site-footer__link:focus {
    text-decoration: none;
    border-bottom-color: rgba(227, 83, 54, .65);
    outline: none;
}

/* --- Animación de Lluvia de Pétalos --- */
@keyframes fall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

.petal-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    top: 0;
    width: 8px;
    height: 12px;
    background-color: rgba(255, 255, 255);
    border-radius: 50% 0;
    opacity: 0;
    animation: fall linear infinite;
}

.petal:nth-child(1) {
    left: 5%;
    animation-duration: 15s;
    animation-delay: -5s;
}

.petal:nth-child(2) {
    left: 15%;
    animation-duration: 12s;
    animation-delay: -2s;
}

.petal:nth-child(3) {
    left: 25%;
    animation-duration: 18s;
    animation-delay: -8s;
}

.petal:nth-child(4) {
    left: 35%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.petal:nth-child(5) {
    left: 45%;
    animation-duration: 20s;
    animation-delay: -10s;
}

.petal:nth-child(6) {
    left: 55%;
    animation-duration: 13s;
    animation-delay: -3s;
}

.petal:nth-child(7) {
    left: 65%;
    animation-duration: 16s;
    animation-delay: -7s;
}

.petal:nth-child(8) {
    left: 75%;
    animation-duration: 11s;
    animation-delay: -1s;
}

.petal:nth-child(9) {
    left: 85%;
    animation-duration: 19s;
    animation-delay: -9s;
}

.petal:nth-child(10) {
    left: 95%;
    animation-duration: 14s;
    animation-delay: -4s;
}

.petal:nth-child(11) {
    left: 10%;
    animation-duration: 17s;
    animation-delay: -6s;
}

.petal:nth-child(12) {
    left: 20%;
    animation-duration: 13s;
    animation-delay: -11s;
}

.petal:nth-child(13) {
    left: 50%;
    animation-duration: 15s;
    animation-delay: -1s;
}

.petal:nth-child(14) {
    left: 80%;
    animation-duration: 12s;
    animation-delay: -6s;
}

.petal:nth-child(15) {
    left: 90%;
    animation-duration: 22s;
    animation-delay: -12s;
}

/* ================================
   Fuegos Artificiales
   ================================ */
.fireworks-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    display: none;
    /* Oculto por defecto */
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    animation: firework-burst 1.2s ease-out forwards;
}

.firework:nth-child(1) {
    top: 20%;
    left: 25%;
    animation-delay: 0.2s;
}

.firework:nth-child(2) {
    top: 40%;
    left: 70%;
    animation-delay: 0.8s;
}

.firework:nth-child(3) {
    top: 65%;
    left: 40%;
    animation-delay: 1.5s;
}

@keyframes firework-burst {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(35);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===============================
   SPLASH ENVELOPE (CSS COMPLETO)
   Copia y reemplaza todo este bloque
   =============================== */

:root {
    --brand: #E35336;
    --paperTop: #f7f4f1;
    --paperBottom: #f3eee9;
    --ink: #5b3e33;
}

/* Lienzo del splash */
.splash-envelope {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    cursor: pointer;
    isolation: isolate;
    opacity: 1;
    /* base visible */
    transition: opacity 2400ms ease;
    /* fundido muuuy suave */
    background-image: url('../img/fondo_contador.png');
    background-size: cover;
    background-position: center;
}

/* Mensajito inferior */
.splash-instructions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5vh;
    text-align: center;
    color: var(--brand);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    animation: splashPulse 2.5s infinite;
}

@keyframes splashPulse {

    0%,
    100% {
        opacity: .55
    }

    50% {
        opacity: 1
    }
}

/* Contenedor 3D del sobre */
.env3d {
    position: relative;
    width: 50%;
    /* puedes ajustar */
    height: 60%;
    /* puedes ajustar */
    transform-style: preserve-3d;
    perspective: 1400px;
    transition: transform 900ms cubic-bezier(.2, .9, .2, 1);
}

/* Vista previa: voltea para mostrar el reverso (solo hover) */
.splash-envelope:hover .env3d {
    transform: rotateY(180deg);
}

/* Movimiento del sobre: mucho más lento */
.splash-envelope.is-opening .env3d {
    transform: translateY(-105vh) rotateY(0) rotateZ(-10deg);
    transition-duration: 2400ms;
    /* antes 1000/1600 */
}

/* cuando empieza la apertura, deshabilita clics */
.splash-envelope.is-opening {
    pointer-events: none;
}

/* esta clase apaga el fondo mientras el sobre se va */
.splash-envelope.is-fading {
    opacity: 0;
}

/* Caras comunes */
.env-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
}

/* Papel con textura suave */
.env-paper {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background:
        repeating-linear-gradient(0deg, rgba(0, 0, 0, .018) 0 2px, rgba(0, 0, 0, 0) 2px 6px),
        linear-gradient(var(--paperTop), var(--paperBottom));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

/* FRONT (sin líneas V) */
.env-front {
    z-index: 2;
    transform: rotateY(0deg);
}

/* BACK (con líneas V mediante SVG) */
.env-back {
    z-index: 1;
    transform: rotateY(180deg);
}

.env-v {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 10px;
    width: 100%;
    height: 75%;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .06));
    pointer-events: none;
}

/* Solapa (gira al hover y al abrir) */
.env-flap {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    transform: rotateY(180deg) rotateX(0deg);
    transform-origin: 50% 0%;
    background: linear-gradient(var(--paperTop), var(--paperBottom));
    box-shadow: 0 14px 30px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .05);
    /* Geometría de sobre */
    clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 98%, 0 62%);
    z-index: 3;
}

.splash-envelope:hover .env-flap {
    transform: rotateY(180deg) rotateX(-24deg);
    transition: transform 700ms ease 160ms;
}

/* Solapa al abrir (más lenta) */
.splash-envelope.is-opening .env-flap {
    transform: rotateY(180deg) rotateX(-160deg);
    transition: transform 1600ms ease 120ms;
    /* antes ~720/1000 */
}

/* ===============================
   Texto sobre la cara frontal
   =============================== */
.env-letter {
    position: absolute;
    inset: 0;
    /* ocupa toda la cara frontal */
    pointer-events: none;
    /* el clic funciona en todo el sobre */
    z-index: 4;
    /* por encima del papel frontal */
}

/* “Una invitación para ti” — parte superior centrada */
.env-letter .pre {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--ink);
    letter-spacing: .2px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
}

/* Nombres centrados al medio en UNA sola línea */
.env-letter .names {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.2rem, 6.2vw, 3.4rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: .5px;
    color: var(--brand);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .85);
}

/* Nombres acompañan hacia arriba (suave) */
.splash-envelope.is-opening .env-letter .names {
    transform: translate(-50%, calc(-50% - 155px));
    transition: transform 1600ms ease 500ms;
    /* más lenta + delay */
}

/* Mensajito inferior: opcional bajar brillo durante fade */
.splash-envelope.is-fading .splash-instructions {
    opacity: .2;
    transition: opacity 2400ms ease;
}

/* Responsive fino */
@media (max-width:520px) {
    .env3d {
        width: 92vw;
        height: calc(92vw * .66);
    }

    .env-letter .pre {
        top: 60px;
    }

    .env-letter .names {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* ===============================
   FAB Cerrar invitación (volver al sobre)
   =============================== */
.fab-close {
    position: fixed;
    right: clamp(14px, 3vw, 22px);
    bottom: clamp(14px, 3vw, 22px);
    z-index: 9990;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand, #E35336);
    box-shadow: 0 12px 28px rgba(227, 83, 54, .35), 0 2px 6px rgba(0, 0, 0, .15);
    cursor: pointer;

    /* estado invisible por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.9);
    transition: opacity .45s ease, visibility .45s ease, transform .45s ease, box-shadow .2s ease;
}

/* Mostrar cuando la invitación está abierta */
.fab-close.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Efecto de pulso alrededor */
.fab-close::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(227, 83, 54, .36);
    animation: fabPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes fabPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(227, 83, 54, .36);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(227, 83, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(227, 83, 54, 0);
    }
}

.fab-close:hover {
    box-shadow: 0 16px 36px rgba(227, 83, 54, .42), 0 3px 10px rgba(0, 0, 0, .18);
}

/* Accesibilidad / reduce motion */
@media (prefers-reduced-motion: reduce) {
    .fab-close::after {
        animation: none;
    }

    .fab-close {
        transition: none;
    }
}