/* ═══════════════════════════════════════════════════════════
   Invitación Infantil — Mateo 5 Años · Tema Dinosaurios
   Paleta: Verde dino · Naranja · Amarillo · Tierra
═══════════════════════════════════════════════════════════ */

:root {
    --dino-green: #2e7d32;
    /* verde oscuro */
    --dino-green-l: #4caf50;
    /* verde medio */
    --dino-lime: #8bc34a;
    /* verde lima */
    --orange: #ff6b35;
    /* naranja vibrante */
    --yellow: #fdd835;
    /* amarillo */
    --brown: #795548;
    /* marrón tierra */
    --cream: #fffde7;
    /* crema cálido */
    --sand: #fff8e1;
    /* arena */
    --text: #1b5e20;
    /* verde muy oscuro para texto */
    --text-dark: #212121;
    --text-light: #558b2f;
    --border: rgba(46, 125, 50, .2);

    --font-display: 'Baloo 2', 'Fredoka', cursive;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ── Helpers ── */
.section-tag-kids {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--orange);
    text-align: center;
    margin-bottom: .5rem;
}

.section-title-kids {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.section-title-kids em {
    font-style: normal;
    color: var(--orange);
    position: relative;
}

.section-title-kids em::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════
   CONFETTI ANIMADO
══════════════════════════════════════════════════════════ */
.confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.confetti {
    position: absolute;
    font-size: 1.8rem;
    opacity: .2;
    animation: confettiFall linear infinite;
}

.c1 {
    left: 5%;
    animation-duration: 14s;
    animation-delay: 0s;
}

.c2 {
    left: 18%;
    animation-duration: 18s;
    animation-delay: -4s;
    font-size: 1.2rem;
}

.c3 {
    left: 32%;
    animation-duration: 16s;
    animation-delay: -9s;
}

.c4 {
    left: 50%;
    animation-duration: 20s;
    animation-delay: -2s;
}

.c5 {
    left: 64%;
    animation-duration: 17s;
    animation-delay: -7s;
    font-size: 1.2rem;
}

.c6 {
    left: 78%;
    animation-duration: 13s;
    animation-delay: -3s;
}

.c7 {
    left: 88%;
    animation-duration: 22s;
    animation-delay: -11s;
}

.c8 {
    left: 95%;
    animation-duration: 15s;
    animation-delay: -6s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-10vh) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: .2;
    }

    95% {
        opacity: .2;
    }

    100% {
        transform: translateY(110vh) rotate(540deg) scale(.5);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 55% at 50% 35%, rgba(139, 195, 74, .25) 0%, transparent 70%),
        linear-gradient(160deg, var(--sand) 0%, var(--cream) 50%, #f1f8e9 100%);
    border-bottom: 4px solid var(--dino-lime);
    overflow: hidden;
    z-index: 1;
}

/* Dinosaurio que cruza la pantalla */
.hero__dino-track {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    pointer-events: none;
    overflow: hidden;
    height: 4rem;
}

.hero__dino {
    position: absolute;
    font-size: 2.5rem;
    animation: dinoWalk 10s linear infinite;
    bottom: 0;
}

@keyframes dinoWalk {
    0% {
        left: -10%;
        transform: scaleX(1);
    }

    49% {
        left: 110%;
        transform: scaleX(1);
    }

    50% {
        left: 110%;
        transform: scaleX(-1);
    }

    100% {
        left: -10%;
        transform: scaleX(-1);
    }
}

.hero__bubble {
    font-size: 3rem;
    animation: heroBounce 1.2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes heroBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-12px) rotate(5deg);
    }
}

.hero__pre {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: .75rem;
}

/* Tema — dinosaurios */
.hero__theme {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.hero__theme span:not(.hero__theme-text) {
    font-size: 2rem;
}

.hero__theme-text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    color: var(--dino-green);
    letter-spacing: .06em;
    background: linear-gradient(135deg, var(--dino-green) 0%, var(--dino-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge con el número 5 */
.hero__age-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, .4), 0 0 0 6px rgba(255, 107, 53, .15);
    margin: .75rem 0;
    animation: badgePop 2s ease-in-out infinite;
}

@keyframes badgePop {

    0%,
    100% {
        transform: scale(1) rotate(-3deg);
    }

    50% {
        transform: scale(1.05) rotate(3deg);
    }
}

.hero__age-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.05;
}

