/* ═══════════════════════════════════════════════════════════════════
   DÍA DE MUERTOS — CSS CONSOLIDADO FINAL (v3)
   · SIN sidenav (eliminada por completo)
   · Reproductor con ancho + alto FIJOS (no cambia con el título)
   · Hero responsive · galería 2 cols móvil · flechas lightbox abajo
   · Footer legible en móvil
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg: #FAF4E8;
    --bg-soft: #F3EADA;
    --surface: #FFFFFF;
    --surface-2: #FFF9ED;
    --ink: #1F140A;
    --ink-soft: #4A3826;
    --ink-dim: #8B7355;
    --line: rgba(31, 20, 10, 0.1);
    --line-strong: rgba(31, 20, 10, 0.2);
    --accent: #E04A1F;
    --accent-light: #FF7A3E;
    --accent-2: #B21F6D;
    --accent-3: #D18B1F;
    --accent-4: #3F7A3B;
    --accent-blue: #2D5090;
    --shadow-sm: 0 4px 14px rgba(31, 20, 10, 0.08);
    --shadow-md: 0 12px 36px rgba(31, 20, 10, 0.12);
    --shadow-lg: 0 30px 70px rgba(31, 20, 10, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: auto;   /* evita salto animado al cargar */
    background: var(--bg);
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    letter-spacing: -0.005em;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }

/* ═══════════ HERO ═══════════ */
.hero {
    position: relative; min-height: 100vh;
    padding: 120px 32px 60px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    color: #fff;
    text-align: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background-image: url('../images/1698425731231.jpg');
    background-size: cover; background-position: center;
    z-index: 0;
    animation: heroZoom 20s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.15); }
    to   { transform: scale(1); }
}
.hero-bg-fallback {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(224,74,31,0.55), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(178,31,109,0.5), transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(209,139,31,0.4), transparent 60%),
        #1a0f06;
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(26,15,6,0.35) 0%, rgba(26,15,6,0.55) 60%, rgba(26,15,6,0.85) 100%),
        linear-gradient(90deg, rgba(26,15,6,0.5) 0%, transparent 60%);
    z-index: 1;
}
.hero-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px; margin: 0 auto;
    width: 100%;
    position: relative; z-index: 3;
    padding: 40px 0;
}
.hero-left {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    width: 100%;
}

.hero-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.1s cubic-bezier(0.2,0.9,0.3,1), transform 1.1s cubic-bezier(0.2,0.9,0.3,1);
}
.hero-anim.on { opacity: 1; transform: translateY(0); }
.hero-anim.delay-1 { transition-delay: 0.2s; }
.hero-anim.delay-2 { transition-delay: 0.45s; }
.hero-anim.delay-3 { transition-delay: 0.7s; }
.hero-anim.delay-4 { transition-delay: 1s; }

.hero h1 {
    font-size: clamp(3.2rem, 14vw, 13rem);
    font-weight: 900; line-height: 0.88;
    letter-spacing: -0.045em;
    margin-bottom: 36px;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0,0,0,0.4);
    text-align: center;
}
.hero h1 .word { display: block; }
.hero h1 .word.b {
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
    font-style: italic; font-weight: 900;
    margin-top: -0.05em;
}
.hero-sub {
    max-width: 640px;
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    color: rgba(255,255,255,0.92);
    line-height: 1.6; margin: 0 auto 40px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    font-weight: 300;
    text-align: center;
}
.hero-sub em {
    color: #fff; font-style: normal; font-weight: 600;
    background: linear-gradient(180deg, transparent 60%, rgba(255,122,62,0.5) 60%);
}
.hero-image {
    display: block;
    margin: 0 auto;
    width: clamp(180px, 22vw, 320px);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
    user-select: none;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero { padding: 110px 24px 60px; }
    .hero h1 {
        font-size: clamp(3.6rem, 14vw, 7rem);
        letter-spacing: -0.035em;
        margin-bottom: 32px;
    }
    .hero-sub {
        font-size: 1.15rem;
        line-height: 1.55;
        max-width: 520px;
    }
    .hero-image { width: clamp(160px, 28vw, 240px); }
}
@media (max-width: 720px) {
    .hero { padding: 90px 20px 50px; min-height: 100vh; }
    .hero h1 {
        font-size: clamp(3rem, 16vw, 5.5rem);
        line-height: 0.95;
        margin-bottom: 28px;
    }
    .hero-sub {
        font-size: 1.1rem;
        line-height: 1.55;
        margin-bottom: 34px;
    }
    .hero-image { width: 160px; }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(2.8rem, 15vw, 3.6rem);
        letter-spacing: -0.025em;
    }
    .hero-sub {
        font-size: 1.05rem;
        line-height: 1.55;
    }
    .hero-image { width: 130px; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-sub { font-size: 1rem; }
}

