/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
img {
    max-width: 100%;
    display: block;
}
button {
    font: inherit;
    background: none;
    border: none;
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}

:root {
    --paper: #faf6ec;
    --paper-deep: #efe4cc;
    --ink: #3b352c;
    --ink-soft: #7a7263;
    --leaf: #5c6b44;
    --leaf-deep: #39472a;
    --gold: #b08d4f;
    --wax: #8c3b3b;
    --white-flower: #fffdf8;
    --radius: 16px;
    --shadow: 0 14px 36px rgba(57, 71, 42, 0.14);
    --font-script: "Parisienne", cursive;
    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Lora", serif;
    --ease-bloom: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.no-scroll,
html.no-scroll body {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(
            circle at 12% 18%,
            rgba(255, 255, 255, 0.55),
            transparent 42%
        ),
        radial-gradient(
            circle at 88% 82%,
            rgba(176, 141, 79, 0.1),
            transparent 48%
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ============ SVG SPRITE (hidden defs) ============ */
.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ============ ENVELOPE SCREEN (pantalla completa) ============ */
.envelope-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 18%,
            rgba(255, 255, 255, 0.6),
            transparent 48%
        ),
        radial-gradient(
            circle at 50% 105%,
            rgba(57, 71, 42, 0.14),
            transparent 62%
        ),
        var(--paper-deep);
    background-image:
        radial-gradient(
            circle at 50% 18%,
            rgba(255, 255, 255, 0.6),
            transparent 48%
        ),
        radial-gradient(
            circle at 50% 105%,
            rgba(57, 71, 42, 0.14),
            transparent 62%
        ),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    background-color: var(--paper-deep);
    transition:
        opacity 1.2s ease,
        visibility 1.2s ease;
}
.envelope-screen.is-open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(176, 141, 79, 0.55);
    pointer-events: none;
}
.envelope-frame::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(176, 141, 79, 0.3);
}
@media (min-width: 640px) {
    .envelope-frame {
        inset: 30px;
    }
    .envelope-frame::before {
        inset: 11px;
    }
}

.corner--intro .corner__inner {
    opacity: 0;
    transform: scale(0.5);
    animation: cornerBloom 1.2s var(--ease-bloom) both;
}
.envelope-corner--tl .corner__inner {
    animation-delay: 0.2s;
}
.envelope-corner--tr .corner__inner {
    animation-delay: 0.35s;
}
.envelope-corner--bl .corner__inner {
    animation-delay: 0.35s;
}
.envelope-corner--br .corner__inner {
    animation-delay: 0.5s;
}
@keyframes cornerBloom {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.envelope-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 460px;
    padding: 0 26px;
    text-align: center;
    perspective: 1000px; /* Necesario para el efecto 3D del sobre */
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.envelope-eyebrow {
    font-family: var(--font-heading);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.68rem;
    color: var(--gold);
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.25s both;
}
.envelope-names {
    font-family: var(--font-script);
    font-size: clamp(2.3rem, 10vw, 3.8rem);
    color: var(--leaf-deep);
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s both;
}
.envelope-date {
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.32em;
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: -6px;
    opacity: 0;
    animation: fadeInUp 0.9s ease 0.5s both;
}
.envelope-divider {
    opacity: 0;
    max-width: 150px;
    animation: fadeInUp 0.9s ease 0.6s both;
}

/* Contenedor del sobre animado */
.envelope-wrap {
    position: relative;
    width: min(400px, 84vw);
    margin-top: 6px;
    opacity: 0;
    animation: fadeInUp 1.1s ease 0.72s both;
    transform-origin: center;
    transition:
        transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 1.2s ease;
}
/* Zoom y desvanecimiento al abrir */
.envelope-screen.is-opening .envelope-wrap {
    transform: scale(1.15) translateY(10px);
    opacity: 0;
}

.envelope-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 20px 34px rgba(57, 71, 42, 0.15));
}

