/* ============================================
   MAIN STYLES — micarlita.es
   Mobile-first · Cormorant Garamond + DM Sans
   ============================================ */

/* ── BASE ─────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ── GATE ─────────────────────────────────── */
.gate {
    position: fixed;
    inset: 0;
    z-index: var(--z-gate);
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s var(--ease-out), visibility 0.9s;
}

.gate.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Floating stars decoration */
.gate__stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gate__star {
    position: absolute;
    color: var(--color-accent);
    opacity: 0;
    animation: float-star 7s ease-in-out infinite;
    font-size: 0.9rem;
    user-select: none;
}

.gate__star:nth-child(1) {
    top: 18%;
    left: 12%;
    animation-delay: 0s;
}

.gate__star:nth-child(2) {
    top: 55%;
    left: 82%;
    animation-delay: 2.3s;
    font-size: 0.55rem;
}

.gate__star:nth-child(3) {
    top: 78%;
    left: 18%;
    animation-delay: 4.1s;
    font-size: 0.7rem;
}

.gate__star:nth-child(4) {
    top: 30%;
    left: 75%;
    animation-delay: 1.5s;
    font-size: 0.5rem;
}

.gate__star:nth-child(5) {
    top: 85%;
    left: 65%;
    animation-delay: 3.5s;
    font-size: 0.65rem;
}

@keyframes float-star {

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

    30% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.5;
        transform: translateY(-18px) scale(1.15);
    }

    70% {
        opacity: 0.7;
    }
}

.gate__content {
    text-align: center;
    padding: var(--px);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.gate__icon {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: block;
    animation: float-star 3.5s ease-in-out infinite;
    animation-delay: 0s;
    opacity: 1;
}

.gate__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 9vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-white);
    letter-spacing: 0.03em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.gate__subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.gate__form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.35);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s;
}

.gate__form:focus-within {
    border-color: rgba(201, 169, 110, 0.8);
}

.gate__input {
    flex: 1;
    color: var(--color-white);
    font-size: 1.4rem;
    letter-spacing: 0.4em;
    text-align: center;
    padding: 0.4rem;
    caret-color: var(--color-accent);
}

.gate__input::placeholder {
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.2em;
}

.gate__btn {
    color: var(--color-accent);
    font-size: 1.6rem;
    padding: 0.2rem 0.6rem;
    line-height: 1;
    transition: transform 0.2s var(--ease-out), opacity 0.2s;
    flex-shrink: 0;
}

.gate__btn:hover {
    transform: translateX(5px);
}

.gate__error {
    color: #e08585;
    font-size: 0.82rem;
    min-height: 1.2em;
    letter-spacing: 0.03em;
}

.gate__hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.12em;
    margin-top: 1.5rem;
}

@keyframes shake {

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

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

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

    80% {
        transform: translateX(6px);
    }
}

.gate__form.is-shaking {
    animation: shake 0.4s var(--ease-in-out);
}

/* ── MAIN (locked until password) ─────────── */
.main {
    opacity: 0;
    transition: opacity 1s var(--ease-out) 0.5s;
}

.main.is-visible {
    opacity: 1;
}

/* ── SECTION BASE ─────────────────────────── */
.section {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: var(--section-py) 0;
}

.section__inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
}

.section__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 9vw, 4.2rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: 3rem;
}

.section__title em {
    font-style: italic;
    color: var(--color-accent);
}

