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

:root {
    --cream: #fdf6ee;
    --sepia-light: #c4a47c;
    --rose: #c8566a;
    --rose-dark: #9e3a4e;
    --rose-light: #f2b8c2;
    --gold: #d8a13c;
    --text: #2e1a1e;
    --text-light: #7a5560;
    --ink: #1a0a08;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #110805;
    background-image:
        radial-gradient(ellipse 120% 80% at 50% 0%, #2e1209 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    color: var(--text);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
}

/* ────────── PÉTALOS ────────── */
#petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -60px;
    animation: fall linear infinite;
    opacity: 0;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(60px);
        opacity: 0;
    }
}

/* ────────── VIDEO BG ────────── */
.has-video {
    position: relative;
    overflow: hidden;
}

.section-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.has-video>*:not(.section-video):not(.video-overlay) {
    position: relative;
    z-index: 2;
}

/* ════════════════════════════════
   LOGIN
════════════════════════════════ */
#login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 65% at 50% 40%, #3d2010 0%, #1a0a08 55%, #0d0503 100%);
}

#login-screen::before {
    display: none;
}

.login-year {
    font-family: 'DM Mono', monospace;
    font-size: clamp(5rem, 20vw, 13rem);
    font-weight: 300;
    color: rgba(196, 164, 124, 0.07);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

.login-inner {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-flower {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: bloomIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 0 30px rgba(200, 86, 106, 0.4));
}

#login-screen h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 400;
    color: var(--sepia-light);
    margin-bottom: 0.5rem;
}

#login-screen h2 em {
    color: var(--rose);
    font-style: italic;
}

.login-inner>p {
    font-size: 1.05rem;
    color: rgba(196, 164, 124, 0.6);
    font-style: italic;
    margin-bottom: 2.5rem;
}

.login-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 164, 124, 0.2);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(14px);
}

.login-label {
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.date-picker {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.date-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}

.date-field--year {
    flex: 1.6;
}

.date-field-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(196, 164, 124, 0.4);
}

.date-sep {
    font-family: 'DM Mono', monospace;
    font-size: 1.3rem;
    color: rgba(196, 164, 124, 0.4);
    line-height: 1;
    padding-bottom: 1.4rem;
}

.date-input {
    width: 100%;
    border: 1px solid rgba(196, 164, 124, 0.3);
    border-radius: 6px;
    padding: 0.7rem 0.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 1.15rem;
    color: var(--sepia-light);
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    letter-spacing: 0.1em;
}

.date-input::-webkit-inner-spin-button,
.date-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.date-input::placeholder {
    color: rgba(196, 164, 124, 0.3);
}

.date-input:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 2px rgba(200, 86, 106, 0.15);
}

.date-input--year {
    letter-spacing: 0.05em;
}

.login-error {
    color: #e74c3c;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.6rem;
    min-height: 1.2em;
}

.login-btn {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--rose);
    color: white;
    border: none;
    padding: 0.9rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s, transform 0.15s;
}

.login-btn:hover {
    background: var(--rose-dark);
    transform: translateY(-1px);
}

.login-hint {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(196, 164, 124, 0.45);
    font-style: italic;
}

@keyframes bloomIn {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* ════════════════════════════════
   MODALS
════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 14, 8, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, #3d2010 0%, #1a0a08 70%, #0d0503 100%);
    border: 1px solid rgba(196, 164, 124, 0.2);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(212, 175, 55, 0.04),
        inset 0 0 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.82) translateY(32px);
    opacity: 0;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-box .modal-title {
    color: var(--sepia-light);
}

.modal-box p,
.modal-box div {
    color: var(--sepia-light);
}

.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-overlay:not(.show) .modal-box {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

.modal-box::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200, 86, 106, 0.15);
    border-radius: 1px;
    pointer-events: none;
}

.modal-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 2rem;
}

.modal-btn {
    background: var(--rose);
    color: white;
    border: none;
    padding: 0.85rem 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
}