.hero__divider {
    margin: 1rem 0;
    font-size: .9rem;
    color: var(--dino-lime);
    letter-spacing: .1rem;
}

.hero__date {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.hero__venue {
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brown);
    margin-top: .3rem;
    opacity: .75;
}

.hero__cta {
    margin-top: 2.5rem;
    display: inline-flex;
    align-items: center;
    padding: .8rem 2rem;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 53, .4);
    animation: ctaWobble 2s ease-in-out infinite;
    transition: opacity .2s;
}

.hero__cta:hover {
    opacity: .9;
}

@keyframes ctaWobble {

    0%,
    100% {
        transform: rotate(-1deg) scale(1);
    }

    50% {
        transform: rotate(1deg) scale(1.03);
    }
}

/* ══════════════════════════════════════════════════════════
   CUENTA REGRESIVA
══════════════════════════════════════════════════════════ */
.countdown-section {
    background: linear-gradient(135deg, var(--dino-green) 0%, #1b5e20 100%);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.countdown-section .section-tag-kids {
    color: var(--yellow);
}

.countdown-section .section-title-kids {
    color: #fff;
}

.countdown-section .section-title-kids em {
    color: var(--yellow);
}

.countdown-section .section-title-kids em::after {
    background: rgba(255, 255, 255, .3);
}

.countdown__timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    min-width: 80px;
    backdrop-filter: blur(4px);
}

.countdown__unit span {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
}

.countdown__unit label {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    margin-top: .3rem;
}

.countdown__sep {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .4);
    padding-bottom: 1rem;
}

/* ══════════════════════════════════════════════════════════
   ACTIVIDADES
══════════════════════════════════════════════════════════ */
.details-section {
    background: var(--sand);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 3px dashed var(--dino-lime);
    position: relative;
    z-index: 1;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin-inline: auto;
}

.activity-card {
    background: #fff;
    border: 2.5px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: transform .25s, box-shadow .25s;
}

.activity-card:hover {
    transform: translateY(-6px) rotate(1deg);
    box-shadow: 0 10px 30px rgba(46, 125, 50, .15);
}

.activity-card--featured {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-color: var(--dino-lime);
}

.activity-card__icon {
    font-size: 2.5rem;
    margin-bottom: .6rem;
}

.activity-card h3 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .3rem;
}

