/* ═══════════════════════════════════════════════════════════
   Invitación de Boda · Sofía & Andrés · boda.css
   Paleta: Marfil · Champagne · Terracota claro · Negro
═══════════════════════════════════════════════════════════ */

:root {
    --ivory: #fdf6ef;
    --cream: #f5ebe0;
    --champagne: #e8d5b7;
    --gold: #b8935a;
    --gold-dark: #8d6b3a;
    --blush: #e8c4b8;
    --rose: #c97b6e;
    --text: #2c1f16;
    --text-soft: #7a5c48;
    --text-muted: #a88870;
    --surface: #fff9f4;
    --border: #e8d5c0;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --dur: 250ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--ivory);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}

/* ── Shared section layout ── */
section {
    padding: 5rem 1.5rem;
    max-width: 680px;
    margin-inline: auto;
    text-align: center;
}

.section-tag-inv {
    display: block;
    font-family: var(--font-sans);
    font-size: .7rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title-inv {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-title-inv em {
    font-style: italic;
    color: var(--gold);
}

/* ══════════════════════════════════════════════════════════
   PORTADA
══════════════════════════════════════════════════════════ */
.cover {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(175deg, #fdf6ef 0%, #f5ebe0 50%, #ede0d4 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
    max-width: 100%;
}

/* Pétalos flotantes */
.cover__petals {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.petal {
    position: absolute;
    font-size: clamp(1rem, 3vw, 1.8rem);
    opacity: .5;
    animation: petalFall linear infinite;
}

.petal--1 {
    left: 10%;
    top: -8%;
    animation-duration: 12s;
    animation-delay: 0s;
    font-size: 1.4rem;
}

.petal--2 {
    left: 30%;
    top: -5%;
    animation-duration: 16s;
    animation-delay: 3s;
    font-size: 1rem;
}

.petal--3 {
    left: 55%;
    top: -6%;
    animation-duration: 14s;
    animation-delay: 1.5s;
    font-size: 1.6rem;
}

.petal--4 {
    left: 75%;
    top: -4%;
    animation-duration: 18s;
    animation-delay: 4s;
    font-size: 1.2rem;
}

.petal--5 {
    left: 88%;
    top: -7%;
    animation-duration: 13s;
    animation-delay: 2s;
    font-size: 1.5rem;
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: .5;
    }

    25% {
        transform: translateY(25vh) rotate(40deg) translateX(20px);
        opacity: .4;
    }

    50% {
        transform: translateY(50vh) rotate(80deg) translateX(-15px);
        opacity: .3;
    }

    75% {
        transform: translateY(75vh) rotate(120deg) translateX(25px);
        opacity: .2;
    }

    100% {
        transform: translateY(105vh) rotate(180deg) translateX(0);
        opacity: 0;
    }
}

/* Ornamental line */
.cover__footer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--champagne), var(--gold), var(--champagne), transparent);
}

.cover__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
}

.cover__pre {
    font-family: var(--font-sans);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cover__monogram {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.01em;
    margin: .5rem 0;
    animation: fadeInUp .8s var(--ease) both;
}

.cover__monogram span {
    font-style: italic;
    opacity: .7;
}

.cover__names {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text);
    letter-spacing: -.01em;
    animation: fadeInUp .9s .1s var(--ease) both;
}

.cover__names em {
    font-style: italic;
    color: var(--gold);
    font-size: 1.4em;
    line-height: .9;
}

.cover__date {
    font-family: var(--font-sans);
    font-size: .82rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: .75rem;
    animation: fadeInUp 1s .2s var(--ease) both;
}

.cover__venue {
    font-size: .85rem;
    color: var(--text-muted);
    animation: fadeInUp 1s .3s var(--ease) both;
}

.cover__scroll-btn {
    margin-top: 2.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    color: var(--gold);
    animation: floatY 2s ease-in-out infinite, fadeInUp 1s .5s var(--ease) both;
    transition: background var(--dur), border-color var(--dur);
}