.modal-btn:hover {
    background: var(--rose-dark);
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.3rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s, transform 0.2s;
}

.modal-close:hover {
    color: var(--rose);
    transform: scale(1.2);
}

.modal-box--gallery {
    width: 92%;
    max-width: 1000px;
    max-height: 85vh;
    overflow: hidden;
    padding: 2rem;
}

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background:
        radial-gradient(ellipse 90% 70% at 50% 35%, #3d2010 0%, #1a0a08 60%, #2e1209 100%);
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    position: relative;
    z-index: 999;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(-45deg,
            transparent 0px,
            transparent 80px,
            rgba(212, 175, 55, 0.015) 80px,
            rgba(212, 175, 55, 0.015) 81px);
    pointer-events: none;
    z-index: 1;
}

.hero-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
            transparent, transparent 3px,
            rgba(196, 164, 124, 0.015) 3px,
            rgba(196, 164, 124, 0.015) 4px);
}

.hero-year-bg {
    position: absolute;
    font-family: 'DM Mono', monospace;
    font-size: clamp(8rem, 25vw, 20rem);
    font-weight: 300;
    color: rgba(196, 164, 124, 0.04);
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-stamp {
    display: inline-block;
    border: 2px solid rgba(196, 164, 124, 0.3);
    padding: 0.3rem 1.2rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--sepia-light);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 7.5rem);
    font-weight: 400;
    line-height: 1.0;
    color: var(--sepia-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-title em {
    font-style: italic;
    color: var(--rose);
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 2rem auto;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-style: italic;
    color: rgba(196, 164, 124, 0.65);
    max-width: 500px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.1s;
}

.hero-date-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: rgba(196, 164, 124, 0.3);
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.4s;
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.8s;
    z-index: 3;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollArrow 1.8s ease-in-out infinite;
}

@keyframes scrollArrow {

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

    50% {
        transform: scaleY(0.6);
        opacity: 0.4;
    }
}

/* ════════════════════════════════
   TIMELINE
════════════════════════════════ */
.timeline-section {
    padding: 0;
    position: relative;
    background: var(--cream);
    transform: translateZ(0);
    will-change: transform;
    z-index: 1;
}

.timeline-line {
    display: none;
    /* la línea se dibuja desde cada .era-dot */
}

.era {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: stretch;
    transform: translateZ(0);
    margin-bottom: -2px;
}

.era .video-overlay {
    background: rgba(253, 246, 238, 0.82);
}

