/* === Oliver Tree Memorial — Elite Design === */

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

:root {
    --rosa: #e84393;
    --rosa-soft: #fd79a8;
    --azul: #2d3adf;
    --azul-soft: #6c7ff7;
    --rojo: #d6263b;
    --crema: #efe7d2;
    --bg: #080810;
    --surface: #0e0e18;
    --card: #14142a;
    --text: #eaeaea;
    --text-dim: #999;
    --text-muted: #555;
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Inter', sans-serif;
    --display: 'Bebas Neue', sans-serif;
    /* Patrón del suéter "Life Goes On": rojo / crema / azul en diagonal */
    --lgo: repeating-linear-gradient(
        45deg,
        var(--rojo) 0, var(--rojo) 18px,
        var(--crema) 18px, var(--crema) 25px,
        var(--azul) 25px, var(--azul) 43px,
        var(--crema) 43px, var(--crema) 50px
    );
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 800px; }

/* Títulos de sección reutilizables */
.sec-titulo {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.sec-titulo.center { text-align: center; }
.sec-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 50px;
}
.sec-sub.center { text-align: center; }

/* === CINTA / RAYAS "LIFE GOES ON" === */
.lgo-ribbon {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--lgo);
    z-index: 10000;
    opacity: 0.9;
}

.lgo-stripe {
    height: 8px;
    width: 120px;
    background: var(--lgo);
    border-radius: 4px;
}

.hero-stripe {
    margin: 0 auto 28px;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.hero.loaded .hero-stripe { opacity: 1; transform: scaleX(1); transition-delay: 0.75s; }
.cierre-stripe { margin: 0 auto 40px; }

/* === LOADER === */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--azul), var(--rosa));
    animation: load 1.2s ease forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    background-image: url('img/ot-live1.jpg');
    background-size: cover;
    background-position: 60% center;
    background-color: var(--bg);
    transform: scale(1.08);
    transition: transform 9s ease-out;
}

.hero.loaded .hero-img {
    transform: scale(1);
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 2;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8,8,16,0.55) 0%, rgba(8,8,16,0.25) 35%, rgba(8,8,16,0.92) 100%),
        linear-gradient(115deg, rgba(45,58,223,0.45) 0%, transparent 45%, rgba(232,67,147,0.4) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 0 20px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 20px;
    margin-bottom: 40px;
    font-weight: 400;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.hero.loaded .hero-tag {
    opacity: 1;
    transform: none;
    transition-delay: 0.1s;
}

.hero-nombre {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(4.5rem, 14vw, 11rem);
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 28px;
    text-shadow: 0 4px 50px rgba(0,0,0,0.6);
}

.nombre-linea {
    display: block;
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    filter: blur(6px);
}
.hero.loaded .nombre-linea {
    animation: heroReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}
.hero.loaded .nombre-linea:nth-child(2) { animation-delay: 0.55s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--text);
    font-weight: 200;
    margin-bottom: 26px;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.hero.loaded .hero-meta { opacity: 1; transition-delay: 0.9s; }

.meta-divider {
    width: 40px;
    height: 1px;
    background: var(--rosa);
}

.hero-cita {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.2rem;
    color: #ddd;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1.4s ease, transform 1.4s ease;
}
.hero.loaded .hero-cita { opacity: 1; transform: none; transition-delay: 1.2s; }

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero.loaded .hero-scroll { opacity: 1; transition-delay: 1.8s; }

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #bbb;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--rosa), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* === CONTEXTO === */
.contexto {
    padding: 90px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contexto-fecha {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contexto-texto {
    font-family: var(--serif);
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-dim);
    font-weight: 300;
}

/* === SOBRE === */
.sobre {
    padding: 140px 0;
}

.sobre-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.sobre-texto h2 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.sobre-intro {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rosa);
    margin-bottom: 30px !important;
}

.sobre-texto p {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 300;
}

.sobre-texto p:last-child {
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.4rem;
    font-style: italic;
    margin-top: 30px;
}

/* === FOTO FRAMES === */
.foto-frame {
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    background: var(--card);
}

.foto-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

.foto-frame:hover img { transform: scale(1.04); }

.foto-frame.grande {
    aspect-ratio: 4/5;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* acento de rayas LGO en la foto principal */
.sobre-foto { position: relative; }
.sobre-foto::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 30px;
    bottom: 30px;
    width: 8px;
    border-radius: 4px;
    background: var(--lgo);
    z-index: 2;
}

/* === GALERIA HORIZONTAL SCROLL === */
.galeria-full {
    padding: 60px 0 80px;
    overflow: hidden;
}

.galeria-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
}

.galeria-head h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.5px;
}