.cover__scroll-btn:hover {
    background: var(--champagne);
    border-color: var(--gold);
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════
   CUENTA REGRESIVA
══════════════════════════════════════════════════════════ */
.countdown-section {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 4rem 1.5rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.countdown__unit {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    min-width: 80px;
    box-shadow: 0 2px 12px rgba(184, 147, 90, .1);
}

.countdown__num {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 500;
    color: var(--gold-dark);
    line-height: 1;
}

.countdown__label {
    display: block;
    font-size: .65rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: .3rem;
}

.countdown__sep {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--champagne);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════════
   ITINERARIO
══════════════════════════════════════════════════════════ */
.itinerary {
    background: var(--ivory);
}

.timeline {
    text-align: left;
    position: relative;
    max-width: 510px;
    margin-inline: auto;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--champagne) 10%, var(--champagne) 90%, transparent);
}

.timeline__item {
    display: grid;
    grid-template-columns: 72px 16px 1fr;
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 2.25rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__time {
    font-family: var(--font-sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gold);
    padding-top: .2rem;
    text-align: right;
}

.timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--gold);
    margin-top: .15rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--ivory);
}

.timeline__content h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: .25rem;
}

.timeline__content p {
    font-size: .85rem;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   UBICACIÓN
══════════════════════════════════════════════════════════ */
.location-section {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 5rem 1.5rem;
}

.location__address {
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Mapa placeholder elegante */
.location__map-placeholder {
    background: linear-gradient(135deg, #e8d5b7 0%, #f5ebe0 50%, #e8d5b7 100%);
    border: 1px solid var(--champagne);
    border-radius: 16px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

.map__pin-anim {
    font-size: 2.5rem;
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.map__label {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
}

.map__sub {
    font-size: .8rem;
    color: var(--text-muted);
}

.location__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.map-btn--waze {
    background: #33ccff;
    color: #1a1a2e;
}

.map-btn--gmaps {
    background: var(--text);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   CARRUSEL DE FOTOS
══════════════════════════════════════════════════════════ */
.gallery-section {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
    padding: 5rem 0 4rem;
}

.gallery-section .section-tag-inv,
.gallery-section .section-title-inv {
    padding-inline: 1.5rem;
}

/* Contenedor del carrusel — centra la tarjeta */
.carousel {
    position: relative;
    max-width: 420px;
    margin-inline: auto;
    margin-top: 2rem;
    user-select: none;
    /* La sombra vive afuera del viewport, por eso va en .carousel */
    filter: drop-shadow(0 16px 48px rgba(44, 31, 22, .22));
}

/* Viewport: recorta el track y da los bordes redondeados */
.carousel__viewport {
    overflow: hidden;
    border-radius: 20px;
    /* Borde dorado sutil */
    outline: 1.5px solid rgba(201, 168, 76, .3);
    outline-offset: 0;
}

/* Track: fila horizontal de slides */
.carousel__track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Cada slide — proporción retrato tipo foto */
.carousel__slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 4 / 5;
    /* retrato elegante */
    background: var(--champagne);
    overflow: hidden;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform .6s ease;
}

/* Gradiente inferior */
.carousel__slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
            rgba(26, 20, 16, .75) 0%,
            rgba(26, 20, 16, .1) 70%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Pie de foto */
.carousel__caption {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    z-index: 2;
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(255, 255, 255, .92);
    text-align: center;
    letter-spacing: .01em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
    pointer-events: none;
    line-height: 1.4;
}

/* Flechas — flotan sobre la tarjeta */
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    /* 60% para compensar el caption */
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(253, 246, 239, .82);
    border: 1px solid rgba(201, 168, 76, .35);
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    transition: background .2s, transform .2s, border-color .2s;
    backdrop-filter: blur(6px);
}

.carousel__arrow:hover {
    background: var(--ivory);
    border-color: var(--gold);
    transform: translateY(-60%) scale(1.1);
}

.carousel__arrow--prev {
    left: .85rem;
}

.carousel__arrow--next {
    right: .85rem;
}

/* Dots */
.carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem 0 0;
}

.carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--champagne);
    border: 1px solid var(--border);
    transition: background .25s, width .25s;
    cursor: pointer;
}

.carousel__dot--active {
    background: var(--gold);
    border-color: var(--gold);
    width: 20px;
    border-radius: 999px;
}

/* Responsive */
@media (max-width: 480px) {
    .carousel {
        max-width: 100%;
        margin-inline: 1.25rem;
    }
}



/* ══════════════════════════════════════════════════════════
   MÚSICA · Spotify Embed
══════════════════════════════════════════════════════════ */
.music-section {
    background: var(--text);
    color: #fff;
    max-width: 100%;
    padding: 4.5rem 1.5rem;
    border-top: 4px solid var(--gold);
}

/* ══════════════════════════════════════════════════════════
   WIDGET FLOTANTE DE MÚSICA · Spotify
   Fijo en la esquina inferior derecha, activo por el usuario
══════════════════════════════════════════════════════════ */

.music-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    /* Sin pointer-events en el contenedor para no bloquear clics fuera */
}