.era--static {
    background: linear-gradient(180deg, #2e1209 0%, #2e1a0e 40%, #3d2410 100%);
}

.era--static .era-title {
    color: var(--sepia-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.era--static .era-title em {
    color: #e8956a;
}

.era--static .era-text {
    color: rgba(210, 180, 140, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.era--static .era-label {
    color: #c8956a;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.era--static .era-dot-circle {
    border-color: rgba(196, 164, 124, 0.4);
}

.era--static .era-year {
    color: var(--sepia-light);
}

/* Marco polaroid para 1971 */
.era-media-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.era-film-frame {
    position: relative;
    display: inline-block;
    padding: 10px 10px 44px 10px;
    background: #f5ede0;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.5),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    transition: transform 0.4s ease;
    max-width: 280px;
}

.era-film-frame:hover {
    transform: rotate(0deg) scale(1.03);
}

.era-film-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    filter: sepia(0.5) contrast(0.88) brightness(0.92);
}

.era-film-scratches {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent, transparent 60px,
            rgba(255, 255, 255, 0.03) 61px, transparent 62px),
        repeating-linear-gradient(0deg,
            transparent, transparent 40px,
            rgba(0, 0, 0, 0.04) 41px, transparent 42px);
    pointer-events: none;
}

.era-film-frame video {
    display: block;
    width: 100%;
    filter: sepia(0.5) contrast(0.88) brightness(0.92);
}

/* Overlays por era */
.era[data-era="1980"] .video-overlay {
    background: rgba(20, 8, 2, 0.72);
}

.era[data-era="1980"] .section-video {
    filter: sepia(0.65) contrast(0.85);
}

.era[data-era="1980"] .era-title {
    color: var(--sepia-light);
}

.era[data-era="1980"] .era-text {
    color: rgba(220, 196, 164, 0.95);
}

.era[data-era="1990"] .video-overlay {
    background: rgba(26, 10, 14, 0.70);
}

.era[data-era="1990"] .section-video {
    filter: sepia(0.3);
}

.era[data-era="1990"] .era-title {
    color: #f5e4d2;
}

.era[data-era="1990"] .era-text {
    color: rgba(245, 228, 210, 0.92);
}

.era[data-era="2000"] .video-overlay {
    background: rgba(26, 10, 14, 0.68);
}

.era[data-era="2000"] .era-title {
    color: #fff5f5;
}

.era[data-era="2000"] .era-text {
    color: rgba(255, 220, 230, 0.95);
}

.era[data-era="2026"] .video-overlay {
    background: linear-gradient(135deg, rgba(16, 4, 2, 0.80) 0%, rgba(36, 8, 14, 0.78) 100%);
}

.era[data-era="2026"] .era-title {
    color: #fff8f6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95), 0 2px 20px rgba(0, 0, 0, 0.7);
}

.era[data-era="2026"] .era-text {
    color: rgba(255, 240, 244, 0.98);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.7);
}

.era[data-era="2026"] .era-label {
    color: var(--gold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.era-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
}

/* Punto + línea del timeline */
.era-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.era-dot::before,
.era-dot::after {
    content: '';
    display: block;
    width: 2px;
    background: rgba(212, 175, 55, 0.7);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    height: 50%;
    z-index: 0;
}

.era-dot::before {
    bottom: 100%;
    height: 50vh;
    bottom: 50%;
}

.era-dot::after {
    top: 50%;
    height: 50vh;
}

.era-dot-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--rose);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--rose-light);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.era-year {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.15em;
    color: var(--rose);
    writing-mode: vertical-rl;
    position: relative;
    z-index: 10;
    background: #331e10;
    /* MISMO color que el fondo */
    padding: 4px 0;
    /* crea el corte en la línea */
    border-radius: 10px;
}

.era-content {
    padding: 2.5rem 3rem;
}

/* Panel frosted-glass detrás del texto para eras con vídeo */
.has-video .era-content {
    background: rgba(10, 4, 2, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 12px;
    border: 1px solid rgba(196, 164, 124, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.era-content.left {
    text-align: right;
}

.era-content.right {
    text-align: left;
}

.era-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.6rem;
    text-shadow:
        0 1px 6px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.7);
}

.era-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.85),
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.6);
}

.era-title em {
    color: var(--rose);
    font-style: italic;
    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 1);
}

.era-text {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-light);
    max-width: 380px;
    text-shadow:
        0 1px 8px rgba(0, 0, 0, 0.95),
        0 2px 16px rgba(0, 0, 0, 0.7);
}

.era-content.left .era-text {
    margin-left: auto;
}

.era-content.right .era-text {
    margin-right: auto;
}

.era-separator {
    display: none;
}

/* ════════════════════════════════
   ÁLBUM DE RECUERDOS
════════════════════════════════ */
.album-section {
    padding: 8rem 2rem 7rem;
    background: linear-gradient(180deg, #3b1e1b 0%, #0f0608 100%);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.album-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 30% at 50% 0%, rgba(200, 86, 106, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 80% 30% at 50% 100%, rgba(200, 86, 106, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.album-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, #0f0608);
    pointer-events: none;
    z-index: 1;
}

.album-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.album-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: white;
    margin-top: 0.5rem;
    margin-bottom: 4rem;
}