/* ═══════════ PÉTALOS ═══════════ */
.petals-layer {
    position: absolute; inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}
.petal {
    position: absolute;
    top: -10%;
    left: var(--x, 50%);
    width: var(--size, 20px);
    height: calc(var(--size, 20px) * 1.6);
    opacity: 0;
    animation:
        fall var(--dur, 12s) linear var(--delay, 0s) infinite,
        sway calc(var(--dur, 12s) / 2.5) ease-in-out var(--delay, 0s) infinite alternate;
    will-change: transform, opacity;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
    transform-origin: center;
}
.petal svg {
    width: 100%; height: 100%; display: block;
    animation: tumble var(--spin, 3s) ease-in-out infinite;
    transform: rotate(var(--tilt, 0deg));
}
@keyframes fall {
    0%   { transform: translateY(-15vh); opacity: 0; }
    10%  { opacity: 0.95; }
    85%  { opacity: 0.95; }
    100% { transform: translateY(115vh); opacity: 0; }
}
@keyframes sway {
    0%   { margin-left: -40px; }
    50%  { margin-left: 25px; }
    100% { margin-left: -20px; }
}
@keyframes tumble {
    0%   { transform: rotate(var(--tilt, 0deg))   rotateY(0deg); }
    50%  { transform: rotate(calc(var(--tilt, 0deg) + 180deg)) rotateY(180deg); }
    100% { transform: rotate(calc(var(--tilt, 0deg) + 360deg)) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .petals-layer { display: none; }
}

/* ═══════════ SECTION BASE ═══════════ */
.section {
    padding: 140px 32px;
    position: relative;
    border-top: 1px solid var(--line);
}
.section.alt { background: var(--bg-soft); }
.section-inner { max-width: 1400px; margin: 0 auto; width: 100%; }

.section-head {
    display: grid; grid-template-columns: 120px 1fr;
    gap: 40px; margin-bottom: 80px;
    align-items: start;
}
.section-head .n {
    font-family: ui-monospace, Menlo, monospace;
    font-size: 14px; color: var(--accent); font-weight: 700;
    letter-spacing: 0.1em;
    padding-top: 14px;
    border-top: 2px solid var(--accent);
    display: inline-block;
}
.section-head h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 900; line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 900; }
.section-head .intro {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: var(--ink-soft);
    max-width: 620px; line-height: 1.7;
}
.section-head .intro strong { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
    .section { padding: 80px 20px; }
    .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 50px; }
    .section-head .n { padding-top: 10px; }
}

/* ═══════════ 01 — POLAROIDS ═══════════ */
.polaroid-wall {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px; padding: 20px 0;
}
.polaroid {
    background: #fff;
    padding: 14px 14px 50px;
    box-shadow: 0 2px 6px rgba(31,20,10,0.08), 0 20px 40px rgba(31,20,10,0.12);
    border-radius: 3px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.2,0.9,0.3,1.3), box-shadow 0.4s;
    cursor: pointer;
    display: flex; flex-direction: column;
}
.polaroid:nth-child(1) { transform: rotate(-2.5deg) translateY(10px); }
.polaroid:nth-child(2) { transform: rotate(1.5deg); }
.polaroid:nth-child(3) { transform: rotate(-1deg) translateY(20px); }
.polaroid:nth-child(4) { transform: rotate(2deg); }
.polaroid:nth-child(5) { transform: rotate(2deg) translateY(5px); }
.polaroid:nth-child(6) { transform: rotate(-2deg); }
.polaroid:nth-child(7) { transform: rotate(1deg) translateY(15px); }
.polaroid:nth-child(8) { transform: rotate(-1.5deg); }
.polaroid:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.03);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(31,20,10,0.1), 0 40px 80px rgba(31,20,10,0.2);
}
.polaroid .frame {
    width: 100%; aspect-ratio: 1;
    background: #2a1810;
    overflow: hidden; position: relative;
}
.polaroid .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid .caption {
    position: absolute; bottom: 12px; left: 0; right: 0;
    text-align: center; padding: 0 14px;
}
.polaroid .caption .label {
    font-family: 'Noto Sans', cursive;
    font-size: 14px; font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 2px; font-style: italic;
}
.polaroid .caption .meta {
    font-size: 9px; letter-spacing: 0.2em;
    color: var(--ink-dim);
    text-transform: uppercase; font-weight: 700;
}
.polaroid::before {
    content: ''; position: absolute;
    top: -6px; left: 50%; transform: translateX(-50%);
    width: 14px; height: 14px;
    background: var(--accent); border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3), inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.3);
    z-index: 2;
}
.polaroid:nth-child(2n)::before { background: var(--accent-3); }
.polaroid:nth-child(3n)::before { background: var(--accent-2); }
.polaroid:nth-child(5n)::before { background: var(--accent-4); }