/* ── Panel expandible ── */
.music-widget__panel {
    width: 320px;
    background: #1a1714;
    border: 1px solid rgba(201, 168, 76, .3);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(201, 168, 76, .1);
    transform-origin: bottom right;
    transform: scale(.92) translateY(10px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1),
        opacity .25s ease;
    pointer-events: none;
}

.music-widget__panel[hidden] {
    display: none !important;
}

/* Estado abierto — aplicado por JS */
.music-widget--open .music-widget__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* ── Header del panel ── */
.music-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem .5rem;
}

.music-widget__song-info {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.music-widget__song-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -.01em;
}

.music-widget__song-artist {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
}

.music-widget__spotify-link {
    color: #1DB954;
    opacity: .75;
    transition: opacity 200ms;
    flex-shrink: 0;
}

.music-widget__spotify-link:hover {
    opacity: 1;
}

/* ── Zona del embed de Spotify ── */
.music-widget__embed {
    line-height: 0;
}

.music-widget__embed iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ── Botón toggle siempre visible ── */
.music-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #1a1714;
    border: 1.5px solid rgba(201, 168, 76, .5);
    border-radius: 999px;
    padding: .6rem 1.1rem .6rem .85rem;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 0 rgba(201, 168, 76, 0);
    transition: box-shadow 300ms ease,
        border-color 300ms ease,
        background 200ms ease;
    /* Animación de entrada al cargar la página */
    animation: widgetEntrance .6s .8s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes widgetEntrance {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.music-widget__toggle:hover {
    border-color: var(--gold);
    background: #231e19;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5),
        0 0 0 4px rgba(201, 168, 76, .12);
}

/* Pulso dorado mientras no se ha abierto */
.music-widget--closed .music-widget__toggle {
    animation: widgetEntrance .6s .8s cubic-bezier(.34, 1.56, .64, 1) both,
        goldPulse 2.5s 2s ease-in-out infinite;
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 0 rgba(201, 168, 76, 0);
    }

    50% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, .4), 0 0 0 8px rgba(201, 168, 76, .18);
    }
}

.music-widget__note {
    font-size: 1.1rem;
    color: var(--gold);
    line-height: 1;
    /* Ecualizador-like bounce */
    animation: noteBounce 1.8s ease-in-out infinite;
}

@keyframes noteBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}

.music-widget__label {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .02em;
    white-space: nowrap;
}

.music-widget__chevron {
    color: rgba(255, 255, 255, .4);
    transition: transform 300ms cubic-bezier(.34, 1.56, .64, 1),
        color 200ms;
    flex-shrink: 0;
    /* Apunta hacia arriba = "abrir panel arriba" */
    transform: rotate(180deg);
}

/* Cuando el widget está abierto, la flecha apunta hacia abajo */
.music-widget--open .music-widget__chevron {
    transform: rotate(0deg);
    color: var(--gold);
}

/* ── Responsive mobile ── */
@media (max-width: 480px) {
    .music-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .music-widget__panel {
        width: calc(100vw - 2rem);
    }

    .music-widget__label {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════
   MESA DE REGALOS
══════════════════════════════════════════════════════════ */
.gifts-section {
    background: var(--ivory);
}

.gifts__desc {
    font-size: .9rem;
    color: var(--text-soft);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 440px;
    margin-inline: auto;
}

.gifts-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.5rem 1.75rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    min-width: 130px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur);
    cursor: pointer;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(184, 147, 90, .2);
    border-color: var(--gold);
}