.album-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3.5rem;
}

.album-card {
    width: 260px;
    background: #fdf8f2;
    padding: 12px 12px 54px 12px;
    box-shadow:
        0 6px 24px rgba(46, 26, 30, 0.18),
        0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.35s ease;
    position: relative;
}

.album-card--rot-pos {
    transform: rotate(1.8deg);
}

.album-card--rot-neg {
    transform: rotate(-1.5deg);
}

.album-card:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04) !important;
    box-shadow: 0 20px 50px rgba(46, 26, 30, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.album-card-photo {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8ddd0;
}

.album-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(0.92) saturate(0.85);
    transition: filter 0.4s ease, transform 0.45s ease;
}

.album-card:hover .album-card-photo img {
    filter: contrast(1) saturate(1);
    transform: scale(1.04);
}

.album-card-tape {
    position: absolute;
    width: 44px;
    height: 18px;
    background: rgba(255, 255, 200, 0.55);
    border: 1px solid rgba(200, 180, 100, 0.3);
    backdrop-filter: blur(1px);
}

.album-card-tape--tl {
    top: -6px;
    left: 14px;
    transform: rotate(-12deg);
}

.album-card-tape--br {
    bottom: -6px;
    right: 14px;
    transform: rotate(8deg);
}

.album-card-caption {
    padding: 0.9rem 0.4rem 0;
    text-align: center;
}

.album-card-year {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    display: block;
    margin-bottom: 0.3rem;
}

.album-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.album-card-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-light);
}

/* ════════════════════════════════
   HOMENAJE — Sección Amama
════════════════════════════════ */
.tribute-section {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    background: #0f0608;
    transform: translateZ(0);
    will-change: transform;
}

.tribute-bg-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%, #1e0810 0%, #0f0608 65%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
    z-index: 0;
}

.candle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.candle-flame-wrap {
    position: relative;
    width: 20px;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.candle-flame {
    width: 12px;
    height: 24px;
    background: radial-gradient(ellipse at 50% 90%, #fff4a0 0%, #ffcc00 35%, #ff8800 70%, transparent 100%);
    border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
    animation: flicker 2.5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.candle-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(255, 200, 50, 0.28) 0%, transparent 70%);
    animation: glowPulse 2.5s ease-in-out infinite;
    z-index: 1;
}

.candle-body {
    width: 16px;
    height: 52px;
    background: linear-gradient(to bottom, #f8f0e0, #e8d8c0);
    border-radius: 2px 2px 4px 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.3);
}

.candle-wax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    animation: waxDrip 4s ease-in-out infinite;
}

@keyframes flicker {

    0%,
    100% {
        transform: scaleX(1) scaleY(1) rotate(-1deg);
        opacity: 1;
    }

    25% {
        transform: scaleX(0.9) scaleY(1.08) rotate(1deg);
        opacity: 0.95;
    }

    50% {
        transform: scaleX(1.05) scaleY(0.95) rotate(-0.5deg);
        opacity: 1;
    }

    75% {
        transform: scaleX(0.95) scaleY(1.04) rotate(0.8deg);
        opacity: 0.97;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes waxDrip {

    0%,
    100% {
        height: 8px;
    }

    50% {
        height: 12px;
    }
}

.tribute-inner {
    position: relative;
    z-index: 3;
    max-width: 600px;
    margin: 0 auto;
}

.tribute-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(196, 164, 124, 0.5);
    display: block;
    margin-bottom: 1.2rem;
}

.tribute-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 400;
    color: var(--sepia-light);
    text-shadow: 0 0 60px rgba(196, 164, 124, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.tribute-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tribute-rule span:not(.tribute-star) {
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(196, 164, 124, 0.3));
}

.tribute-rule span:first-child {
    background: linear-gradient(to left, transparent, rgba(196, 164, 124, 0.3));
}

.tribute-star {
    color: rgba(196, 164, 124, 0.4);
    font-size: 0.8rem;
}

.tribute-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: rgba(196, 164, 124, 0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.tribute-tap {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: white;
    display: block;
    animation: tapPulse 2.5s ease-in-out infinite;
}

@keyframes tapPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.tribute-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.tribute-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 220, 100, 0.6);
    border-radius: 50%;
    animation: particleRise linear infinite;
}