@media (max-width: 1100px) {
    .polaroid-wall { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }
}
@media (max-width: 720px) {
    .polaroid-wall { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
    .polaroid { padding: 8px 8px 36px; }
    .polaroid:nth-child(1) { transform: rotate(-1.5deg) translateY(6px); }
    .polaroid:nth-child(2) { transform: rotate(1deg); }
    .polaroid:nth-child(3) { transform: rotate(-0.5deg) translateY(10px); }
    .polaroid:nth-child(4) { transform: rotate(1.5deg); }
    .polaroid:nth-child(5) { transform: rotate(1.5deg) translateY(4px); }
    .polaroid:nth-child(6) { transform: rotate(-1deg); }
    .polaroid:nth-child(7) { transform: rotate(0.8deg) translateY(8px); }
    .polaroid:nth-child(8) { transform: rotate(-1deg); }
    .polaroid .caption .label { font-size: 11px; }
    .polaroid .caption .meta { font-size: 8px; }
}
@media (max-width: 420px) {
    .polaroid-wall { grid-template-columns: repeat(2, 1fr); gap: 20px 10px; }
    .polaroid {
        transform: none !important;
        max-width: 100%;
        margin: 0;
        padding: 7px 7px 32px;
    }
    .polaroid:hover { transform: translateY(-4px) !important; }
    .polaroid .caption { padding: 0 8px; }
    .polaroid .caption .label { font-size: 10.5px; }
    .polaroid .caption .meta { font-size: 7.5px; letter-spacing: 0.15em; }
    .polaroid::before { width: 10px; height: 10px; top: -4px; }
}

/* ═══════════ MODAL (lightbox) ═══════════ */
.photo-modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 5, 2, 0.92);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 24px;
}
.photo-modal.open { opacity: 1; pointer-events: auto; }
.photo-modal .modal-inner {
    position: relative;
    background: #fff;
    padding: 20px 20px 70px;
    border-radius: 4px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6);
    max-width: min(90vw, 820px);
    max-height: 92vh;
    display: flex; flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2,0.9,0.3,1.3);
}
.photo-modal.open .modal-inner { transform: scale(1) translateY(0); }
.photo-modal .modal-inner::before {
    content: ''; position: absolute;
    top: -8px; left: 50%; transform: translateX(-50%);
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.3);
}
.photo-modal img {
    width: 100%; max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #1a0f06;
    border-radius: 2px;
}
.photo-modal .modal-caption {
    padding: 20px 10px 0;
    text-align: center;
}
.photo-modal .modal-caption .label {
    font-size: 20px; font-weight: 800;
    color: var(--ink);
    font-style: italic;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.photo-modal .modal-caption .meta {
    font-size: 11px; letter-spacing: 0.25em;
    color: var(--ink-dim);
    text-transform: uppercase; font-weight: 700;
}
.photo-modal .close-btn {
    position: absolute;
    top: -20px; right: -20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900;
    color: var(--ink);
    transition: transform 0.2s, background 0.2s;
}
.photo-modal .close-btn:hover {
    background: var(--accent); color: #fff;
    transform: rotate(90deg) scale(1.1);
}
.photo-modal .nav-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 900;
    color: var(--ink);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}
.photo-modal .nav-btn:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.08); }
.photo-modal .nav-prev { left: -70px; }
.photo-modal .nav-next { right: -70px; }