/* Solapa del sobre con giro 3D */
.env-flap {
    transform-origin: 50% 14.3%; /* Punto exacto de rotación del sobre (y=30 de 210) */
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.envelope-screen.is-opening .env-flap {
    transform: rotateX(165deg); /* Se abre hacia arriba simulando la realidad */
}

.seal-btn-wrap {
    position: absolute;
    top: 39%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: sealEnter 1s var(--ease-bloom) 1s both;
}
@keyframes sealEnter {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(14px) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

/* Botón de Corazón (Más pequeño y delicado) */
.seal-btn {
    position: relative;
    width: 60px;
    height: 60px; /* Reducido de 80px a 60px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle at 30% 30%,
        #f9f5f0,
        #e8dfd5
    ); /* Tonos crema elegantes */
    box-shadow:
        0 6px 16px rgba(176, 141, 79, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.06),
        inset 0 3px 6px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(176, 141, 79, 0.35); /* Borde dorado tenue */
    animation: gentlePulse 3.5s ease-in-out infinite; /* Pulso más lento y suave */
    cursor: pointer;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.seal-btn:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 20px rgba(176, 141, 79, 0.25),
        inset 0 -3px 6px rgba(0, 0, 0, 0.06),
        inset 0 3px 6px rgba(255, 255, 255, 0.8);
}
.seal-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
.seal-btn svg {
    width: 24px;
    height: 24px; /* Icono más sutil */
    fill: var(--gold); /* Corazón color dorado en lugar de blanco */
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Latido suave (respiro) en lugar de un salto brusco */
@keyframes gentlePulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.envelope-screen.is-opening .seal-btn {
    animation: none;
    transform: scale(0);
    opacity: 0;
    transition:
        transform 0.6s ease,
        opacity 0.5s ease;
}

.envelope-hint {
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    font-size: 0.92rem;
    text-align: center;
    margin-top: 4px;
    opacity: 0;
    animation: fadeInUp 0.9s ease 1.3s both;
    transition: opacity 0.6s ease;
}
.envelope-screen.is-opening .envelope-hint {
    opacity: 0;
}

/* ============ MUSIC TOGGLE ============ */
.music-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid rgba(176, 141, 79, 0.5);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.music-toggle.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.music-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--leaf-deep);
}
.music-toggle .icon-pause {
    display: none;
}
.music-toggle.is-playing .icon-play {
    display: none;
}
.music-toggle.is-playing .icon-pause {
    display: block;
}

/* --- ANIMACIÓN DE NOTAS MUSICALES SUTILES --- */
.music-toggle.is-playing::before,
.music-toggle.is-playing::after {
    content: "♪";
    position: absolute;
    top: 5px;
    left: 50%;
    color: var(--gold); /* Un tono dorado elegante */
    font-size: 1.1rem;
    pointer-events: none; /* Evita que estorben al hacer clic */
    opacity: 0;
    z-index: -1; /* Salen por detrás del botón */
}
.music-toggle.is-playing::after {
    content: "♫";
    font-size: 0.95rem;
}

/* Tiempos de animación diferentes para que salgan de a pocos */
.music-toggle.is-playing::before {
    animation: floatNote1 4s infinite linear;
}
.music-toggle.is-playing::after {
    animation: floatNote2 4.5s infinite linear 2s; /* Empieza 2 segundos después */
}

/* Trayectoria 1: Hacia arriba y a la izquierda */
@keyframes floatNote1 {
    0% {
        transform: translate(-50%, 0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.6;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translate(-150%, -70px) scale(1.1) rotate(-15deg);
        opacity: 0;
    }
}

/* Trayectoria 2: Hacia arriba y a la derecha */
@keyframes floatNote2 {
    0% {
        transform: translate(-50%, 0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.5;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translate(50%, -80px) scale(1.1) rotate(15deg);
        opacity: 0;
    }
}

/* ============ SITE / SECTIONS ============ */
.site {
    position: relative;
    overflow-x: hidden;
}

.section {
    position: relative;
    padding: 88px 22px;
    overflow: hidden;
}
.section-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: block;
    font-family: var(--font-heading);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--gold);
    margin-bottom: 14px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 220px;
    margin: 22px auto;
}
.divider span {
    flex: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.45;
}
.divider svg {
    width: 14px;
    height: 14px;
    fill: var(--leaf);
    opacity: 0.8;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}
.section.in-view .reveal {
    opacity: 1;
    transform: none;
}
.reveal-d1 {
    transition-delay: 0.08s;
}
.reveal-d2 {
    transition-delay: 0.18s;
}
.reveal-d3 {
    transition-delay: 0.28s;
}

/* ---- corner ornaments ---- */
.corner {
    position: absolute;
    width: clamp(96px, 20vw, 190px);
    height: clamp(96px, 20vw, 190px);
    pointer-events: none;
    z-index: 1;
}
.corner--tl {
    top: -6px;
    left: -6px;
}
.corner--tr {
    top: -6px;
    right: -6px;
    transform: scaleX(-1);
}
.corner--bl {
    bottom: -6px;
    left: -6px;
    transform: scaleY(-1);
}
.corner--br {
    bottom: -6px;
    right: -6px;
    transform: scale(-1, -1);
}
.corner__inner {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.55);
    transform-origin: 0 0;
    transition:
        opacity 1.1s var(--ease-bloom),
        transform 1.1s var(--ease-bloom);
}
.section.in-view .corner__inner {
    opacity: 1;
    transform: scale(1);
}
.corner-svg {
    width: 100%;
    height: 100%;
}

