/* ══════════════════════════════════════
   BASE & VARIABLES
══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black: #0a0a0a;
    --dark: #111111;
    --mid: #1c1c1c;
    --accent: #c9a96e;
    /* dorado cálido */
    --white: #f5f0eb;
    --gray: #888;
    --script: 'Great Vibes', cursive;
    --serif: 'Playfair Display', serif;
    --sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* previene scroll horizontal en iOS/Android */
    max-width: 100%;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--sans);
    font-weight: 300;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* scrollbar oculto */
::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* ── helpers ── */
.section-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    margin: 0 auto;
}

.gold {
    color: var(--accent);
}

.script-font {
    font-family: var(--script);
}

.serif-font {
    font-family: var(--serif);
}

/* ── section shared ── */
section {
    padding: 5rem 0;
    position: relative;
}

/* ── selection color ── */
::selection {
    background: var(--accent);
    color: var(--black);
}

/* ══════════════════════════════════════
   HERO / PORTADA
══════════════════════════════════════ */
#hero {
    min-height: 100svh;
    background-image: url('./images/hero.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    /* parallax — desactivado en mobile vía media query */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 3.5rem;
    position: relative;
    width: 100%;
    max-width: 100%;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .15) 0%,
            rgba(0, 0, 0, .55) 55%,
            rgba(0, 0, 0, .90) 100%);
}

.hero-inner {
    position: relative;
    text-align: center;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 480px;
}

.hero-date {
    font-size: .68rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.hero-names {
    font-family: var(--script);
    font-size: clamp(4rem, 14vw, 5.5rem);
    line-height: 1.05;
    color: var(--white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
    font-weight: 100;
}

.hero-ampersand {
    display: block;
    font-family: var(--script);
    font-size: clamp(2rem, 9vw, 3.5rem);
    color: var(--accent);
    margin: -.3em 0;
}

.hero-location {
    font-size: .65rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    margin-top: 1rem;
    color: rgba(245, 240, 235, .75);
}

.hero-line {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 1rem auto;
}

.hero-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: .9rem;
    color: rgba(245, 240, 235, .85);
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.7;
}

/* scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: .6;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-cue span {
    font-size: .55rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.scroll-cue i {
    font-size: 1rem;
    color: var(--accent);
}

@keyframes bounce {

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

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

/* ══════════════════════════════════════
   CUENTA REGRESIVA
══════════════════════════════════════ */
#countdown {
    background: var(--dark);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.countdown-label {
    font-size: .6rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
}

.countdown-grid {
    display: grid;
    /* 4 boxes + 3 separators = 7 cols — never wraps */
    grid-template-columns: repeat(7, auto);
    justify-content: center;
    align-items: start;
    column-gap: clamp(.3rem, 2vw, 1rem);
    padding: 0 .5rem;
    max-width: 100%;
}

.cd-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-num {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 10vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    white-space: nowrap;
}

.cd-unit {
    font-size: clamp(.45rem, 1.5vw, .6rem);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: .4rem;
    white-space: nowrap;
}

.cd-sep {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 8vw, 2.8rem);
    color: var(--accent);
    line-height: 1;
    padding-top: .05em;
    opacity: .5;
}

/* ══════════════════════════════════════
   ITINERARIO
══════════════════════════════════════ */
#itinerario {
    background: var(--black);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-eyebrow {
    font-size: .6rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.timeline {
    position: relative;
    padding-left: 1.8rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent) 10%, var(--accent) 90%, transparent);
}

.tl-item {
    position: relative;
    margin-bottom: 2.4rem;
    padding-left: 1.5rem;
}

.tl-dot {
    position: absolute;
    left: -2.1rem;
    top: .2rem;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    color: var(--accent);
}

.tl-time {
    font-size: .6rem;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: .2rem;
}

.tl-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.tl-desc {
    font-size: .78rem;
    color: var(--gray);
    margin-top: .2rem;
    line-height: 1.6;
}

/* ══════════════════════════════════════
   NUESTRA HISTORIA
══════════════════════════════════════ */
#historia {
    background: var(--mid);
}

.historia-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 4vw, 1.25rem);
    line-height: 1.9;
    text-align: center;
    color: var(--white);
}

.historia-quote-mark {
    font-family: var(--script);
    font-size: 5rem;
    color: var(--accent);
    line-height: .5;
    display: block;
    margin-bottom: .5rem;
}

/* ══════════════════════════════════════
   PADRES
══════════════════════════════════════ */
#padres {
    background: var(--black);
    text-align: center;
}

