/* =========================================================
   VARIABLES & RESET — ESTÉTICA GTA VI / VICE CITY
   ========================================================= */
:root {
    --vice-purple: #2b1055;
    --vice-deep: #130529;
    --vice-magenta: #ff3c9e;
    --vice-orange: #ff9a5a;
    --vice-yellow: #ffd166;
    --vice-cyan: #2de2e6;

    --surface-glass: rgba(24, 9, 48, 0.68);
    --surface-dark: rgba(14, 5, 30, 0.85);
    --text-main: #ffffff;
    --text-muted: #e6d7f5;

    --pill-gradient: linear-gradient(90deg, #ff3c9e 0%, #ff9a5a 55%, #ffd166 100%);
    --sunset-gradient: linear-gradient(135deg, #2b1055 0%, #ff3c9e 50%, #ff9a5a 82%, #ffd166 100%);

    --font-display: 'Titan One', 'Inter', sans-serif;
    --font-hud: 'Teko', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--vice-purple);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* =========================================================
   ESCENARIO DE ATARDECER + PALMERAS + GRANO DE PELÍCULA
   ========================================================= */
.vice-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.vice-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        #160630 0%,
        #2b1055 26%,
        #7d1f72 52%,
        #ff3c9e 70%,
        #ff9a5a 86%,
        #ffd166 100%
    );
}

.vice-sun {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: min(82vw, 660px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 209, 102, 0.8) 0%,
        rgba(255, 154, 90, 0.45) 44%,
        rgba(255, 60, 158, 0) 72%
    );
    filter: blur(18px);
}

.vice-horizon-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18vh;
    background: linear-gradient(180deg, transparent, rgba(255, 209, 102, 0.22));
}

.palm-layer {
    position: absolute;
    bottom: -25px;
    height: 84vh;
    width: auto;
    max-width: 45vw;
    opacity: 0.78;
    will-change: transform;
    transition: transform 0.12s linear;
}

.palm-left { left: -24px; }
.palm-right { right: -24px; }

.film-grain {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: radial-gradient(rgba(255, 255, 255, 0.75) 1px, transparent 0);
    background-size: 3px 3px;
    mix-blend-mode: overlay;
}

/* =========================================================
   TARJETAS ESTILO DOSSIER GTA VI
   ========================================================= */
.glass-panel {
    position: relative;
    background: var(--surface-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 14px;
    border: 1.5px solid rgba(255, 60, 158, 0.45);
    box-shadow:
        0 16px 40px rgba(12, 3, 28, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: var(--transition);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 60, 158, 0.9), rgba(45, 226, 230, 0.45), rgba(255, 209, 102, 0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-panel:hover {
    box-shadow:
        0 20px 46px rgba(255, 60, 158, 0.32),
        0 0 26px rgba(45, 226, 230, 0.22);
}

.accent {
    color: var(--vice-cyan);
    text-shadow: 0 0 12px rgba(45, 226, 230, 0.7);
}

/* Tooltips */
.tooltip { position: relative; }
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--vice-deep);
    color: var(--vice-yellow);
    border: 1px solid var(--vice-magenta);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-weight: 700;
    z-index: 30;
}
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* =========================================================
   HEADER HUD SUPERIOR (ESTILO VICE CITY / VI)
   ========================================================= */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(16, 5, 36, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.75rem 0;
}

.glass-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--pill-gradient);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    gap: 0.75rem;
}

.hud-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #ffffff;
}

.hud-radar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--vice-cyan);
    box-shadow: 0 0 10px var(--vice-cyan);
}

.hud-brand-name {
    font-family: var(--font-hud);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
}

.hud-vi-tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--pill-gradient);
    color: #16052c;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-hud);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: var(--pill-gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--vice-yellow);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wanted-stars {
    display: inline-flex;
    gap: 3px;
    color: var(--vice-yellow);
    font-size: 0.78rem;
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.7));
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--vice-cyan);
    background: rgba(43, 16, 85, 0.75);
    border: 1px solid rgba(255, 60, 158, 0.5);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-family: var(--font-mono);
}

#lang-switch {
    background: transparent;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.82rem;
}

#lang-switch option {
    background: var(--vice-deep);
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 60, 158, 0.25);
    border: 1px solid rgba(255, 154, 90, 0.6);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: var(--pill-gradient);
    color: #16052c;
}

.mobile-drawer {
    background: rgba(16, 5, 36, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--vice-magenta);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.7);
}