@media (max-width: 900px) {
    .photo-modal .close-btn { top: 10px; right: 10px; }
}
@media (max-width: 720px) {
    .photo-modal { padding: 16px; }
    .photo-modal .modal-inner {
        padding: 16px 16px 80px;
        max-height: 95vh;
    }
    .photo-modal img { max-height: 55vh; }
    .photo-modal .modal-caption { padding: 16px 10px 0; }
    .photo-modal .modal-caption .label { font-size: 17px; }
    .photo-modal .nav-btn {
        top: auto;
        bottom: 18px;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .photo-modal .nav-prev { left: auto; right: calc(50% + 10px); }
    .photo-modal .nav-next { right: auto; left: calc(50% + 10px); }
    .photo-modal .nav-btn:hover { transform: scale(1.08); }
    .photo-modal .close-btn {
        top: 10px; right: 10px;
        width: 40px; height: 40px;
        font-size: 18px;
    }
}
@media (max-width: 420px) {
    .photo-modal .modal-inner { padding: 12px 12px 72px; }
    .photo-modal img { max-height: 50vh; }
    .photo-modal .nav-btn {
        width: 40px; height: 40px;
        font-size: 18px; bottom: 16px;
    }
    .photo-modal .nav-prev { right: calc(50% + 8px); }
    .photo-modal .nav-next { left: calc(50% + 8px); }
}

/* ═══════════ 02 — SPLIT EDITORIAL ═══════════ */
.split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
    align-items: center;
}
.split-text { max-width: 520px; }
.split-text .quote {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 300; font-style: italic;
    color: var(--ink); line-height: 1.4;
    margin-bottom: 28px; letter-spacing: -0.015em;
    border-left: 3px solid var(--accent);
    padding-left: 24px;
}
.split-text .body {
    color: var(--ink-soft);
    font-size: 1rem; line-height: 1.75;
    margin-bottom: 36px;
}
.split-text .body em { color: var(--accent); font-style: italic; font-weight: 600; }

.stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    padding: 24px 20px 24px 0;
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; padding-right: 0; padding-left: 20px; }
.stat:nth-child(2) { padding-left: 20px; }
.stat .big { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat:nth-child(1) .big { color: var(--accent); }
.stat:nth-child(2) .big { color: var(--accent-3); }
.stat:nth-child(3) .big { color: var(--accent-4); }
.stat .lbl { font-size: 10px; letter-spacing: 0.2em; color: var(--ink-dim); font-weight: 700; text-transform: uppercase; margin-top: 8px; }

/* VIDEO FRAME */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 24px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-ph {
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 50% 40%, rgba(224,74,31,0.1), transparent 60%),
        linear-gradient(145deg, var(--surface-2), var(--bg-soft));
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
}
.play-ring {
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 0 0 10px rgba(224,74,31,0.15),
        0 0 60px rgba(224,74,31,0.25),
        0 20px 40px rgba(31,20,10,0.2);
    animation: ringPulse 2.5s ease-in-out infinite;
}
@keyframes ringPulse {
    0%,100% { box-shadow: 0 0 0 10px rgba(224,74,31,0.15), 0 0 60px rgba(224,74,31,0.25), 0 20px 40px rgba(31,20,10,0.2); }
    50%     { box-shadow: 0 0 0 20px rgba(224,74,31,0.05), 0 0 80px rgba(224,74,31,0.4), 0 20px 40px rgba(31,20,10,0.2); }
}
.play-ring::after {
    content: ''; width: 0; height: 0;
    border-left: 20px solid #fff;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    margin-left: 5px;
}
.video-meta {
    position: absolute; top: 20px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 2;
}
.video-rec {
    display: flex; align-items: center; gap: 8px;
    background: #fff; padding: 7px 12px;
    border-radius: 999px; border: 1px solid var(--line);
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.video-rec::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.3);opacity:0.6} }
.video-time {
    background: var(--ink); color: #fff;
    padding: 7px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
    font-family: ui-monospace, Menlo, monospace;
}
.video-ph-title {
    position: absolute; bottom: 26px; left: 30px; right: 30px;
    text-align: center;
}
.video-ph-title .t { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.video-ph-title .f { font-size: 11px; color: var(--ink-dim); font-family: ui-monospace, Menlo, monospace; }

.split.reverse { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 900px) {
    .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse .video-frame { order: 1; }
    .split.reverse .split-text { order: 0; }
    .video-frame { max-width: 700px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   PLAYLIST — ANCHO Y ALTO FIJOS (nunca cambia con el título)
   ═══════════════════════════════════════════════════════════════════ */

.playlist-wrap {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 48px;
}

.now-playing {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    position: sticky; top: 120px;
    align-self: start;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 380px;
    min-width: 0;
    box-sizing: border-box;
    min-height: 620px;
    display: flex;
    flex-direction: column;
}
.now-playing > * {
    min-width: 0;
    max-width: 100%;
}

.cover-art {
    width: 100%; aspect-ratio: 1; border-radius: 20px;
    background:
        radial-gradient(circle at 30% 30%, var(--accent-3), transparent 55%),
        radial-gradient(circle at 70% 70%, var(--accent), transparent 55%),
        linear-gradient(135deg, var(--accent-2), var(--ink));
    display: flex; align-items: center; justify-content: center;
    position: relative; margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(178,31,109,0.3), inset 0 0 0 1px rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.cover-art .vinyl {
    width: 70%; aspect-ratio: 1; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, rgba(26,15,6,0.9) 0, rgba(26,15,6,0.9) 1px, rgba(26,15,6,0.75) 1px, rgba(26,15,6,0.75) 3px);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    animation: spinVinyl 20s linear infinite;
}
.cover-art .vinyl::after { content: ''; width: 28%; height: 28%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px rgba(224,74,31,0.6); }
@keyframes spinVinyl { to { transform: rotate(360deg); } }

/* TÍTULO — altura FIJA de 2 líneas, nunca ensancha */
.now-title {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    color: var(--ink);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: 2.5em;
}

/* SUBTÍTULO — altura FIJA de 1 línea */
.now-sub {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--ink-dim);
    margin-bottom: 22px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 1.3em;
}

.progress-bar { width: 100%; height: 4px; background: var(--line); border-radius: 999px; margin-bottom: 8px; overflow: hidden; }
.progress-bar .fill { width: 35%; height: 100%; background: var(--accent); }
.progress-time { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); font-family: ui-monospace, Menlo, monospace; margin-bottom: 22px; }
.controls { display: flex; justify-content: space-around; align-items: center; padding-top: 4px; }
.controls button {
    background: none; border: none; color: var(--ink); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    transition: all 0.2s; opacity: 0.7;
}
.controls button:hover { opacity: 1; background: var(--bg-soft); }
.controls svg { width: 20px; height: 20px; }
.controls .play-main {
    width: 62px; height: 62px;
    background: var(--accent); color: #fff; opacity: 1;
    box-shadow: 0 10px 30px rgba(224,74,31,0.35);
}
.controls .play-main:hover { transform: scale(1.05); background: var(--accent-light); }
.controls .play-main svg { width: 26px; height: 26px; }

/* Botones PDF */
.pdf-buttons {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 24px;
}
.pdf-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.pdf-btn svg { width: 18px; height: 18px; }
.pdf-btn .arr { font-size: 11px; opacity: 0.6; margin-left: 4px; }
.pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.pdf-btn.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pdf-btn.primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 10px 24px rgba(224,74,31,0.35);
}