.tribute-particles span:nth-child(1) {
    left: 15%;
    top: 70%;
    animation-duration: 8s;
    animation-delay: 0s;
    width: 2px;
    height: 2px;
}

.tribute-particles span:nth-child(2) {
    left: 30%;
    top: 80%;
    animation-duration: 10s;
    animation-delay: 1.5s;
}

.tribute-particles span:nth-child(3) {
    left: 55%;
    top: 75%;
    animation-duration: 7s;
    animation-delay: 0.8s;
    width: 2px;
    height: 2px;
}

.tribute-particles span:nth-child(4) {
    left: 70%;
    top: 65%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.tribute-particles span:nth-child(5) {
    left: 80%;
    top: 85%;
    animation-duration: 11s;
    animation-delay: 0.3s;
    width: 2px;
    height: 2px;
}

.tribute-particles span:nth-child(6) {
    left: 20%;
    top: 55%;
    animation-duration: 8.5s;
    animation-delay: 1s;
}

.tribute-particles span:nth-child(7) {
    left: 45%;
    top: 90%;
    animation-duration: 9.5s;
    animation-delay: 2.5s;
    width: 2px;
    height: 2px;
}

.tribute-particles span:nth-child(8) {
    left: 65%;
    top: 50%;
    animation-duration: 7.5s;
    animation-delay: 0.6s;
}

@keyframes particleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    85% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-120px) translateX(20px);
        opacity: 0;
    }
}

/* ════════════════════════════════
   GALERÍA MODAL
════════════════════════════════ */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    overflow-y: auto;
    max-height: 70vh;
    scrollbar-width: none;
}

.galeria-grid::-webkit-scrollbar {
    width: 0;
}

.img-wrapper {
    border-radius: 10px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.img-wrapper:hover {
    z-index: 20;
}

.img-wrapper:hover img {
    transform: scale(1.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

#imgZoom {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 10000;
}

#imgZoom.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#imgZoomed {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
}

.zoom-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s, background 0.2s;
}

.zoom-close:hover {
    background: #eee;
    transform: scale(1.1);
}

/* ════════════════════════════════
   QUOTE — transiciones suaves
════════════════════════════════ */
.quote-section {
    padding: 9rem 2rem;
    background: var(--text);
    text-align: center;
    position: relative;
    transform: translateZ(0);
    will-change: transform;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, #0f0608 0%, #0f0608 15%, transparent 100%);
    pointer-events: none;
    z-index: 3;
}

.quote-section .video-overlay {
    background: rgba(46, 26, 30, 0.78);
    z-index: 1;
}

.quote-inner {
    position: relative;
    z-index: 4;
    max-width: 700px;
    margin: 0 auto;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: rgba(200, 86, 106, 0.2);
    line-height: 0;
    display: block;
    margin-bottom: 2rem;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-style: italic;
    color: var(--sepia-light);
    line-height: 1.55;
    margin-bottom: 2rem;
}

.quote-author {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    color: var(--gold);
    text-transform: uppercase;
}

/* ════════════════════════════════
   FINAL
════════════════════════════════ */
.final-section {
    padding: 9rem 2rem;
    text-align: center;
    background: var(--cream);
    transform: translateZ(0);
    will-change: transform;
}

.final-section .video-overlay {
    background: rgba(253, 232, 237, 0.80);
}

.final-inner {
    position: relative;
    z-index: 2;
}

.final-big {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 9vw, 6.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 2rem;
}

.final-big em {
    font-style: italic;
    color: var(--rose);
    position: relative;
}