.galeria-hint {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.galeria-scroll {
    display: flex;
    gap: 16px;
    padding: 0 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.galeria-scroll::-webkit-scrollbar { display: none; }

.gal-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.gal-item .foto-frame.horizontal { width: 540px; height: 340px; }
.gal-item .foto-frame.vertical { width: 280px; height: 420px; }

/* === MAYORES EXITOS === */
.hits-sec {
    padding: 140px 0;
}

.hits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 30px;
}

.hit-card {
    position: relative;
    padding: 48px 40px 40px;
    background: linear-gradient(160deg, rgba(45,58,223,0.10), rgba(232,67,147,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.hit-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232,67,147,0.35);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

.hit-stripe {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 26px;
    opacity: 0.95;
}

.hit-num {
    position: absolute;
    top: 26px;
    right: 32px;
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
    color: rgba(255,255,255,0.08);
}

.hit-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hit-meta {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--azul-soft);
    margin-bottom: 16px;
}

.hit-stat {
    font-family: var(--display);
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--rosa-soft);
    margin-bottom: 18px;
}

.hit-desc {
    color: var(--text-dim);
    font-weight: 300;
    font-size: 0.98rem;
    margin-bottom: 28px;
}

.hit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    padding: 11px 24px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 40px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hit-link:hover {
    background: var(--rosa);
    border-color: var(--rosa);
    color: #fff;
}

/* === CANCIONES === */
.songs-sec {
    padding: 130px 0;
    background: var(--surface);
}

.songs-list {
    list-style: none;
    counter-reset: none;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.song a {
    display: grid;
    grid-template-columns: 60px 1fr auto auto 40px;
    align-items: center;
    gap: 24px;
    padding: 22px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s ease, padding-left 0.3s ease;
}

.song a:hover {
    background: linear-gradient(90deg, rgba(232,67,147,0.06), transparent);
    padding-left: 22px;
}

.song-num {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}
.song a:hover .song-num { color: var(--rosa); }

.song-title {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
}

.song-year {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--azul-soft);
}

.song-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

.song-play {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: right;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s, transform 0.3s, color 0.3s;
}
.song a:hover .song-play {
    opacity: 1;
    transform: translateX(0);
    color: var(--rosa);
}

/* === DISCOGRAFIA === */
.disco-sec {
    padding: 140px 0;
}

.disco-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.disco-card {
    position: relative;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.disco-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--lgo);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.disco-card:hover {
    border-color: rgba(232, 67, 147, 0.25);
    transform: translateY(-4px);
}
.disco-card:hover::before { opacity: 1; }

.disco-card-final {
    border-color: rgba(232,67,147,0.15);
    background: linear-gradient(160deg, rgba(232,67,147,0.06), var(--surface));
}
.disco-card-final .disco-year { color: var(--rosa-soft); }

.disco-year {
    font-family: var(--display);
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--azul-soft);
}

.disco-card h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 6px 0 10px;
}

.disco-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 300;
}

/* === TIMELINE === */
.timeline-sec {
    padding: 140px 0;
    background: var(--surface);
}

.tl {
    position: relative;
    padding-left: 50px;
    margin-top: 30px;
}

.tl::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--azul), var(--rosa));
    opacity: 0.5;
}

.tl-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tl-item.visible {
    opacity: 1;
    transform: none;
}

.tl-marker {
    position: absolute;
    left: -42px;
    top: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--azul-soft);
    box-shadow: 0 0 0 3px var(--surface);
}

.tl-item.final .tl-marker {
    background: var(--rosa);
    box-shadow: 0 0 14px rgba(232,67,147,0.5), 0 0 0 3px var(--surface);
}

.tl-year {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--azul-soft);
    text-transform: uppercase;
    font-weight: 500;
}

.tl-item.final .tl-year { color: var(--rosa); }

.tl-body h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 4px 0 6px;
}

.tl-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* === VIDEO === */
.video-sec {
    padding: 110px 0;
}

.video-sec .sec-titulo { margin-bottom: 40px; }

.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* === SPOTIFY === */
.spotify-sec {
    padding: 120px 0;
    background: var(--surface);
}

.spotify-sec .sec-sub { margin-bottom: 40px; }

.spotify-frame {
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border-radius: 14px;
    overflow: hidden;
}

.spotify-frame iframe { display: block; }

/* === MURO DE TRIBUTOS === */
.tributos-sec {
    padding: 140px 0;
}