.padres-col {
    margin-bottom: 2rem;
}

.padres-eyebrow {
    font-size: .58rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

.padres-name {
    font-family: var(--script);
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--white);
}

.padres-divider {
    width: 30px;
    height: 1px;
    background: var(--accent);
    margin: .8rem auto;
}

/* ══════════════════════════════════════
   UBICACIONES
══════════════════════════════════════ */
#ubicaciones {
    background: var(--dark);
}

.location-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    border: 1px solid rgba(201, 169, 110, .25);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: border-color .3s;
}

.location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, .04), transparent);
    pointer-events: none;
    /* evita que tape los botones internos */
}

.location-card:hover {
    border-color: var(--accent);
}

.location-tag {
    font-size: .58rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .5rem;
}

.location-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .4rem;
}

.location-address {
    font-size: .75rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.location-time {
    font-size: .65rem;
    letter-spacing: .2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.location-img {
    display: block;
    width: calc(100% + 3rem);
    margin: -2rem -1.5rem 1.5rem;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.8rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--sans);
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .3s, color .3s;
    cursor: pointer;
    background: transparent;
}

.btn-map:hover {
    background: var(--accent);
    color: var(--black);
}

/* ══════════════════════════════════════
   HOSPEDAJE
══════════════════════════════════════ */
#hospedaje {
    background: var(--black);
}

.hospedaje-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hospedaje-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.ho-name {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 400;
}

.ho-code {
    font-size: .65rem;
    letter-spacing: .15em;
    color: var(--gray);
    margin-top: .2rem;
}

.btn-reservar {
    padding: .4rem 1rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s, color .3s;
    background: transparent;
    cursor: pointer;
}

.btn-reservar:hover {
    background: var(--accent);
    color: var(--black);
}

/* ══════════════════════════════════════
   CONSIDERACIONES
══════════════════════════════════════ */
#consideraciones {
    background: var(--mid);
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 169, 110, .2);
    border-radius: 8px;
    padding: 1.6rem .8rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
}

.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: .3rem;
}

.info-card-title {
    font-family: var(--sans);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}

.info-card-label {
    font-family: var(--script);
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1.2;
}

.info-card-desc {
    font-size: .68rem;
    color: var(--gray);
    line-height: 1.8;
    text-align: center;
}

.info-card-note {
    font-size: .62rem;
    color: rgba(201, 169, 110, .55);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
    margin-top: .2rem;
}

/* ══════════════════════════════════════
   GALERÍA
══════════════════════════════════════ */
#galeria {
    background: var(--black);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.gallery-grid .span2 {
    grid-column: span 2;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter .4s, transform .4s;
    display: block;
}

.span2 .gallery-img {
    aspect-ratio: 16/9;
}

.gallery-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* ══════════════════════════════════════
   MESA DE REGALOS
══════════════════════════════════════ */
#regalos {
    background: var(--dark);
    text-align: center;
}

.regalo-subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: .95rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.bank-card {
    border: 1px solid rgba(201, 169, 110, .2);
    padding: 1.8rem 1.5rem;
    margin-bottom: 1.2rem;
    text-align: left;
    position: relative;
}

.bank-card .bank-name {
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .8rem;
}

.bank-card .bank-field {
    margin-bottom: .7rem;
}

.bank-card .bank-field-label {
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: .15rem;
}

.bank-card .bank-field-value {
    font-family: var(--serif);
    font-size: 1rem;
}

.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: var(--sans);
    font-size: .65rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1rem;
    transition: background .3s, color .3s;
}

.btn-copy:hover {
    background: var(--accent);
    color: var(--black);
}

.copy-feedback {
    font-size: .65rem;
    color: var(--accent);
    text-align: center;
    height: 1rem;
    margin-top: .5rem;
    opacity: 0;
    transition: opacity .3s;
}

.copy-feedback.show {
    opacity: 1;
}