.final-big em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rose-light);
    border-radius: 2px;
}

.final-sub {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.hearts-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem;
}

.heart {
    animation: heartbeat 1.4s ease-in-out infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.2s;
}

.heart:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes heartbeat {

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

    50% {
        transform: scale(1.3);
    }
}

/* ════════════════════════════════
   FOOTER / UTILIDADES
════════════════════════════════ */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--sepia-light);
    border-top: 1px solid rgba(200, 86, 106, 0.1);
    letter-spacing: 0.1em;
}

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: #f3a3b3;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title em {
    color: var(--rose);
    font-style: italic;
}

body.no-scroll,
html.no-scroll {
    overflow: hidden;
    height: 100%;
}

@keyframes shake {

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

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

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

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

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

/* ════ RESPONSIVE ════ */
@media (max-width: 768px) {
    .era-inner {
        grid-template-columns: 40px 1fr;
        padding: 4rem 1rem;
    }

    .era-content.left {
        text-align: left;
        grid-column: 2;
        grid-row: 1;
        padding: 1.5rem 1.2rem;
    }

    .era-content.right {
        grid-column: 2;
        grid-row: 1;
        padding: 1.5rem 1.2rem;
    }

    .era-dot {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 3;
    }

    /* Anulamos los pseudoelementos que usan 50vh y se salen del contenedor */
    .era-dot::before,
    .era-dot::after {
        display: none;
    }

    /* La línea continua la dibujamos sobre la columna izquierda del era-inner,
       así queda 100% contenida dentro de su sección */
    .era-inner {
        position: relative;
    }

    .era-inner::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 19px;
        /* centro de la columna de 40px */
        width: 2px;
        background: rgba(212, 175, 55, 0.7);
        pointer-events: none;
        z-index: 1;
    }

    /* El primer era no tiene línea hacia arriba: ocultamos la mitad superior */
    .era:first-of-type .era-inner::before {
        top: 50%;
    }

    /* El último era no tiene línea hacia abajo */
    .era:last-of-type .era-inner::before {
        bottom: 50%;
    }

    .era-empty {
        display: none;
    }

    .era-media-col {
        display: block;
        grid-column: 2;
        grid-row: 2;
        padding: 0 1rem 1.5rem;
    }

    .galeria-grid {
        grid-template-columns: 1fr 1fr;
    }

    .album-grid {
        flex-direction: column;
        align-items: center;
        gap: 3.5rem;
        margin-top: 3rem;
    }

    .album-card {
        width: min(280px, 82vw);
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .date-picker {
        gap: 0.25rem;
    }

    .amama-videos-stage {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .amama-vid-wrap,
    .amama-vid-wrap--center {
        max-width: 75vw;
        transform: none !important;
        margin-bottom: 0;
    }

    .amama-vid-wrap:hover {
        transform: scale(1.03) !important;
    }

    .era--static .era-inner {
        grid-template-columns: 40px 1fr;
        grid-template-rows: auto auto;
    }

    .era-film-frame {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ══════════════════════════════════════════
   SECCIÓN VÍDEOS AMAMA
══════════════════════════════════════════ */
.amama-videos-section {
    position: relative;
    background: #0a0705;
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
    text-align: center;
    transform: translateZ(0);
    will-change: transform;
}

.amama-videos-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.amama-videos-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1rem;
    margin-top: 0.5rem;
    letter-spacing: 0.04em;
}

.amama-videos-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.amama-vid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 260px;
    transition: transform 0.4s ease;
}

.amama-vid-wrap--center {
    max-width: 340px;
    margin-bottom: 0;
}

.amama-vid-wrap--left {
    transform: rotate(-3deg);
}

.amama-vid-wrap--right {
    transform: rotate(3deg);
}

.amama-vid-wrap--left:hover,
.amama-vid-wrap--right:hover {
    transform: rotate(0deg) scale(1.04);
    z-index: 5;
}

.amama-vid-wrap--center:hover {
    transform: scale(1.04);
    z-index: 5;
}

.amama-vid-frame {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid rgba(212, 175, 55, 0.35);
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.1),
        0 8px 30px rgba(0, 0, 0, 0.7),
        inset 0 0 20px rgba(0, 0, 0, 0.4);
    background: #000;
    width: 100%;
    aspect-ratio: 9 / 16;
}

.amama-vid-frame--center {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow:
        0 0 0 2px rgba(212, 175, 55, 0.25),
        0 12px 50px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 175, 55, 0.08),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4 / 3;
}