/* ── DIVIDER ──────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    color: var(--color-accent);
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    opacity: 0.5;
}

/* ── HERO ─────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/img/hero.jpg');
    background-size: cover;
    background-position: center top;
    opacity: 0.28;
    will-change: transform;
}

/* Dark gradient overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(13, 13, 13, 0.25) 0%,
            rgba(13, 13, 13, 0.05) 35%,
            rgba(13, 13, 13, 0.55) 100%);
}

/* Floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    color: var(--color-accent);
    opacity: 0;
    user-select: none;
    animation: particle-float 10s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 12%;
    left: 8%;
    font-size: 0.9rem;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 22%;
    left: 88%;
    font-size: 0.5rem;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 68%;
    left: 4%;
    font-size: 1.1rem;
    animation-delay: 3.5s;
}

.particle:nth-child(4) {
    top: 72%;
    left: 92%;
    font-size: 0.6rem;
    animation-delay: 5s;
}

.particle:nth-child(5) {
    top: 42%;
    left: 48%;
    font-size: 0.75rem;
    animation-delay: 1.2s;
}

.particle:nth-child(6) {
    top: 88%;
    left: 30%;
    font-size: 0.55rem;
    animation-delay: 6s;
}

@keyframes particle-float {

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

    25% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.4;
        transform: translateY(-22px) scale(1.2);
    }

    75% {
        opacity: 0.6;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: var(--px);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    will-change: transform, opacity;
    /* GPU hint para el counter-zoom al hacer scroll */
}

.hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero__title-mi {
    font-size: clamp(3rem, 12vw, 7rem);
    display: block;
    opacity: 0;
}

.hero__title-name {
    font-size: clamp(5.5rem, 22vw, 14rem);
    display: block;
    font-style: italic;
    opacity: 0;
    /* Gold shimmer */
    background: linear-gradient(90deg,
            #C9A96E 0%,
            #F5E0A0 30%,
            #E8C87A 50%,
            #F5E0A0 70%,
            #C9A96E 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero__tagline {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    opacity: 0;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 56px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    margin: 0 auto;
    transform-origin: top;
    animation: scroll-grow 2.2s ease-in-out infinite;
}

@keyframes scroll-grow {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1;
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0;
    }
}

/* ── CONTADOR ─────────────────────────────── */
.contador {
    background: var(--color-dark-2);
    color: var(--color-white);
    flex-direction: column;
    justify-content: center;
}

.contador .section__inner {
    text-align: center;
}

.contador .section__label {
    font-size: 0.8rem;
}

.contador__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1rem;
    margin: 2rem 0;
}

@media (min-width: 600px) {
    .contador__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.contador__item {
    text-align: center;
}

.contador__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 13vw, 6rem);
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.02em;
    opacity: 0;
}

.contador__unit {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 0.5rem;
}

.contador__since {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

/* ── MAPA ─────────────────────────────────── */
.mapa,
.lugares {
    background: var(--color-dark-2);
    color: var(--color-white);
    flex-direction: column;
    justify-content: center;
}

.mapa .section__title,
.lugares .section__title {
    color: var(--color-white);
}

.mapa__wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid rgba(201, 169, 110, 0.15);
    opacity: 0;
}

.mapa__leaflet {
    width: 100%;
    height: 340px;
}

@media (min-width: 768px) {
    .mapa__leaflet {
        height: 440px;
    }
}

/* Marcadores personalizados */
.mapa__pin {
    width: 14px;
    height: 14px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 2px solid #0D0D0D;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.4), 0 0 14px rgba(201, 169, 110, 0.25);
    animation: pin-pulse 2.8s ease-in-out infinite;
}

.mapa__pin--future {
    background: transparent;
    border: 2px dashed var(--color-accent);
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.2);
    animation: none;
}

.mapa__pin--lugar {
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 1.5px solid #0D0D0D;
    box-shadow: 0 0 6px rgba(201, 169, 110, 0.35);
    animation: pin-pulse 3s ease-in-out infinite;
}

@keyframes pin-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.4), 0 0 14px rgba(201, 169, 110, 0.25);
    }

    50% {
        box-shadow: 0 0 0 9px rgba(201, 169, 110, 0), 0 0 20px rgba(201, 169, 110, 0.1);
    }
}

/* Pin corazón — Cuenca (home) */
.mapa__pin--home {
    width: 18px;
    height: 18px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    animation: heart-beat 1.6s ease-in-out infinite;
}

.mapa__pin--home::before,
.mapa__pin--home::after {
    content: '';
    position: absolute;
    width: 9px;
    height: 14px;
    background: #E8637A;
    border-radius: 9px 9px 0 0;
}

.mapa__pin--home::before {
    left: 9px;
    top: 0;
    transform-origin: 0 100%;
    transform: rotate(-45deg);
}

