:root {
    --bg-dark: #050505;
    --mist-gray: #a3a3a3;
    --accent-pink: #d4a5b5;
    --text-main: #e0e0e0;
    --paper: #f4efe4;
    --ink: #111111;
    --tape: #f2d98a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 90px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Navegación ---------- */
nav {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

/* ---------- HERO: letras de crayón sobre negro ---------- */
.hero {
    position: relative;
    min-height: 108vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 40px 80px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/hero.webp');
    margin-top: -100px; /* el nav queda sobre el negro */
    padding-top: 110px;
    background-size: cover;       /* Ajusta la imagen para llenar todo el espacio sin deformarse */
    background-position: center;  /* Centra la imagen para que el foco quede en medio en pantallas móviles */
    background-repeat: no-repeat; /* Evita que la imagen se duplique si falta espacio */
}

.hero-logo {
    width: min(92vw, 980px);
    height: auto;
    animation: fadeIn 2.2s ease;
}

html { scroll-behavior: smooth; }

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 13px 26px 15px;
    background: #f7f4ee;
    color: #111;
    text-decoration: none;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(1.15rem, 2.6vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 3px solid #111;
    border-radius: 3px;
    box-shadow: 6px 6px 0 #9b2e40;
    transform: rotate(-3deg);
    animation: fadeIn 3s ease;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.hero-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.18s ease-out;
}

.hero-cta:hover {
    background: #f3b7b0;
    transform: translate(-3px, -3px) rotate(-3deg);
    box-shadow: 9px 9px 0 #5c1722;
}

.hero-cta:hover svg {
    transform: translateY(4px);
}

.hero-cta:active {
    transform: translate(4px, 4px) rotate(-3deg);
    box-shadow: 2px 2px 0 #9b2e40;
}

.hero-cta:focus-visible {
    outline: 3px dashed #f7b733;
    outline-offset: 5px;
}

.hero-doodle {
    position: absolute;
    left: clamp(14px, 8vw, 120px);
    bottom: 8%;
    width: clamp(56px, 8vw, 96px);
    transform: rotate(-8deg);
    opacity: 0.9;
}

/* ---------- LIVE SESSION ---------- */
.live-section {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    padding: 110px 24px 120px;
    border-top: 6px solid var(--ink);
    border-bottom: 6px solid var(--ink);
    z-index: 10;
}

.live-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.live-tag {
    padding: 5px 14px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    transform: rotate(-2deg);
    margin-bottom: 24px;
}

.live-title {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 9vw, 5rem);
    line-height: 1;
    letter-spacing: -1px;
    color: var(--ink);
}

.live-copy {
    font-size: 1.05rem;
    color: #333;
    margin: 18px 0 48px;
    max-width: 480px;
}

.live-frame-wrap {
    position: relative;
    width: 100%;
}

.live-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 5px solid var(--ink);
    border-radius: 6px;
    box-shadow: 12px 12px 0 var(--ink);
    overflow: hidden;
}

.live-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.live-doodle {
    width: clamp(46px, 6vw, 70px);
    flex-shrink: 0;
    transform: rotate(-8deg);
    pointer-events: none;
}

/* Fila del botón + monito, separada del video */
.live-cta {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    margin-top: 72px;
}

.btn-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 38px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 3px solid var(--ink);
    border-radius: 4px;
    box-shadow: 7px 7px 0 #d4506a;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-live svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.btn-live:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0 #d4506a;
    background: #d4506a;
}

.btn-live:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #d4506a;
}

/* ---------- Reveal ---------- */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Lanzamiento destacado (sólido, sin vidrio) ---------- */
.featured-release {
    max-width: 900px;
    margin: 100px auto;
    padding: 40px;
    background: #0e0f0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    border-radius: 16px;
}

.release-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #111;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    border-radius: 12px;
}

.release-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(105%) brightness(95%);
    transition: transform 0.7s ease;
}

.release-img:hover img {
    transform: scale(1.03);
}

.release-info h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1.2rem;
    color: var(--accent-pink);
    letter-spacing: -0.5px;
    font-weight: 600;
}

.btn-listen-hero {
    display: inline-block;
    padding: 14px 34px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-listen-hero:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    transform: translateY(-2px);
    border-color: var(--text-main);
}

/* ---------- Discografía ---------- */
.music-world {
    max-width: 700px;
    margin: 100px auto;
    padding: 20px;
}

.section-title {
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.5;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.track {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--mist-gray);
    border-radius: 8px;
}

.track:hover {
    color: var(--text-main);
    background: #101110;
    transform: translateX(5px);
}

.track.playing {
    color: var(--accent-pink);
    font-weight: 500;
    background: #15110f;
}

/* ---------- Social ---------- */
.socials {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--mist-gray);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-link:hover svg {
    fill: var(--accent-pink);
    opacity: 1;
    transform: translateY(-3px);
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 40px 20px 80px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--mist-gray);
    opacity: 0.6;
}

.footer-link {
    color: var(--accent-pink);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.7;
}

/* ---------- Reproductor fijo (sólido) ---------- */
#fixed-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #0a0c0b;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#fixed-player.active {
    transform: translateY(0);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

#play-pause-btn {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#play-pause-btn:hover {
    background: #2a2a2a;
    transform: scale(1.05);
}

#play-pause-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-main);
}

.track-info-player {
    display: flex;
    flex-direction: column;
}

#current-track-title {
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.progress-container {
    flex: 2;
    height: 3px;
    background: #262626;
    border-radius: 3px;
    margin: 0 30px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}

.progress-container:hover {
    height: 5px;
}

#progress-bar {
    height: 100%;
    background: var(--accent-pink);
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
    position: relative;
}

#progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover #progress-bar::after {
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .featured-release {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
        margin: 60px 16px;
    }
    .progress-container { display: none; }
    #fixed-player { padding: 0 20px; height: 70px; }
    nav { padding: 1.5rem 2rem; }

    .hero { min-height: 105vh; }
    .hero-doodle { display: none; }
     .hero-cta {
        gap: 8px;
        margin-top: 6px;
        padding: 8px 14px 10px;
        font-size: 0.95rem;
        letter-spacing: 0;
        border-width: 2px;
        box-shadow: 3px 3px 0 #9b2e40;
    }
    .hero-cta svg { width: 14px; height: 14px; }
    .hero-cta:hover { box-shadow: 5px 5px 0 #611925; }
    .hero-cta:active { box-shadow: 1px 1px 0 #9b2e40; }

     .live-section { padding: 72px 20px 84px; }
     .live-tag { font-size: 0.65rem; letter-spacing: 2px; margin-bottom: 20px; }
      .live-frame { box-shadow: 7px 7px 0 var(--ink); border-width: 4px; }
    .live-cta {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 52px;
        width: 100%;
    }
    .tape { width: 80px; height: 26px; }
    .doodle-squiggle, .doodle-star { display: none; }
    .doodle-man { width: 64px; bottom: 24px; right: 12px; opacity: 0.5; }
    .cta-arrow, .cta-note { display: none; }
   .live-doodle { width: 48px; order: -1; }
    .btn-live {
        width: 100%;
        max-width: 340px;
        padding: 18px 20px;
        font-size: 0.8rem;
        box-shadow: 5px 5px 0 #d4506a;
    }
}
@media (max-width: 380px) {
    .live-title { font-size: 2.2rem; }
    .btn-live { letter-spacing: 0.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-logo, .hero-sticker { animation: none; }
    html { scroll-behavior: auto; }
    .hero-cta { font-size: 0.85rem; padding: 7px 12px 9px; }
}