.mobile-drawer[hidden] {
    display: none;
}

.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.5rem 1.5rem;
    gap: 0.65rem;
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 60, 158, 0.3);
}

.mobile-drawer-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--vice-cyan);
    letter-spacing: 1.5px;
}

.wanted-stars-mini {
    color: var(--vice-yellow);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.mobile-nav-link {
    font-family: var(--font-hud);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    padding: 0.35rem 0.65rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    border-left-color: var(--vice-magenta);
    background: linear-gradient(90deg, rgba(255, 60, 158, 0.25), transparent);
    color: var(--vice-yellow);
    padding-left: 1rem;
}

/* =========================================================
   HERO KEY-ART OFICIAL GTA VI (VI DETRÁS + TÍTULO APILADO)
   ========================================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1.25rem 3rem;
}

.hero-keyart-stage {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-top-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.hud-chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    background: rgba(16, 5, 36, 0.72);
    border: 1px solid rgba(45, 226, 230, 0.45);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

.hud-chip i {
    color: var(--vice-magenta);
    margin-right: 4px;
}

.gta-vi-lockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.25rem 0;
    margin-bottom: 0.5rem;
}

.gta-vi-monogram {
    width: clamp(250px, 56vw, 430px);
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(255, 60, 158, 0.55));
    user-select: none;
}

.gta-stacked-title {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.hero-greeting-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vice-cyan);
    background: rgba(16, 5, 36, 0.85);
    padding: 2px 12px;
    border-radius: 999px;
    border: 1px solid rgba(45, 226, 230, 0.5);
    margin-bottom: 0.35rem;
}

.rockstar-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.86;
    text-transform: lowercase;
    color: #ffffff;
    -webkit-text-stroke: clamp(3px, 0.6vw, 6px) #16052c;
    paint-order: stroke fill;
    filter:
        drop-shadow(0 5px 0 #16052c)
        drop-shadow(0 0 22px rgba(255, 60, 158, 0.65));
}

.rockstar-wordmark .word-top {
    font-size: clamp(3.3rem, 11vw, 6.4rem);
    letter-spacing: -1px;
}

.rockstar-wordmark .word-bottom {
    font-size: clamp(2.8rem, 9.5vw, 5.5rem);
    letter-spacing: 1px;
    background: linear-gradient(180deg, #ffffff 35%, #ffd166 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.role {
    font-family: var(--font-hud);
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 3px 16px rgba(16, 5, 36, 0.9);
    margin-bottom: 1.5rem;
}

.mission-briefing {
    max-width: 620px;
    width: 100%;
    padding: 1rem 1.4rem 1.25rem;
    margin-bottom: 2rem;
    text-align: left;
    border-left: 5px solid var(--vice-yellow);
}

.briefing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
}

.briefing-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--vice-yellow);
}

.briefing-dots {
    display: flex;
    gap: 5px;
}

.briefing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--vice-magenta);
}

.quote {
    font-family: var(--font-mono);
    font-style: italic;
    color: #f8efff;
    font-size: 0.92rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.88rem;
    border: none;
}

.btn-primary {
    background: var(--pill-gradient);
    color: #16052c;
    box-shadow: 0 8px 24px rgba(255, 60, 158, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 154, 90, 0.75);
}

.btn-outline {
    background: rgba(16, 5, 36, 0.78);
    color: #ffffff;
    border: 1.5px solid var(--vice-cyan);
}

.btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(45, 226, 230, 0.18);
    box-shadow: 0 10px 25px rgba(45, 226, 230, 0.35);
}

/* =========================================================
   SECCIONES, TÍTULOS DE CAPÍTULO Y SEPARADORES DIAGONALES
   ========================================================= */
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 95px 1.25rem;
}

.chapter-header {
    margin-bottom: 2.5rem;
}

.chapter-kicker-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.chapter-label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #16052c;
    background: var(--vice-cyan);
    padding: 0.25rem 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
}

.chapter-line {
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, rgba(45, 226, 230, 0.7), transparent);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 5.5vw, 3.2rem);
    line-height: 1.05;
    color: #ffffff;
    -webkit-text-stroke: 2px #16052c;
    paint-order: stroke fill;
    filter: drop-shadow(0 4px 14px rgba(255, 60, 158, 0.5));
}

.diagonal-divider {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, rgba(255, 60, 158, 0.35), rgba(255, 154, 90, 0.28), rgba(45, 226, 230, 0.32));
    clip-path: polygon(0 70%, 100% 0%, 100% 30%, 0% 100%);
}