/* TRACK LIST */
.track-list-modern {
    display: flex; flex-direction: column; gap: 2px;
    max-height: 680px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    min-width: 0;
}
.track-list-modern::-webkit-scrollbar { width: 6px; }
.track-list-modern::-webkit-scrollbar-track { background: transparent; }
.track-list-modern::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.track-list-modern::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.list-head {
    display: grid; grid-template-columns: 40px 1fr 60px;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    font-size: 10px; letter-spacing: 0.25em; color: var(--ink-dim); font-weight: 700; text-transform: uppercase;
    position: sticky; top: 0; background: var(--bg-soft); z-index: 1;
}

.track-m {
    display: grid; grid-template-columns: 40px 1fr 60px;
    padding: 14px 20px;
    padding-left: 18px;
    gap: 14px;
    align-items: center;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.25s;
    min-height: 68px;
    border-left: 2px solid transparent;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.track-m > * { min-width: 0; }
.track-m:hover { background: var(--surface-2); }
.track-m.playing {
    background: linear-gradient(90deg, rgba(224,74,31,0.1), transparent);
    border-left: 2px solid var(--accent);
    padding-left: 18px;
}
.track-m .n {
    color: var(--ink-dim);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
}
.track-m.playing .n { color: var(--accent); }
.track-m > div:nth-child(2) {
    min-width: 0;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.track-m .nm {
    font-weight: 700; font-size: 0.98rem; color: var(--ink);
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track-m .ar {
    font-size: 0.85rem; color: var(--ink-dim); margin-top: 2px;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.track-m .du {
    font-size: 0.85rem; color: var(--ink-dim);
    font-family: ui-monospace, Menlo, monospace;
    text-align: right;
    white-space: nowrap;
}

.eq {
    display: inline-flex; gap: 2px; align-items: flex-end;
    height: 14px;
    flex-shrink: 0;
}
.eq span { width: 2px; background: var(--accent); border-radius: 1px; animation: bar 0.9s ease-in-out infinite; }
.eq span:nth-child(1) { animation-delay: 0s;   height: 60%;  }
.eq span:nth-child(2) { animation-delay: 0.2s; height: 100%; }
.eq span:nth-child(3) { animation-delay: 0.4s; height: 80%;  }
@keyframes bar { 0%,100%{transform: scaleY(0.4)} 50%{transform: scaleY(1)} }

@media (max-width: 1100px) {
    .playlist-wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .now-playing {
        position: static;
        max-width: 420px;
        margin: 0 auto;
        min-height: 560px;
    }
}
@media (max-width: 720px) {
    .list-head, .track-m {
        grid-template-columns: 30px 1fr 55px;
        padding: 12px 14px;
    }
    .track-m,
    .track-m.playing {
        padding: 12px 14px;
        padding-left: 14px;
    }
    .track-m { min-height: 62px; }
    .track-m .nm { font-size: 0.9rem; }
    .track-list-modern { max-height: 500px; }
    .pdf-btn { font-size: 12px; padding: 10px 16px; }

    .now-playing {
        padding: 24px;
        max-width: 100%;
        min-height: 520px;
    }
    .now-title { font-size: 1.3rem; }
}
@media (max-width: 480px) {
    .track-m,
    .track-m.playing {
        padding: 10px 12px;
        padding-left: 12px;
    }
    .track-m { min-height: 58px; }
    .now-playing {
        padding: 20px;
        min-height: 480px;
    }
    .now-title { font-size: 1.2rem; }
}

/* ═══════════ FOOTER ═══════════ */
footer {
    background: var(--ink);
    padding: 100px 32px 50px;
    color: rgba(255,255,255,0.9);
    position: relative; overflow: hidden;
}
.footer-glow {
    position: absolute; top: -150px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, var(--accent) 0%, transparent 60%);
    opacity: 0.3; filter: blur(60px);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    gap: clamp(20px, 5vw, 70px);
    flex-wrap: nowrap;
}
.footer-flower {
    width: clamp(90px, 13vw, 180px);
    height: auto;
    flex-shrink: 0;
    animation: floatFlower 5s ease-in-out infinite;
}
.footer-flower.right {
    transform: scaleX(-1);
    animation: floatFlowerR 5s ease-in-out infinite;
    animation-delay: -2.5s;
}
@keyframes floatFlower {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}
@keyframes floatFlowerR {
    0%,100% { transform: scaleX(-1) translateY(0); }
    50%     { transform: scaleX(-1) translateY(-10px); }
}
.footer-quote {
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    font-weight: 300; font-style: italic;
    text-align: center;
    max-width: 600px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: rgba(255,255,255,0.95);
    flex: 1 1 auto;
}
.footer-quote em { color: var(--accent-light); font-weight: 400; font-style: italic; }

@media (max-width: 720px) {
    .footer-inner { gap: 16px; }
    .footer-flower { width: 70px; }
    .footer-quote {
        font-size: 1.4rem;
        line-height: 1.35;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .footer-inner {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-flower { width: 55px; }
    .footer-quote {
        font-size: 1.25rem;
        line-height: 1.4;
        flex: 1 1 100%;
        order: 2;
    }
    .footer-flower.right { order: 3; }
}
@media (max-width: 360px) {
    .footer-flower { width: 48px; }
    .footer-quote { font-size: 1.15rem; }
}

/* ═══════════ ANIMATIONS GENERALES ═══════════ */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.2,0.9,0.3,1), transform 0.9s cubic-bezier(0.2,0.9,0.3,1);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal, .hero-anim { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Añadir al FINAL de tu dia.css
   Asegura que los <video> dentro de .video-frame se vean perfectos.
   ═══════════════════════════════════════════════════════════════════ */

.video-frame {
    background: #1a0f06;             /* fondo oscuro antes de que cargue el poster */
}
.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #1a0f06;
    border-radius: inherit;          /* respeta las esquinas redondeadas del frame */
}
/* Oculta el placeholder decorativo si por error quedó dentro del frame */
.video-frame video + .video-ph,
.video-frame video ~ .video-ph {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN DE CALAVERITAS — Galería con lightbox
   Agrega al final de tu dia.css
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN DE CALAVERITAS — Galería con lightbox multipágina
   Agrega al final de tu dia.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── GRID DE MINIATURAS ─── */
.calaveritas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 20px 0;
}

.calaverita-item {
    position: relative;
    background: #000;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 28px rgba(31, 20, 10, 0.12);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1),
                box-shadow 0.4s ease;
}
.calaverita-item:hover,
.calaverita-item:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(31, 20, 10, 0.25);
    outline: none;
}
.calaverita-item:focus-visible {
    box-shadow: 0 24px 50px rgba(31, 20, 10, 0.25),
                0 0 0 3px var(--accent, #E04A1F);
}

.calaverita-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.calaverita-item:hover img {
    transform: scale(1.06);
}

/* Overlay sutil al pasar el mouse */
.calaverita-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 55%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.calaverita-item:hover::after { opacity: 1; }

/* Icono de "expandir" */
.calaverita-item::before {
    content: '⤢';
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.92);
    color: #1F140A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.calaverita-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* ─── Badge que indica cuántas páginas tiene ─── */
.calaverita-pages-badge {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    text-transform: uppercase;
}
.calaverita-pages-badge::before {
    content: '📄';
    font-size: 11px;
}

/* ─── RESPONSIVE del grid ─── */
@media (max-width: 1100px) {
    .calaveritas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}
@media (max-width: 720px) {
    .calaveritas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .calaverita-item { border-radius: 10px; }
    .calaverita-item::before {
        opacity: 1;                 /* en móvil siempre visible */
        transform: scale(1);
        width: 28px; height: 28px;
        font-size: 13px;
    }
    .calaverita-pages-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}
@media (max-width: 420px) {
    .calaveritas-grid { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL / LIGHTBOX con páginas apiladas
   ═══════════════════════════════════════════════════════════════════ */
.calaverita-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 5, 2, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 24px;
}
.calaverita-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.calaverita-modal-inner {
    position: relative;
    max-width: min(90vw, 720px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    width: 100%;
}
.calaverita-modal.open .calaverita-modal-inner {
    transform: scale(1);
}

/* Contenedor de páginas con scroll vertical si hay varias */
.calaverita-pages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;      /* salta de página en página */
    border-radius: 10px;
}
.calaverita-pages::-webkit-scrollbar { width: 8px; }
.calaverita-pages::-webkit-scrollbar-track { background: transparent; }
.calaverita-pages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.calaverita-pages::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.calaverita-pages img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
}

.calaverita-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contador de páginas (ej. "1 / 3") */
.calaverita-page-counter {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(224, 74, 31, 0.5);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: none;
}

/* Botón cerrar */
.calaverita-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    color: #1F140A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    z-index: 3;
}
.calaverita-close:hover {
    background: #E04A1F;
    color: #fff;
    transform: rotate(90deg) scale(1.08);
}

/* Botones navegación entre CALAVERITAS (no entre páginas) */
.calaverita-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    color: #1F140A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    z-index: 3;
}
.calaverita-nav:hover {
    background: #E04A1F;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.calaverita-prev { left: -70px; }
.calaverita-next { right: -70px; }

/* ─── MODAL RESPONSIVE ─── */
@media (max-width: 900px) {
    .calaverita-prev { left: 8px; }
    .calaverita-next { right: 8px; }
    .calaverita-close { top: 8px; right: 8px; }
}
@media (max-width: 640px) {
    .calaverita-modal { padding: 16px; }
    .calaverita-pages { max-height: 72vh; }
    .calaverita-pages img { max-height: 72vh; }
    .calaverita-nav {
        top: auto;
        bottom: -58px;
        transform: none;
        width: 44px; height: 44px;
        font-size: 22px;
    }
    .calaverita-prev { left: calc(50% - 54px); }
    .calaverita-next { right: calc(50% - 54px); }
    .calaverita-nav:hover { transform: scale(1.08); }
    .calaverita-close {
        top: 8px; right: 8px;
        width: 40px; height: 40px;
        font-size: 18px;
    }
    .calaverita-caption {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIÓN DE OFRENDAS — Galería con lightbox multipágina
   Clases independientes de las de calaveritas (prefijo "ofrenda-")
   Agrega al final de tu dia.css
   ═══════════════════════════════════════════════════════════════════ */

/* ─── GRID DE MINIATURAS ─── */
.ofrendas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0;
}

.ofrenda-item {
    position: relative;
    background: #000;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    font-family: inherit;              /* cuadrada para fotos de altares */
    box-shadow: 0 10px 28px rgba(31, 20, 10, 0.12);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.1),
                box-shadow 0.4s ease;
}
.ofrenda-item:hover,
.ofrenda-item:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(31, 20, 10, 0.25);
    outline: none;
}
.ofrenda-item:focus-visible {
    box-shadow: 0 24px 50px rgba(31, 20, 10, 0.25),
                0 0 0 3px var(--accent, #E04A1F);
}

.ofrenda-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.ofrenda-item:hover img {
    transform: scale(1.08);
}

/* Overlay con título */
.ofrenda-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 45%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.ofrenda-item:hover::after { opacity: 1; }

/* Título que aparece al hover */
.ofrenda-item-title {
    position: absolute;
    bottom: 16px; left: 14px; right: 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}
.ofrenda-item:hover .ofrenda-item-title,
.ofrenda-item:focus-visible .ofrenda-item-title {
    opacity: 1;
    transform: translateY(0);
}

/* Icono "expandir" */
.ofrenda-item::before {
    content: '⤢';
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    background: rgba(255, 255, 255, 0.92);
    color: #1F140A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.ofrenda-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Badge "N fotos" para ofrendas con múltiples imágenes */
.ofrenda-pages-badge {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    text-transform: uppercase;
}
.ofrenda-pages-badge::before {
    content: '📷';
    font-size: 11px;
}

/* ─── RESPONSIVE del grid ─── */
@media (max-width: 1100px) {
    .ofrendas-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 720px) {
    .ofrendas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .ofrenda-item { border-radius: 10px; }
    .ofrenda-item::before {
        opacity: 1;                 /* en móvil siempre visible */
        transform: scale(1);
        width: 28px; height: 28px;
        font-size: 13px;
    }
    .ofrenda-item-title { font-size: 11px; bottom: 10px; }
    .ofrenda-pages-badge {
        font-size: 9px;
        padding: 4px 8px;
    }
}
@media (max-width: 420px) {
    .ofrendas-grid { gap: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL / LIGHTBOX (igual que el de calaveritas pero con prefijo propio)
   ═══════════════════════════════════════════════════════════════════ */
.ofrenda-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 5, 2, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 24px;
}
.ofrenda-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.ofrenda-modal-inner {
    position: relative;
    max-width: min(92vw, 1000px);     /* más ancho que calaveritas (fotos horizontales) */
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.3);
    width: 100%;
}
.ofrenda-modal.open .ofrenda-modal-inner {
    transform: scale(1);
}

.ofrenda-pages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    border-radius: 10px;
}
.ofrenda-pages::-webkit-scrollbar { width: 8px; }
.ofrenda-pages::-webkit-scrollbar-track { background: transparent; }
.ofrenda-pages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.ofrenda-pages::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.ofrenda-pages img {
    width: 100%;
    max-height: 82vh;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    flex-shrink: 0;
}

.ofrenda-caption {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofrenda-page-counter {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(224, 74, 31, 0.5);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: none;
}

/* Cerrar */
.ofrenda-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    color: #1F140A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    z-index: 3;
}
.ofrenda-close:hover {
    background: #E04A1F;
    color: #fff;
    transform: rotate(90deg) scale(1.08);
}

/* Navegación entre OFRENDAS */
.ofrenda-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    color: #1F140A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    z-index: 3;
}
.ofrenda-nav:hover {
    background: #E04A1F;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}
.ofrenda-prev { left: -70px; }
.ofrenda-next { right: -70px; }

/* ─── MODAL RESPONSIVE ─── */
@media (max-width: 900px) {
    .ofrenda-prev { left: 8px; }
    .ofrenda-next { right: 8px; }
    .ofrenda-close { top: 8px; right: 8px; }
}
@media (max-width: 640px) {
    .ofrenda-modal { padding: 16px; }
    .ofrenda-pages { max-height: 72vh; }
    .ofrenda-pages img { max-height: 72vh; }
    .ofrenda-nav {
        top: auto;
        bottom: -58px;
        transform: none;
        width: 44px; height: 44px;
        font-size: 22px;
    }
    .ofrenda-prev { left: calc(50% - 54px); }
    .ofrenda-next { right: calc(50% - 54px); }
    .ofrenda-nav:hover { transform: scale(1.08); }
    .ofrenda-close {
        top: 8px; right: 8px;
        width: 40px; height: 40px;
        font-size: 18px;
    }
    .ofrenda-caption {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   FIX pequeño — iframe de YouTube dentro de .video-frame
   Agrega al final de tu dia.css solo si el iframe no se ve bien.
   ═══════════════════════════════════════════════════════════════════ */

/* Si .video-frame tenía reglas que ocultaban hasta que .video-ready,
   el iframe no las dispara. Al poner la clase "video-ready" en el HTML
   ya queda visible, pero si prefieres que SIEMPRE se vea el iframe,
   usa esta regla: */
.video-frame:has(iframe) {
    opacity: 1 !important;
    visibility: visible !important;
}

/* El iframe llena el frame respetando el aspect-ratio del .video-frame */
.video-frame iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: inherit;
    background: #000;
}