.mapa__pin--home::after {
    left: 0;
    top: 0;
    transform-origin: 100% 100%;
    transform: rotate(45deg);
}

@keyframes heart-beat {

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

    30% {
        transform: scale(1.28);
    }

    50% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.14);
    }
}

/* Controles tour */
.mapa__tour-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
}

.mapa__tour-btn {
    padding: 0.55rem 1.7rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.mapa__tour-btn:hover {
    background: var(--color-accent);
    color: #0D0D0D;
}

.mapa__tour-btn.is-playing {
    border-color: #E8637A;
    color: #E8637A;
}

.mapa__tour-btn.is-playing:hover {
    background: #E8637A;
    color: #fff;
}

.mapa__tour-nav {
    width: 2.2rem;
    height: 2.2rem;
    background: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.22s, color 0.22s;
    flex-shrink: 0;
}

.mapa__tour-nav:hover {
    background: var(--color-accent);
    color: #0D0D0D;
}

.mapa__tour-nav:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

/* Popup Leaflet */
.mapa__popup-wrap .leaflet-popup-content-wrapper {
    background: #1A1A1A;
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.mapa__popup-wrap .leaflet-popup-tip {
    background: #1A1A1A;
    box-shadow: none;
}

.mapa__popup-wrap .leaflet-popup-content {
    margin: 0;
    padding: 0.75rem 1.1rem;
    text-align: center;
}

.mapa__popup-wrap .leaflet-popup-close-button {
    color: rgba(201, 169, 110, 0.5) !important;
    top: 4px !important;
    right: 6px !important;
}

.mapa__popup-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 0.2rem;
    letter-spacing: 0.03em;
}

.mapa__popup-date {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* Leaflet attribution sutil */
.leaflet-control-attribution {
    background: rgba(13, 13, 13, 0.7) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.58rem !important;
}

.leaflet-control-attribution a {
    color: rgba(201, 169, 110, 0.5) !important;
}

/* ── GINEBRA COUNTDOWN ────────────────────── */
.ginebra {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0;
}

.ginebra__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.ginebra__city {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.ginebra__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ginebra__num {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 18vw, 8rem);
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.03em;
}

.ginebra__unit {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.ginebra__sub {
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* ── HISTORIA / TIMELINE ──────────────────── */
.historia {
    background: var(--color-bg);
}

.timeline {
    position: relative;
    --tl-x: 1.25rem;
    /* centro exacto de línea y punto */
}

.timeline__line {
    position: absolute;
    left: var(--tl-x);
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom,
            var(--color-accent) 0%,
            rgba(201, 169, 110, 0.2) 100%);
    transform: scaleY(0);
    transform-origin: top;
}

.timeline__item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: calc(var(--tl-x) + 1.5rem);
    opacity: 0;
    transform: translateX(-20px);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: var(--tl-x);
    top: 0.38rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2px solid var(--color-bg);
    box-shadow: 0 0 0 2px var(--color-accent);
    transform: translateX(-50%);
    /* centra el punto sobre la línea */
}

.timeline__item--future .timeline__dot {
    background: var(--color-bg);
    border: 1px dashed var(--color-accent);
    box-shadow: none;
}

.timeline__item--future .timeline__title,
.timeline__item--future .timeline__desc {
    opacity: 0.45;
}

.timeline__date {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.35rem;
}

.timeline__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.15;
}

.timeline__desc {
    font-size: 0.9rem;
    color: rgba(28, 28, 28, 0.6);
    line-height: 1.65;
    max-width: 460px;
}

.timeline__badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px dashed rgba(201, 169, 110, 0.5);
    padding: 0.2rem 0.6rem;
}

@media (min-width: 768px) {
    .timeline {
        padding-left: 2.5rem;
        margin-left: 180px;
    }
}

/* ── LO QUE ME ENCANTA ────────────────────── */
.encanta {
    background: var(--color-dark);
    color: var(--color-white);
    will-change: clip-path;
    /* GPU hint para la animación de iris */
}

.encanta .section__title {
    color: var(--color-white);
}