.diagonal-divider.reverse {
    clip-path: polygon(0 0%, 100% 70%, 100% 100%, 0% 30%);
}

/* =========================================================
   CAPÍTULO I: CHARACTER DOSSIER, MÚSICA FAVORITA & HABILIDADES
   ========================================================= */
.dossier-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    align-items: start;
}

.dossier-left {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

.dossier-card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--vice-yellow);
    border-bottom: 1px solid rgba(255, 60, 158, 0.35);
    padding-bottom: 0.6rem;
}

.status-online {
    color: #16052c;
    background: var(--vice-cyan);
    padding: 1px 8px;
    border-radius: 999px;
}

.profile-image-container {
    position: relative;
    width: 190px;
    height: 190px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--vice-yellow);
}

.glow-ring {
    position: absolute;
    inset: -6px;
    background: var(--pill-gradient);
    border-radius: 18px;
    z-index: 1;
    transform: translate(9px, 9px);
    opacity: 0.8;
    transition: var(--transition);
}

.profile-image-container:hover .glow-ring {
    transform: translate(0, 0);
}

.mugshot-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    font-family: var(--font-hud);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: #16052c;
    color: var(--vice-yellow);
    border: 1px solid var(--vice-magenta);
    padding: 1px 10px;
    border-radius: 4px;
}

/* Tarjeta Música Favorita estilo YouTube Music */
.music-card {
    width: 100%;
}

.radio-header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.track-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vice-cyan);
    background: rgba(45, 226, 230, 0.14);
    border: 1px solid rgba(45, 226, 230, 0.45);
    padding: 2px 10px;
    border-radius: 999px;
}

.music-card h4 {
    font-family: var(--font-hud);
    font-size: 1.45rem;
    letter-spacing: 1px;
    color: var(--vice-yellow);
    text-transform: uppercase;
}

.custom-audio-container {
    background: linear-gradient(165deg, rgba(44, 24, 68, 0.92) 0%, rgba(22, 10, 42, 0.96) 100%);
    border: 1px solid rgba(255, 154, 90, 0.35);
    border-radius: 18px;
    padding: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ytm-now-playing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ytm-mini-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 209, 102, 0.5);
    flex-shrink: 0;
}

.ytm-song-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
    min-width: 0;
}

.track-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.track-artist {
    font-size: 0.8rem;
    color: rgba(230, 215, 245, 0.72);
}

audio#bg-audio {
    width: 100%;
    height: 38px;
    outline: none;
    border-radius: 999px;
}

/* Hoja de Letras estilo YouTube Music */
.ytm-lyrics-sheet {
    background: linear-gradient(180deg, rgba(64, 38, 72, 0.72) 0%, rgba(30, 14, 48, 0.88) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 0 0.85rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ytm-lyrics-grabber {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 0.55rem;
}

.ytm-lyrics-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ytm-lyrics-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.ytm-lyrics-hint {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Contenedor con scroll estilo YouTube Music (más largo en móvil) */
.lyrics-box {
    height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    text-align: left;
    padding: 1.1rem 1.1rem 4.5rem;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 60, 158, 0.5) transparent;
    mask-image: linear-gradient(180deg, black 0%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, black 0%, black 85%, transparent 100%);
}

.lyrics-box::-webkit-scrollbar {
    width: 4px;
}

.lyrics-box::-webkit-scrollbar-thumb {
    background: rgba(255, 60, 158, 0.55);
    border-radius: 999px;
}

.ytm-music-note {
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.85rem;
}

#lyrics-content {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.lyric-line {
    font-family: var(--font-sans);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
    transform-origin: left center;
}

.lyric-line:hover {
    color: rgba(255, 255, 255, 0.85);
}

.lyric-line.active {
    color: #ffffff;
    transform: scale(1.03);
    text-shadow: 0 0 14px rgba(255, 60, 158, 0.65);
}

/* Bloque de Habilidades Técnicas debajo de Música Favorita */
.dossier-skills-block {
    width: 100%;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 60, 158, 0.35);
}

/* Columna Derecha Dossier */
.dossier-right {
    padding: 2rem;
}

.dossier-section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--vice-cyan);
    margin-bottom: 0.85rem;
    letter-spacing: 1px;
}

.bio {
    font-size: 1.04rem;
    color: #f6eeff;
    margin-bottom: 1.85rem;
}

