/* ==================== SECCIÓN MOMENTOS ==================== */

.moments-section {
    position: relative;
    max-width: 820px;
    margin: 0 auto 30px;
    background: linear-gradient(180deg, #1a0f15 0%, #120a10 100%);
    border-radius: 20px;
    padding: 32px 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 120, 155, 0.12);
    color: #ddb8cb;
}

/* Partículas de fondo */
.moments-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.moments-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(196, 120, 155, 0.18);
    animation: momentParticleFloat linear infinite;
}

@keyframes momentParticleFloat {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-110%) scale(0.4); opacity: 0; }
}

/* Contenido principal */
.moments-counter-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    width: 100%;
}

.moments-label {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1.3rem;
    color: rgba(221, 184, 203, 0.65);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

/* Counter */
.moments-counter {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.moments-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.moments-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    color: #ddb8cb;
    text-shadow:
        0 0 20px rgba(196, 120, 155, 0.3),
        0 0 45px rgba(196, 120, 155, 0.08);
    line-height: 1;
    min-width: 72px;
    display: block;
    text-align: center;
    overflow: hidden;
}

.mn-inner {
    display: block;
}

.mn-exit {
    animation: mnExit 0.15s ease forwards;
}

.mn-enter {
    animation: mnEnter 0.28s ease forwards;
}

@keyframes mnExit {
    to { transform: translateY(-55%); opacity: 0; }
}

@keyframes mnEnter {
    from { transform: translateY(55%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

.moments-unit-label {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    color: rgba(155, 139, 170, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.moments-separator {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: rgba(196, 120, 155, 0.25);
    line-height: 1;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Sección geográfica */
.moments-geo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.moments-city {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.moments-city-flag {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.moments-city-name {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    color: #c8a8b8;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.moments-city-time {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    color: #ddb8cb;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.moments-flight-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    max-width: 260px;
    min-width: 140px;
}

.moments-flight-svg {
    width: 100%;
    height: 46px;
    overflow: visible;
}

.moments-distance-text {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    color: rgba(200, 175, 190, 0.75);
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.moments-since {
    font-family: 'Jost', 'Segoe UI', sans-serif;
    font-size: 0.7rem;
    color: rgba(200, 175, 190, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    margin-top: -10px;
}

.moments-tagline {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1.05rem;
    color: rgba(196, 120, 155, 0.45);
    letter-spacing: 0.04em;
}

/* ==================== SECCIÓN POLAROIDS ==================== */

.polaroids-section {
    padding: 40px 20px 30px;
    text-align: center;
    margin-bottom: 10px;
}

.polaroids-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.polaroid {
    background: #fdfaf5;
    padding: 11px 11px 38px;
    border-radius: 2px;
    box-shadow:
        0 8px 30px rgba(80, 40, 60, 0.16),
        0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 210px;
    flex-shrink: 0;
    animation: polaroidDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition:
        rotate 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.polaroid:nth-child(1) {
    rotate: -4deg;
    animation-delay: 0.15s;
}

.polaroid:nth-child(2) {
    rotate: 2deg;
    animation-delay: 0.3s;
}

.polaroid:nth-child(3) {
    rotate: -1.5deg;
    animation-delay: 0.45s;
}

.polaroid:hover {
    rotate: 0deg;
    scale: 1.06;
    box-shadow:
        0 20px 50px rgba(80, 40, 60, 0.24),
        0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

@keyframes polaroidDrop {
    from {
        opacity: 0;
        translate: 0 -45px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.polaroid-img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    border-radius: 1px;
    display: block;
}

.polaroid-caption {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1.1rem;
    color: #6b5060;
    text-align: center;
    margin-top: 10px;
    line-height: 1.2;
}

.polaroids-hint {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 1rem;
    color: #9b8baa;
    margin-top: 5px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .moments-section {
        padding: 40px 15px;
    }

    .moments-number {
        font-size: 2.8rem;
        min-width: 68px;
    }

    .moments-separator {
        font-size: 2rem;
        margin-top: 5px;
    }

    .moments-label {
        font-size: 1.4rem;
    }

    .moments-geo {
        flex-direction: column;
        gap: 12px;
    }

    .moments-city-time {
        font-size: 1.3rem;
    }

    .moments-distance {
        max-width: 180px;
        min-width: 120px;
    }

    .polaroid {
        width: 155px;
        padding: 9px 9px 32px;
    }

    .polaroid-img {
        height: 138px;
    }

    .polaroids-track {
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .moments-counter {
        gap: 4px;
    }

    .moments-number {
        font-size: 2.2rem;
        min-width: 52px;
    }

    .moments-unit-label {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .moments-separator {
        font-size: 1.5rem;
    }
}