.gift-card--transfer {
    background: var(--cream);
}

.gift-card__icon {
    font-size: 2rem;
}

.gift-card__name {
    font-weight: 600;
    font-size: .85rem;
    color: var(--text);
}

.gift-card__action {
    font-size: .72rem;
    color: var(--gold);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(44, 31, 22, .55);
    z-index: 299;
    backdrop-filter: blur(4px);
}

.modal__backdrop[hidden] {
    display: none;
}

.modal__box {
    position: relative;
    z-index: 301;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: min(380px, 100%);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: popIn .25s var(--ease) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cream);
    font-size: .85rem;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--dur);
}

.modal__close:hover {
    background: var(--champagne);
}

.modal__box h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
}

.modal__row span {
    color: var(--text-muted);
}

.modal__row strong {
    color: var(--text);
    font-weight: 600;
}

.modal__copy-btn {
    margin-top: 1.25rem;
    padding: .65rem 1.5rem;
    background: var(--text);
    color: #fff;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    transition: background var(--dur);
}

.modal__copy-btn:hover {
    background: var(--gold-dark);
}

/* ══════════════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════════════ */
.rsvp-section {
    background: linear-gradient(175deg, var(--cream), var(--ivory));
    border-top: 1px solid var(--border);
    max-width: 100%;
    padding: 5rem 1.5rem;
}

.rsvp__desc {
    font-size: .9rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
}

.rsvp__desc strong {
    color: var(--text);
    font-weight: 600;
}

.rsvp-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    max-width: 500px;
    margin-inline: auto;
    box-shadow: 0 4px 24px rgba(184, 147, 90, .1);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: .03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--ivory);
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--text);
    transition: border-color var(--dur);
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}

.form-group input.error,
.form-group select.error {
    border-color: #d9534f;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: .875rem;
    color: var(--text);
    transition: border-color var(--dur), background var(--dur);
}

.radio-label:hover {
    background: var(--cream);
    border-color: var(--champagne);
}

.radio-label input[type="radio"] {
    accent-color: var(--gold);
}

.radio-label:has(input:checked) {
    border-color: var(--gold);
    background: var(--cream);
}

.rsvp-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1rem;
    background: #25D366;
    color: #fff;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    margin-top: .5rem;
    transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
    box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
}

.rsvp-submit:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}

/* Success state */
.rsvp-success {
    text-align: center;
    padding: 3rem 1rem;
    animation: fadeInUp .5s var(--ease) both;
}

.rsvp-success[hidden] {
    display: none;
}

.rsvp-success__icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.rsvp-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: .5rem;
}

.rsvp-success p {
    font-size: .95rem;
    color: var(--text-soft);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   CIERRE
══════════════════════════════════════════════════════════ */
.closing {
    background: var(--text);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.closing__monogram {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: -.01em;
}

.closing__monogram span {
    font-style: italic;
    opacity: .7;
}

.closing__quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .6);
    max-width: 380px;
}

.closing__date {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--champagne);
    opacity: .6;
}

.closing__divider {
    width: 80px;
    height: 1px;
    background: rgba(255, 255, 255, .15);
    margin: .5rem 0;
}

.closing__credit {
    font-size: .75rem;
    color: rgba(255, 255, 255, .3);
}

.closing__credit a {
    color: var(--gold);
    font-weight: 600;
    opacity: .8;
    transition: opacity var(--dur);
}

.closing__credit a:hover {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .countdown__unit {
        min-width: 65px;
        padding: 1rem;
    }

    .countdown__num {
        font-size: 2rem;
    }

    .countdown__sep {
        font-size: 1.5rem;
    }

    .rsvp-form {
        padding: 1.5rem 1rem;
    }

    .location__btns {
        flex-direction: column;
        align-items: center;
    }

    .map-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}