.subsection-title {
    font-family: var(--font-hud);
    font-size: 1.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    color: var(--vice-yellow);
}

.fun-facts-list {
    list-style: none;
}

.fun-facts-list li {
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.96rem;
    color: #ffffff;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: #ffffff;
}

/* Barras segmentadas estilo estadísticas de personaje GTA */
.progress-track.gta-segmented {
    width: 100%;
    height: 12px;
    background: rgba(12, 3, 28, 0.85);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    position: relative;
}

.progress-track.gta-segmented::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 18%,
        rgba(16, 5, 36, 0.9) 18%,
        rgba(16, 5, 36, 0.9) 20%
    );
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: var(--pill-gradient);
    width: 0;
    box-shadow: 0 0 14px rgba(255, 60, 158, 0.7);
    transition: width 1.4s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* =========================================================
   CAPÍTULO II: TECH ARSENAL (SKILLS)
   ========================================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    padding: 1.85rem 1.4rem;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-7px);
}

.slot-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--vice-cyan);
    margin-bottom: 0.85rem;
    letter-spacing: 1.5px;
}

.skill-icon {
    display: block;
    font-size: 2.9rem;
    background: var(--pill-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(255, 60, 158, 0.5));
}

.skill-card h3 {
    margin-bottom: 0.45rem;
    font-size: 1.15rem;
    font-weight: 800;
}

.skill-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* =========================================================
   CAPÍTULO III: MISSIONS (PROYECTOS)
   ========================================================= */
.filter-tabs {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.filter-btn {
    background: rgba(16, 5, 36, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 60, 158, 0.45);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0.48rem 1.3rem;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--vice-yellow);
    color: var(--vice-yellow);
}

.filter-btn.active {
    background: var(--pill-gradient);
    color: #16052c;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 60, 158, 0.5);
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-image {
    position: relative;
    height: 205px;
    overflow: hidden;
    border-bottom: 1.5px solid rgba(255, 60, 158, 0.4);
}

.mission-stamp {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 5, 36, 0.86);
    color: var(--vice-yellow);
    border: 1px solid var(--vice-yellow);
    padding: 3px 9px;
    border-radius: 4px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 16, 85, 0.45), rgba(16, 5, 36, 0.88));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.icon-link {
    color: #16052c;
    background: var(--pill-gradient);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(255, 60, 158, 0.65);
}

.icon-link:hover {
    transform: scale(1.12);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.22rem;
    margin-bottom: 0.55rem;
    color: #ffffff;
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
    flex-grow: 1;
    color: var(--text-muted);
}

.tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    font-family: var(--font-mono);
}

.tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--vice-cyan);
    background: rgba(45, 226, 230, 0.14);
    border: 1px solid rgba(45, 226, 230, 0.4);
    padding: 3px 10px;
    border-radius: 999px;
}

/* =========================================================
   CAPÍTULO IV: CONTACT
   ========================================================= */
.contact-card {
    text-align: center;
    padding: 3rem 1.75rem;
    max-width: 640px;
    margin: 0 auto;
}

.contact-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--vice-cyan);
    margin-bottom: 0.65rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.65rem, 4.5vw, 2.3rem);
    margin-bottom: 0.9rem;
    color: var(--vice-yellow);
}

.contact-card p {
    margin-bottom: 2rem;
    color: #f6eeff;
}

.social-links-lg {
    display: flex;
    justify-content: center;
    gap: 1.35rem;
}

.social-btn {
    color: #ffffff;
    background: rgba(16, 5, 36, 0.8);
    border: 1.5px solid rgba(255, 60, 158, 0.55);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--pill-gradient);
    color: #16052c;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(255, 60, 158, 0.6);
}

/* =========================================================
   SCROLL REVEAL & PREFERS-REDUCED-MOTION
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.75s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .palm-layer { transform: none !important; }
}

/* =========================================================
   RESPONSIVE DESIGN (MÓVIL PRIMERO)
   ========================================================= */
@media (max-width: 900px) {
    .dossier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .palm-layer {
        height: 54vh;
        opacity: 0.55;
    }
    .projects-gallery {
        grid-template-columns: 1fr;
    }
    /* En celular la letra estilo YouTube Music se ve más larga y amplia */
    .lyrics-box {
        height: 410px;
        padding: 1.25rem 1.2rem 5rem;
    }
    .lyric-line {
        font-size: 1.18rem;
        line-height: 1.42;
    }
}