/* ══════════════════════════════════════
   MESA DE REGALOS — TABS
══════════════════════════════════════ */
.regalo-tabs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.regalo-tab {
    flex: 1;
    min-width: 90px;
    padding: .65rem .5rem;
    border: 1px solid rgba(201, 169, 110, .3);
    background: transparent;
    color: var(--gray);
    font-family: var(--sans);
    font-size: .6rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .25s, color .25s, background .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

.regalo-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.regalo-tab.active {
    border-color: var(--accent);
    background: rgba(201, 169, 110, .1);
    color: var(--accent);
}

.regalo-panel {
    display: none;
}

.regalo-panel.active {
    display: block;
}

.sobres-deco {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: .8rem;
}

.sobres-deco i {
    font-size: 1.6rem;
    color: var(--accent);
    opacity: .6;
    animation: floatEnv 2s ease-in-out infinite;
}

.sobres-deco i:nth-child(2) {
    animation-delay: .3s;
}

.sobres-deco i:nth-child(3) {
    animation-delay: .6s;
}

@keyframes floatEnv {

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

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

/* ══════════════════════════════════════
   CONFIRMACIÓN RSVP
══════════════════════════════════════ */
#rsvp {
    background: var(--black);
    text-align: center;
    padding: 5rem 0;
}

.rsvp-names {
    font-family: var(--script);
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    color: var(--white);
    margin: 1.5rem 0;
}

.rsvp-amp {
    font-family: var(--script);
    color: var(--accent);
}

.rsvp-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: .9rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 2.5rem;
    background: #25D366;
    color: #fff;
    font-family: var(--sans);
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background .3s, transform .2s;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

/* ══════════════════════════════════════
   RSVP FORM
══════════════════════════════════════ */
.rsvp-form-title {
    font-family: var(--script);
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    color: var(--accent);
    text-align: center;
    margin-bottom: .4rem;
}

.rsvp-form-date {
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.rsvp-form-text {
    font-family: var(--serif);
    font-size: .85rem;
    color: var(--gray);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

#rsvp-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1rem;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.rsvp-form select,
.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(201, 169, 110, .35);
    border-radius: 6px;
    padding: .85rem 1rem;
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--white);
    outline: none;
    transition: border-color .25s;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.rsvp-form select option {
    background: #1a1a1a;
    color: var(--white);
}

.rsvp-form select:focus,
.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: var(--accent);
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: rgba(255, 255, 255, .35);
}

.rsvp-form textarea {
    min-height: 90px;
    resize: none;
}

.rsvp-form small {
    font-size: .65rem;
    color: var(--gray);
    text-align: center;
    margin-top: -.4rem;
}

.rsvp-submit {
    background: var(--accent);
    color: #111;
    border: none;
    padding: 1rem;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    margin-top: .5rem;
    transition: background .3s, transform .2s;
}

.rsvp-submit:hover {
    background: #d4b47c;
    transform: translateY(-2px);
}

.rsvp-submit:active {
    transform: translateY(0);
}

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

.rsvp-success-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.rsvp-success-title {
    font-family: var(--script);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: .8rem;
}

.rsvp-success-text {
    font-family: var(--serif);
    font-style: italic;
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   FOTO CIRCULAR PAREJA
══════════════════════════════════════ */
.couple-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    margin: 2rem auto;
    box-shadow: 0 0 0 8px rgba(201, 169, 110, .1);
}

.couple-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
    background: var(--black);
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

footer p {
    font-size: .6rem;
    letter-spacing: .2em;
    color: var(--gray);
}

footer .footer-names {
    font-family: var(--script);
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: .4rem;
}

footer .footer-date {
    font-size: .58rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gray);
}

.footer-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    margin: 1.5rem auto;
}

.footer-credit {
    font-size: .68rem !important;
    letter-spacing: .03em !important;
    color: var(--gray) !important;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-credit strong {
    color: var(--accent);
    font-weight: 600;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: .9rem;
    margin-top: .5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: .9rem;
    text-decoration: none;
    transition: background .3s, color .3s, border-color .3s;
}

.social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

/* ══════════════════════════════════════
   BOTÓN MÚSICA FLOTANTE
══════════════════════════════════════ */
#music-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: rgba(10, 10, 10, .85);
    backdrop-filter: blur(8px);
    color: var(--accent);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, transform .2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

#music-btn:hover {
    background: var(--accent);
    color: var(--black);
    transform: scale(1.08);
}

#music-btn.playing {
    animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ══════════════════════════════════════
   MICRO INTERACTIONS
══════════════════════════════════════ */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════
   MOBILE — sin parallax y correcciones
══════════════════════════════════════ */
@media (max-width: 639px) {

    /* iOS/Android no soporta background-attachment:fixed correctamente */
    #hero {
        background-attachment: scroll;
    }

    /* Asegura que ninguna sección desborde */
    section,
    footer {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* countdown keeps its clamp values — no overrides needed */
    .countdown-grid {
        column-gap: clamp(.2rem, 1.5vw, .6rem);
    }
}

/* responsive para pantallas más amplias */
@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid .span2 {
        grid-column: span 1;
    }

    .span2 .gallery-img {
        aspect-ratio: 1/1;
    }
}