.amama-vid-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    animation: vidGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

.amama-vid-glow--center {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, transparent 65%);
    animation-duration: 2.5s;
}

@keyframes vidGlowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.amama-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.25) brightness(0.88);
    /* Sin transition en el filter — lo animamos por otro lado */
    transform: translateZ(0);
    will-change: transform;
}

/* Overlay que cubre el sepia al hacer hover */
.amama-vid-color-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: brightness(1.12);
    opacity: 0;
    transition: opacity 0.4s ease;
    /* ← animamos opacity, no filter */
    pointer-events: none;
    z-index: 3;
}

.amama-vid-wrap:hover .amama-vid-color-overlay {
    opacity: 1;
}

.amama-vid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
    z-index: 2;
}

.amama-vid-scratches {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(to right,
            transparent 0px, transparent 6px,
            rgba(255, 255, 255, 0.015) 6px,
            rgba(255, 255, 255, 0.015) 7px);
    pointer-events: none;
    z-index: 2;
}

.amama-vid-caption {
    margin-top: 0.75rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.78rem;
    color: rgba(212, 175, 55, 0.6);
    letter-spacing: 0.05em;
    text-align: center;
}

.amama-videos-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.amama-videos-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.amama-videos-particles span:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.amama-videos-particles span:nth-child(2) {
    left: 30%;
    top: 70%;
    animation-delay: 1.5s;
    animation-duration: 9s;
}

.amama-videos-particles span:nth-child(3) {
    left: 55%;
    top: 15%;
    animation-delay: 0.8s;
    animation-duration: 6s;
}

.amama-videos-particles span:nth-child(4) {
    left: 70%;
    top: 60%;
    animation-delay: 2.2s;
    animation-duration: 8s;
}

.amama-videos-particles span:nth-child(5) {
    left: 85%;
    top: 35%;
    animation-delay: 0.3s;
    animation-duration: 7.5s;
}

.amama-videos-particles span:nth-child(6) {
    left: 20%;
    top: 85%;
    animation-delay: 1.8s;
    animation-duration: 6.5s;
}

@keyframes particleFloat {

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

    50% {
        transform: translateY(-18px) scale(1.5);
        opacity: 0.9;
    }
}

.amama-vid-wrap--left.reveal {
    transition-delay: 0s;
}

.amama-vid-wrap--center.reveal {
    transition-delay: 0.15s;
}

.amama-vid-wrap--right.reveal {
    transition-delay: 0.3s;
}