.activity-card p {
    font-size: .78rem;
    color: var(--brown);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   HORARIO
══════════════════════════════════════════════════════════ */
.schedule-section {
    background: var(--cream);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 3px dashed var(--orange);
    position: relative;
    z-index: 1;
}

.schedule-list {
    max-width: 500px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.schedule-item {
    display: grid;
    grid-template-columns: 70px 40px 1fr;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: .85rem 1rem;
    text-align: left;
    transition: transform .2s, border-color .2s;
}

.schedule-item:hover {
    transform: translateX(4px);
    border-color: var(--dino-lime);
}

.schedule-item__time {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    color: var(--orange);
}

.schedule-item__dot {
    font-size: 1.6rem;
    text-align: center;
}

.schedule-item__info strong {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.schedule-item__info span {
    font-size: .78rem;
    color: var(--brown);
}

/* ══════════════════════════════════════════════════════════
   GALERÍA / CARRUSEL
══════════════════════════════════════════════════════════ */
.gallery-section {
    background: linear-gradient(180deg, #e8f5e9 0%, var(--sand) 100%);
    border-top: 3px dashed var(--dino-lime);
    border-bottom: 3px dashed var(--orange);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-section .section-tag-kids,
.gallery-section .section-title-kids {
    padding-inline: 1.5rem;
}

.carousel {
    position: relative;
    max-width: 400px;
    margin-inline: auto;
    margin-top: 1.5rem;
    user-select: none;
    filter: drop-shadow(0 10px 30px rgba(46, 125, 50, .25));
}

.carousel__viewport {
    overflow: hidden;
    border-radius: 22px;
    outline: 3px solid var(--dino-lime);
}

.carousel__track {
    display: flex;
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.carousel__slide {
    flex: 0 0 100%;
    position: relative;
    aspect-ratio: 4 / 5;
    background: #e8f5e9;
    overflow: hidden;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.carousel__slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(27, 94, 32, .7) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel__caption {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    border: 2px solid var(--dino-lime);
    color: var(--dino-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
    transition: background .2s, transform .2s;
}

.carousel__arrow:hover {
    background: var(--yellow);
    transform: translateY(-60%) scale(1.1);
}

.carousel__arrow--prev {
    left: .75rem;
}

.carousel__arrow--next {
    right: .75rem;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: 1rem 0 0;
}

.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(46, 125, 50, .25);
    border: 2px solid var(--dino-lime);
    transition: background .25s, width .25s;
    cursor: pointer;
}

.carousel__dot--active {
    background: var(--orange);
    border-color: var(--orange);
    width: 22px;
    border-radius: 999px;
}

@media (max-width: 480px) {
    .carousel {
        margin-inline: 1rem;
    }

    .location__btns {
        flex-direction: column;
        align-items: center;
    }

    .map-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════
   UBICACIÓN
══════════════════════════════════════════════════════════ */
.location-section {
    background: var(--sand);
    border-bottom: 3px dashed var(--dino-lime);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.location__address {
    font-size: .88rem;
    color: var(--brown);
    margin-bottom: 1.5rem;
}

.location__map-card {
    background: #fff;
    border: 2.5px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    max-width: 380px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
}

.map__pin-anim {
    font-size: 2.5rem;
    animation: pinBounce 1.5s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.map__label {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: .5rem;
}

.map__sub {
    font-size: .8rem;
    color: var(--brown);
}

.map__extra {
    font-size: .78rem;
    color: var(--dino-green);
    margin-top: .5rem;
    font-weight: 600;
}

.location__btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 700;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    transition: opacity .2s, transform .2s;
}

.map-btn:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.map-btn--waze {
    background: #33ccff;
    color: #1a1a2e;
}

.map-btn--gmaps {
    background: var(--dino-green);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════
   NOTAS IMPORTANTES
══════════════════════════════════════════════════════════ */
.notes-section {
    background: linear-gradient(135deg, var(--dino-green) 0%, #1b5e20 100%);
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 1;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin-inline: auto;
}

.note-card {
    background: rgba(255, 255, 255, .1);
    border: 1.5px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.note-card__icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
}

.note-card h3 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: .35rem;
}

.note-card p {
    font-size: .78rem;
    color: rgba(255, 255, 255, .75);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   CONTADOR DE INVITADOS
══════════════════════════════════════════════════════════ */
.counter-section {
    background: linear-gradient(135deg, #fff3e0 0%, var(--sand) 100%);
    border-top: 3px dashed var(--orange);
    border-bottom: 3px dashed var(--dino-lime);
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.guest-counter {
    max-width: 380px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Fila de dinos que crece con el contador */
.guest-counter__dinos {
    font-size: 1.6rem;
    letter-spacing: .1rem;
    min-height: 2.5rem;
    line-height: 1.3;
    word-break: break-all;
    transition: all .4s ease;
}

/* Burbuja grande con el número */
.guest-counter__bubble {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(255, 107, 53, .4),
        0 0 0 8px rgba(255, 107, 53, .12);
    animation: counterPulse 2.5s ease-in-out infinite;
}

@keyframes counterPulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 107, 53, .4), 0 0 0 8px rgba(255, 107, 53, .12);
    }

    50% {
        box-shadow: 0 10px 40px rgba(255, 107, 53, .5), 0 0 0 16px rgba(255, 107, 53, .06);
    }
}

.guest-counter__num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 3px 8px rgba(0, 0, 0, .2);
}

.guest-counter__label {
    font-family: var(--font-display);
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Barra de progreso */
.guest-counter__bar-wrap {
    width: 100%;
    height: 14px;
    background: rgba(46, 125, 50, .12);
    border-radius: 999px;
    border: 2px solid var(--border);
    overflow: hidden;
}

.guest-counter__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--dino-green-l) 0%, var(--dino-lime) 100%);
    border-radius: 999px;
    transition: width .8s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
}

.guest-counter__bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: rgba(255, 255, 255, .5);
    border-radius: 999px;
}

/* Texto dinámico debajo */
.guest-counter__caption {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    min-height: 1.4em;
    transition: all .3s ease;
}

/* ══════════════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════════════ */
.rsvp-section {

    background: var(--cream);
    padding: 4rem 1.5rem;
    text-align: center;
    border-bottom: 3px dashed var(--orange);
    position: relative;
    z-index: 1;
}

.rsvp-form {
    max-width: 440px;
    margin-inline: auto;
    text-align: left;
    background: #fff;
    border: 2.5px solid var(--border);
    border-radius: 22px;
    padding: 2rem 1.75rem;
    box-shadow: 0 6px 24px rgba(46, 125, 50, .1);
}

.rsvp-form__group {
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.rsvp-form__group label {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    color: var(--text);
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: .65rem .9rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text-dark);
    background: var(--sand);
    transition: border-color .2s, box-shadow .2s;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
    outline: none;
    border-color: var(--dino-green-l);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, .15);
}

.rsvp-form input.error {
    border-color: #e53935;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    cursor: pointer;
    font-size: .9rem;
}

.radio-label input {
    accent-color: var(--dino-green-l);
}

.rsvp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem;
    background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
    color: #fff;
    border-radius: 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    margin-top: .5rem;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 6px 20px rgba(255, 107, 53, .35);
    letter-spacing: .02em;
}

.rsvp-submit:hover {
    opacity: .9;
    transform: translateY(-2px);
}

.rsvp-success {
    text-align: center;
    padding: 3rem 1rem;
}

.rsvp-success[hidden] {
    display: none;
}

.rsvp-success__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rsvp-success__msg {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   CIERRE
══════════════════════════════════════════════════════════ */
.closing-section {
    background: linear-gradient(160deg, #ff6b35 0%, #ff8f00 50%, var(--yellow) 100%);
    padding: 4rem 1.5rem;
    text-align: center;
}

.closing__dinos {
    font-size: 2.5rem;
    letter-spacing: .5rem;
    margin-bottom: 1rem;
    animation: dinoRow 1.5s ease-in-out infinite;
}

@keyframes dinoRow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.closing__name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .15);
}

.closing__quote {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    max-width: 380px;
    margin-inline: auto;
    margin-top: 1rem;
    line-height: 1.5;
}

.closing__date {
    font-family: var(--font-display);
    font-size: .9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    margin-top: 1.25rem;
    letter-spacing: .08em;
}

.closing__footer {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: .9rem;
    color: rgba(255, 255, 255, .8);
}

.closing__credit {
    margin-top: .5rem;
    font-size: .75rem;
}

.closing__credit a {
    color: rgba(255, 255, 255, .95);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   WIDGET FLOTANTE DE MÚSICA
══════════════════════════════════════════════════════════ */
.music-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.music-widget__panel {
    width: 320px;
    background: var(--dino-green);
    border: 2px solid var(--dino-lime);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(46, 125, 50, .5);
    transform-origin: bottom right;
    transform: scale(.92) translateY(10px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .25s;
    pointer-events: none;
}

.music-widget__panel[hidden] {
    display: none !important;
}

.music-widget--open .music-widget__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
    display: block;
}

.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-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--yellow);
}

.music-widget__song-artist {
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
}

.music-widget__spotify-link {
    color: #1DB954;
    opacity: .75;
    transition: opacity .2s;
}

.music-widget__spotify-link:hover {
    opacity: 1;
}

.music-widget__embed {
    line-height: 0;
}

.music-widget__embed iframe {
    display: block;
    width: 100%;
    border: none;
}

.music-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--dino-green);
    border: 2.5px solid var(--dino-lime);
    border-radius: 999px;
    padding: .55rem 1rem .55rem .8rem;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(46, 125, 50, .45);
    transition: box-shadow .3s, border-color .3s;
    animation: widgetPop .5s .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes widgetPop {
    from {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.music-widget--closed .music-widget__toggle {
    animation: widgetPop .5s .6s both, greenPulse 2.5s 2s infinite;
}

@keyframes greenPulse {

    0%,
    100% {
        box-shadow: 0 6px 22px rgba(46, 125, 50, .45), 0 0 0 0 rgba(76, 175, 80, 0);
    }

    50% {
        box-shadow: 0 6px 22px rgba(46, 125, 50, .45), 0 0 0 8px rgba(76, 175, 80, .2);
    }
}

.music-widget__note {
    font-size: 1.2rem;
    animation: noteBounce 1.5s ease-in-out infinite;
}

@keyframes noteBounce {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-4px) rotate(10deg);
    }
}

.music-widget__label {
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.music-widget__chevron {
    color: rgba(255, 255, 255, .4);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    flex-shrink: 0;
    transform: rotate(180deg);
}

.music-widget--open .music-widget__chevron {
    transform: rotate(0deg);
    color: var(--dino-lime);
}

@media (max-width: 480px) {
    .music-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .music-widget__panel {
        width: calc(100vw - 2rem);
    }

    .music-widget__label {
        display: none;
    }
}