.tributos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.tributo {
    position: relative;
    padding: 34px 30px 30px;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.tributo:hover {
    transform: translateY(-4px);
    border-color: rgba(108,127,247,0.3);
}

.tributo-stripe {
    width: 56px;
    height: 5px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.tributo blockquote {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    color: var(--text);
    margin-bottom: 18px;
}

.tributo figcaption {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* === ERAS === */
.eras-sec {
    padding: 140px 0;
    background: var(--surface);
}

.eras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.era-card {
    position: relative;
    padding: 32px 28px 28px;
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.era-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.era-accent {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.era-years {
    font-family: var(--display);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.era-name {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 6px 0 14px;
}

.era-look {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--azul-soft);
    margin-bottom: 16px;
    line-height: 1.5;
}

.era-desc {
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.7;
}

/* === WALLPAPER GENERATOR === */
.wallpaper-sec {
    padding: 140px 0;
}

.wp-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.wp-options {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.wp-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wp-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.wp-select {
    appearance: none;
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 14px 18px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wp-select:focus {
    outline: none;
    border-color: var(--rosa);
}

.wp-colors {
    display: flex;
    gap: 10px;
}

.wp-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.wp-color:hover { transform: scale(1.15); }
.wp-color.active { border-color: #fff; }

.wp-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 40px;
    padding: 14px 28px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.wp-btn:hover {
    background: var(--rosa);
    border-color: var(--rosa);
    color: #fff;
}

.wp-preview-wrap {
    display: flex;
    justify-content: center;
}

.wp-preview-wrap canvas {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* === VELAS === */
.velas-sec {
    padding: 140px 0;
    background: var(--surface);
    text-align: center;
}

.velas-counter {
    font-family: var(--display);
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 30px;
}

.velas-counter span {
    color: #ffb347;
    font-size: 2rem;
}

.vela-encender {
    display: inline-block;
    background: transparent;
    color: #ffb347;
    border: 1px solid rgba(255,179,71,0.4);
    border-radius: 40px;
    padding: 14px 32px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
    margin-bottom: 40px;
}

.vela-encender:hover {
    background: rgba(255,179,71,0.15);
    border-color: #ffb347;
    transform: scale(1.05);
}

.vela-encender:active { transform: scale(0.97); }

.velas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-height: 320px;
    overflow-y: auto;
}

.vela {
    width: 22px;
    height: 52px;
    position: relative;
    animation: velaAppear 0.5s ease forwards;
}

@keyframes velaAppear {
    from { opacity: 0; transform: scale(0.5) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.vela-body {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, #ffe0b2, #e6c580);
    border-radius: 2px 2px 1px 1px;
}

.vela-llama {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 16px;
    background: radial-gradient(ellipse at 50% 90%, #ffd54f 0%, #ff9800 40%, #ff5722 70%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: llama 0.8s ease-in-out infinite alternate;
    box-shadow: 0 0 8px 2px rgba(255,152,0,0.3);
}

@keyframes llama {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 1; }
    50% { transform: translateX(-50%) scaleY(1.15) scaleX(0.85); opacity: 0.9; }
    100% { transform: translateX(-50%) scaleY(0.9) scaleX(1.1); opacity: 1; }
}

.vela-glow {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(255,183,77,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: llama 1.2s ease-in-out infinite alternate;
}

/* === CIERRE === */
.cierre {
    padding: 160px 0;
    text-align: center;
    background: linear-gradient(170deg, rgba(45,58,223,0.16) 0%, var(--bg) 40%, rgba(232,67,147,0.14) 100%);
}

.cierre-titulo {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cierre p {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--text-dim);
    font-weight: 300;
    line-height: 1.9;
    margin-bottom: 12px;
}

.cierre-contador {
    margin-top: 50px;
    font-family: var(--display);
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* === FOOTER === */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-by {
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 1px;
}

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .wrap { padding: 0 24px; }

    .sobre-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .hits-grid { grid-template-columns: 1fr; }
    .tributos-grid { grid-template-columns: repeat(2, 1fr); }
    .eras-grid { grid-template-columns: repeat(2, 1fr); }
    .wp-builder { grid-template-columns: 1fr; }

    .hero-nombre { font-size: clamp(3.5rem, 12vw, 7rem); }

    .song a {
        grid-template-columns: 40px 1fr auto;
        gap: 14px;
    }
    .song-tag { display: none; }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 550px) {
    .sobre, .disco-sec, .timeline-sec, .songs-sec, .hits-sec, .spotify-sec, .tributos-sec, .eras-sec, .wallpaper-sec, .velas-sec { padding: 80px 0; }

    .tributos-grid { grid-template-columns: 1fr; }
    .hit-card { padding: 38px 26px 32px; }
    .eras-grid { grid-template-columns: 1fr; }

    .hero-nombre { font-size: 3.2rem; }

    .hero-tag { font-size: 0.6rem; padding: 6px 14px; }

    .song-title { font-size: 1.3rem; }
    .song-year { display: none; }

    .gal-item .foto-frame.horizontal { width: 320px; height: 200px; }
    .gal-item .foto-frame.vertical { width: 220px; height: 330px; }

    .tl { padding-left: 36px; }
    .tl-marker { left: -28px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--rosa); }