/* ============ HERO ============ */
.hero {
    padding-top: 64px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-title {
    font-family: var(--font-script);
    font-size: clamp(2.9rem, 11vw, 5.6rem);
    color: var(--leaf-deep);
    line-height: 1.1;
}

/* --- MARCO DE FOTOGRAFÍA ELEGANTE --- */
.hero-img-frame {
    position: relative;
    width: 100%;
    max-width: 320px; /* Tamaño ideal para que sea protagónico pero no abrume en móviles */
    margin: 18px auto 24px;
    padding: 10px; /* Espacio blanco simulando foto impresa */
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(176, 141, 79, 0.15); /* Borde súper sutil */
    box-shadow:
        0 16px 34px rgba(57, 71, 42, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.02); /* Sombra difuminada */
}

/* Línea interior dorada para darle un toque fino y clásico */
.hero-img-frame::before {
    content: "";
    position: absolute;
    inset: 6px; /* Se posiciona 6px hacia adentro */
    border: 1px solid rgba(176, 141, 79, 0.45); /* var(--gold) con opacidad */
    border-radius: 8px;
    pointer-events: none;
}

.hero-img-frame img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5; /* Asegura un formato de retrato elegante constante */
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

/* --- TEXTOS DEL HERO --- */
.hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    color: var(--wax);
    margin-top: 6px;
}
.hero-text {
    font-size: clamp(1rem, 2.6vw, 1.1rem);
    color: var(--ink);
    max-width: 46ch;
    margin: 26px auto 0;
    line-height: 1.85;
}
.hero-quote {
    margin-top: 22px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(0.98rem, 2.6vw, 1.15rem);
    color: var(--ink-soft);
    border-left: 2px solid var(--gold);
    padding-left: 16px;
    text-align: left;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}
.scroll-cue {
    margin-top: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--leaf);
    opacity: 0.7;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.scroll-cue svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--leaf);
    stroke-width: 1.6;
    animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* ============ COUNTDOWN ============ */
.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 5vw, 2.1rem);
    color: var(--leaf-deep);
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 460px;
    margin: 34px auto 0;
}
.countdown-box {
    background: var(--paper);
    border: 1px solid rgba(176, 141, 79, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 4px 12px;
}
.countdown-num {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.6rem, 6.4vw, 2.7rem);
    color: var(--leaf-deep);
    font-variant-numeric: tabular-nums;
}
.countdown-label {
    display: block;
    margin-top: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ============ PHOTO + DATE ============ */
.photo-date {
    padding-left: 0;
    padding-right: 0;
}
.photo-block {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/5;
}
.photo-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 22px 26px;
    background: linear-gradient(
        to top,
        rgba(20, 22, 10, 0.72),
        rgba(20, 22, 10, 0.05) 80%
    );
    color: #f7f3e8;
    text-align: center;
}
.photo-overlay .eyebrow {
    color: #e3d3a8;
}
.photo-overlay-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.3rem, 4.4vw, 1.9rem);
    letter-spacing: 0.06em;
}
.photo-overlay-sub {
    margin-top: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: #e9e2ce;
}
@media (min-width: 768px) {
    .photo-block {
        aspect-ratio: 16/8;
    }
}