.encanta__list {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.encanta__item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    transform: translateX(-30px);
}

.encanta__num {
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    min-width: 1.8rem;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.encanta__text {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

/* ── GALERÍA ──────────────────────────────── */
.galeria {
    display: block;
    padding: 0;
    min-height: 0;
    background: #0D0D0D;
}

.galeria .section__inner {
    padding: 6rem var(--px) 4rem;
}

.galeria .section__title {
    color: var(--color-white);
}

.galeria .section__label {
    color: rgba(255,255,255,0.5);
}

/* Tarjeta de título del viaje */
.galeria__titulo {
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0D0D;
}

.galeria__titulo-text {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 16vw, 10rem);
    font-style: italic;
    letter-spacing: -0.01em;
    opacity: 0;           /* GSAP lo anima */
}

/* Foto pantalla completa */
.galeria__item {
    position: relative;
    height: 100dvh;
    overflow: hidden;
}

.galeria__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    will-change: transform;
}

/* Badge del viaje sobre la foto */
.galeria__badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid;
    padding: 0.28rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.polaroid {
    background: var(--color-white);
    padding: 0.85rem 0.85rem 2.8rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transform: rotate(-2.5deg);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
    will-change: transform;
}

.swiper-slide:nth-child(even) .polaroid {
    transform: rotate(2deg);
}

.swiper-slide:nth-child(3n) .polaroid {
    transform: rotate(-1deg);
}

.swiper-slide:nth-child(4n) .polaroid {
    transform: rotate(3deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.03) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.polaroid__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(201, 169, 110, 0.5);
    font-size: 2rem;
}

.polaroid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-out);
}

.polaroid:hover .polaroid__img img {
    transform: scale(1.04);
}

.polaroid__caption {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-style: italic;
    text-align: center;
    padding-top: 0.55rem;
    letter-spacing: 0.06em;
    line-height: 1;
}

/* Borde superior de color por destino (aplicado por JS) */
.polaroid[data-trip] {
    border-top: 3px solid transparent;
    transition: border-color 0.3s;
}

/* ── MÚSICA ───────────────────────────────── */
.musica {
    background: var(--color-bg);
    min-height: auto;
    padding: 5rem 0;
}

.musica .section__inner {
    text-align: center;
}

.musica__card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-white);
    padding: 2rem 2rem 1.5rem;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 360px;
    opacity: 0;
}

.musica__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.musica__icon {
    font-size: 1.6rem;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}

.musica__song {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: left;
}

.musica__artist {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(28, 28, 28, 0.45);
    text-align: left;
    margin-top: 0.1rem;
}

/* ── CARTA ────────────────────────────────── */
.carta {
    background: var(--color-accent-soft);
}

.carta .section__title {
    margin-bottom: 2rem;
}

.carta__body {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.2vw, 1.4rem);
    line-height: 1.95;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--color-text);
}

.carta__body p {
    margin-bottom: 1.5em;
    opacity: 0;
}

.carta__body p:last-child {
    margin-bottom: 0;
}

.carta__placeholder {
    opacity: 0.35 !important;
    font-style: italic;
    color: var(--color-accent-dark);
}

/* ── CIERRE ───────────────────────────────── */
.cierre {
    background: var(--color-dark);
    color: var(--color-white);
    flex-direction: column;
    justify-content: center;
}

.cierre .section__inner {
    text-align: center;
}

.cierre__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    opacity: 0;
}

.cierre__phrase {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 7vw, 3rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.03em;
    line-height: 1.35;
    color: var(--color-white);
    max-width: 560px;
}

.cierre__placeholder {
    font-style: italic;
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.cierre__heart {
    font-size: 2.5rem;
    color: var(--color-accent);
    display: block;
    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {

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

    14% {
        transform: scale(1.22);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.12);
    }

    56% {
        transform: scale(1);
    }
}

.cierre__signature {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
    line-height: 1.8;
}

.cierre__signature em {
    color: var(--color-accent);
    font-style: italic;
}

/* ── UTILITIES ────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion — show everything instantly */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}