/* ════════════════════════════════
   MODAL GALERÍA AMAMA
════════════════════════════════ */
.modal-box--gallery--amama {
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, #2e1209 0%, #0f0603 70%, #080301 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(212, 175, 55, 0.05),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.modal-box--gallery--amama .img-wrapper img {
    filter: sepia(0.2) brightness(0.92);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-box--gallery--amama .img-wrapper:hover img {
    filter: sepia(0) brightness(1);
}

.modal-box--gallery--amama .modal-close {
    color: rgba(212, 175, 55, 0.6);
}

.modal-box--gallery--amama .modal-close:hover {
    color: var(--gold);
}

/* ════════════════════════════════
   HERO COUNTER — tiempo real
════════════════════════════════ */
.hero-counter {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero-counter-grid {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.hero-counter-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 3.5rem;
}

.hero-counter-num {
    font-family: 'DM Mono', monospace;
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    font-weight: 300;
    color: var(--rose);
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Los segundos parpadean suavemente */
.hero-counter-num--segs {
    animation: segsBlink 1s step-start infinite;
}

@keyframes segsBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.hero-counter-sep {
    font-family: 'DM Mono', monospace;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    color: rgba(196, 164, 124, 0.35);
    line-height: 1;
    padding-top: 0.1rem;
}

.hero-counter-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(196, 164, 124, 0.45);
}

.hero-counter-phrase {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.85rem, 2vw, 1.05rem);
    font-style: italic;
    color: rgba(196, 164, 124, 0.55);
    letter-spacing: 0.06em;
    margin-top: 0.2rem;
}

@media (max-width: 768px) {
    .hero-counter-unit {
        min-width: 2.6rem;
    }

    .hero-counter-grid {
        gap: 0.2rem;
    }
}

/* ════════════════════════════════════════════════
   PARCHE DE RENDIMIENTO v2
   Añadir al final de estilos.css
════════════════════════════════════════════════ */

/* ── Pétalos CSS (sin emoji) ── */
.petal {
    position: absolute;
    top: -40px;
    border-radius: 50% 0 50% 0;
    animation: fall linear forwards;
    opacity: 0;
    /* GPU layer solo para este elemento */
    will-change: transform, opacity;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    8% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.45;
    }

    100% {
        transform: translateY(110vh) rotate(600deg) translateX(var(--drift, 50px));
        opacity: 0;
    }
}

/* ── content-visibility para secciones off-screen ──
   El navegador salta el renderizado de secciones que no son visibles.
   Mejora mucho el tiempo hasta interactivo en móvil. */
.timeline-section,
.album-section,
.amama-videos-section,
.tribute-section,
.quote-section,
.final-section {
    content-visibility: auto;
    /* Altura aproximada para evitar saltos de scroll */
    contain-intrinsic-size: 0 600px;
}

/* ── Skeleton loader para fotos de galería ── */
.img-skeleton {
    background: linear-gradient(90deg,
            rgba(196, 164, 124, 0.08) 25%,
            rgba(196, 164, 124, 0.18) 50%,
            rgba(196, 164, 124, 0.08) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 10px;
    min-height: 120px;
}

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

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

.img-skeleton img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-wrapper:not(.img-skeleton) img {
    opacity: 1;
}

/* ── Botón "Ver más" en galerías ── */
.galeria-ver-mas {
    grid-column: 1 / -1;
    background: transparent;
    border: 1px solid rgba(196, 164, 124, 0.35);
    color: var(--sepia-light);
    padding: 0.7rem 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.1em;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s, border-color 0.2s;
}

.galeria-ver-mas:hover {
    background: rgba(196, 164, 124, 0.1);
    border-color: rgba(196, 164, 124, 0.6);
}

/* ── Vídeos: fondo oscuro mientras cargan (reduce flash blanco) ── */
video {
    background: #1a0a08;
}

/* ── Reducir blur en móvil (backdrop-filter es muy caro en GPU móvil) ── */
@media (max-width: 768px) {
    .has-video .era-content {
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .login-box {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    /* En móvil, content-visibility ayuda más → tamaño más ajustado */
    .timeline-section {
        contain-intrinsic-size: 0 2000px;
    }

    .album-section {
        contain-intrinsic-size: 0 700px;
    }

    .amama-videos-section {
        contain-intrinsic-size: 0 500px;
    }
}

/* ── Desactivar animaciones decorativas si el usuario lo prefiere ── */
@media (prefers-reduced-motion: reduce) {

    .petal,
    .candle-flame,
    .candle-glow,
    .scroll-arrow,
    .hero-counter-num--segs,
    .amama-vid-glow,
    .tribute-particles span,
    .amama-videos-particles span {
        animation: none !important;
        transition: none !important;
    }
}