/* ============ FAMILY ============ */
.family-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    letter-spacing: 0.1em;
    line-height: 1.6;
    color: var(--ink);
    max-width: 34ch;
    margin: 0 auto;
    text-transform: uppercase;
}
.family-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 640px;
    margin: 40px auto 0;
    text-align: center;
}
.family-card h3 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--wax);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}
.family-card p {
    font-size: 1rem;
    color: var(--ink);
    margin: 2px 0;
}
.family-card .in-mem {
    color: var(--ink-soft);
    font-size: 0.85em;
}
.family-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 8px;
    padding-top: 26px;
    border-top: 1px solid rgba(176, 141, 79, 0.35);
}
@media (min-width: 640px) {
    .family-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .family-sub-grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-column: 1/-1;
        text-align: left;
    }
}

/* ============ SAVE THE DATE / CALENDAR ============ */
.cal-title {
    font-family: var(--font-script);
    font-size: clamp(2.1rem, 7vw, 3.2rem);
    color: var(--leaf-deep);
}
.calendar {
    max-width: 340px;
    margin: 32px auto 0;
    background: var(--paper);
    border: 1px solid rgba(176, 141, 79, 0.4);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 16px;
}
.calendar-month {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 14px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.calendar-grid .dow {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    text-transform: uppercase;
    padding-bottom: 4px;
}
.calendar-grid .day {
    position: relative;
    font-size: 0.85rem;
    color: var(--ink);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.calendar-grid .day.is-wedding {
    background: var(--wax);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(140, 59, 59, 0.4);
}
.calendar-grid .day.is-wedding svg {
    position: absolute;
    bottom: -6px;
    width: 11px;
    height: 11px;
    fill: var(--gold);
}
.add-cal-btn {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--paper);
    background: var(--leaf-deep);
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: var(--shadow);
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}
.add-cal-btn:hover {
    background: var(--leaf);
    transform: translateY(-2px);
}
.add-cal-btn svg {
    width: 15px;
    height: 15px;
    fill: var(--paper);
}

/* ============ ITINERARY ============ */
.itin-photo {
    max-width: 520px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}
.itin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.itin-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
}
.itin-card {
    background: var(--paper);
    border: 1px solid rgba(176, 141, 79, 0.35);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 26px;
    text-align: center;
}
.itin-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(92, 107, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--leaf-deep);
}
.itin-icon svg {
    width: 24px;
    height: 24px;
}
.itin-time {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.5rem, 4.6vw, 1.9rem);
    color: var(--wax);
}
.itin-place {
    font-weight: 600;
    margin-top: 8px;
    font-size: 1.02rem;
}
.itin-address {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 4px;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}
.itin-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.76rem;
    color: var(--leaf-deep);
    border: 1px solid var(--leaf-deep);
    border-radius: 999px;
    padding: 11px 20px;
    transition:
        background 0.25s ease,
        color 0.25s ease;
}
.itin-btn:hover {
    background: var(--leaf-deep);
    color: var(--paper);
}
@media (min-width: 700px) {
    .itin-cards {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============ FOOTER ============ */
.footer {
    padding: 70px 22px 46px;
    text-align: center;
    background: var(--paper-deep);
}
.footer-names {
    font-family: var(--font-script);
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--leaf-deep);
}
.footer-note {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
}
.footer-heart {
    width: 16px;
    height: 16px;
    fill: var(--wax);
    margin: 18px auto 0;
}

/* ============ RESPONSIVE (laptop) ============ */
@media (min-width: 1024px) {
    .section {
        padding: 130px 40px;
    }
    .section-inner {
        max-width: 760px;
    }
    .hero-quote {
        max-width: 50ch;
    }
    .countdown-grid {
        max-width: 560px;
        gap: 18px;
    }
    .family-grid {
        max-width: 860px;
    }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .seal-btn {
        animation: none;
    }
    .scroll-cue svg {
        animation: none;
    }
    .corner__inner,
    .reveal,
    .envelope-screen,
    .env-flap,
    .seal-btn,
    .envelope-hint,
    .music-toggle,
    .add-cal-btn,
    .itin-btn {
        transition: none !important;
    }
    .envelope-eyebrow,
    .envelope-names,
    .envelope-date,
    .envelope-divider,
    .envelope-wrap,
    .envelope-hint {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .corner--intro .corner__inner {
        animation: none !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }
    .seal-btn-wrap {
        animation: none !important;
        opacity: 1 !important;
    }

    /* Apagar animación de notas si el usuario prefiere movimiento reducido */
    .music-toggle.is-playing::before,
    .music-toggle.is-playing::after {
        animation: none !important;
        display: none;
    }
}
