/* ====================================================== */
/* 1. SISTEMA DE DISEÑO Y VARIABLES (Climax Sounds AAA) */
/* ====================================================== */
:root {
    /* Fondo Charcoal profundo con textura base */
    --bg-base: #272729; 
    /* Gris transparente para Glassmorphism (Muy transparente) */
    --bg-surface: rgba(30, 30, 34, 0.3); 
    
    --accent-pink: #FF007F;    /* Rosa Punk Neón (Principal) */
    --accent-cyan: #00FFFF;    /* Cian Lo-Fi */
    --accent-purple: #9966FF;  /* Morado Profundo */
    
    --text-main: #E1E1E6;      /* Off-white legible */
    --text-muted: #A0A0A5;     /* Gris secundario */
    
    /* FUENTES DE LA MARCA */
    --font-main: 'Montserrat', sans-serif;
    --font-logo: 'Lobster Two', cursive;
    --font-hollow: 'Bokor', display;
}

/* ====================================================== */
/* 2. RESET Y TEXTURA DE FONDO (Punto 3 del feedback) */
/* ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    
    /* TEXTURA: Micro-ruido analógico + sutil patrón de vinilo */
    /* Monstercat usa una estática analógica muy sutil. Esto la replica. */
    background-image: 
        url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUT///8D339BAAAABnRSTlMAAAAAAABupgeRAAAAbElEQVR42u3PMQrAQAwEwZfM//9Yl0VIMIFUqXOr5tL4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4f5X4D0X4D0X4D0W4f0bEAAAADElEQVR42u3PMQrAQAwEwZfM//9Yl0VIMIFUqXOr5tL4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4f5X4D0X4D0X4D0W4f0bEAAAADElEQVR42u3PMQrAQAwEwZfM//9Yl0VIMIFUqXOr5tL4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4f5X4D0X4D0X4D0W4f0bEAAAADElEQVR42u3PMQrAQAwEwZfM//9Yl0VIMIFUqXOr5tL4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4f5X4D0X4D0X4D0W4f0bEAAAADElEQVR42u3PMQrAQAwEwZfM//9Yl0VIMIFUqXOr5tL4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4S6L4f5X4D0X4D0X4D0W4f0bEAAAA='), /* Ruido base */
        radial-gradient(circle at 50% 50%, rgba(20, 20, 23, 0.8) 0%, rgba(18, 18, 20, 1) 100%); /* Degradado */
    background-blend-mode: overlay;
}

/* ====================================================== */
/* 3. BARRA LATERAL DERECHA AAA (100% Invisible, Hover Reveal) */
/* ====================================================== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70px; /* Ancho inicial solo para iconos */
    background-color: transparent; /* Invisible total */
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
}

/* Al pasar el mouse, SOLO se expande el ancho para mostrar texto, NO aparece fondo */
.sidebar:hover {
    width: 260px;
    background-color: transparent; 
}

/* ====================================================== */
/* ESTILOS DEL LOGO EN LA BARRA LATERAL                   */
/* ====================================================== */
.sidebar-header {
    display: flex;
    justify-content: center; /* Centramos el logo horizontalmente */
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Una línea sutil para separar */
}

.custom-logo {
    max-width: 150%; /* Evita que choque contra los bordes de la barra lateral */
    height: auto;   /* Mantiene la proporción original para que no se achate */
    max-height: 80px; /* Un tope de altura por si la imagen es muy vertical */
    
    /* Efecto hover suave de Arquitecto UI */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05); /* Se agranda un 5% al pasar el mouse */
    filter: drop-shadow(0 0 8px var(--accent-pink)); /* Brillo neón */
}

.logo-icon {
    color: var(--text-main);
    font-size: 1.5rem;
    min-width: 30px;
}

.sidebar-header h2 {
    font-family: var(--font-logo);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-left: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar:hover .sidebar-header h2 {
    opacity: 1;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-item {
    color: var(--text-muted); /* Off-white limpio */
    text-decoration: none;
    padding: 12px 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: transform 0.3s;
    overflow: hidden;
    white-space: nowrap;
}

.nav-item i {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
}

.nav-text {
    margin-left: 15px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
    color: var(--text-main); /* Texto blanco puro */
    font-family: var(--font-main);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.sidebar:hover .nav-text {
    opacity: 1;
    transform: translateX(0);
}

.nav-item:hover {
    transform: scale(1.05); /* Pequeño zoom en lugar de color */
    color: var(--text-main);
}

/* ====================================================== */
/* 4. MAIN CONTENT Y HERO CAROUSEL */
/* ====================================================== */
.main-content {
    width: 100%;
    /* Eliminamos el padding-right: 70px; que estaba aplastando la imagen y dejando el hueco negro */
}

.main-content:not(.no-padding) {
    padding: 3rem 4rem;
}
.hero-carousel {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.blurred-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) brightness(0.4); 
    transform: scale(1.1);
    z-index: 1;
    
    /* ========================================== */
    /* LA MAGIA AAA: CSS MASKING                  */
    /* ========================================== */
    /* Hace que la imagen en sí misma se vuelva 100% transparente abajo, 
       dejando que la textura de estática del fondo pase naturalmente */
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    /* Volvemos a un velo simple, ya no necesitamos el degradado oscuro tramposo */
    background: rgba(0, 0, 0, 0.2); 
    pointer-events: none;
}

/* ====================================================== */
/* 4.5. TRACK NAV (La barra de progreso estilo Monstercat) */
/* ====================================================== */
.track-nav {
    position: absolute;
    top: 15px; /* Separación desde arriba */
    left: 10rem; /* Alineado con la imagen */
    z-index: 10;
    display: flex;
    gap: 30px;
}

.track-nav-item {
    display: flex;
    flex-direction: column;
    width: 220px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.track-nav-item.active, .track-nav-item:hover {
    opacity: 1;
}

.track-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    position: relative;
}

/* La barrita blanca que simula el progreso */
.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    /* El ancho y la transición ahora los controla JavaScript */
    background: var(--accent-pink); /* ¡Pongámoslo rosa neón para que resalte! */
    box-shadow: 0 0 10px var(--accent-pink);
}

.track-title {
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.track-artist {
    font-family: var(--font-main);
    font-size: 0.75rem;
    color: #AAA;
    letter-spacing: 1px;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ====================================================== */
/* 4.6 CONTENIDO DEL SLIDE (Bajado hacia el centro-inferior) */
/* ====================================================== */
.slide-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    gap: 5rem;
    padding-left: 10rem;
    /* Request 1 y 2: Bajamos la imagen calc(5vh + 5px) más para que no quede pegada arriba */
    margin-top: calc(5vh + 35px); 
}

.cover-wrapper {
    flex: 0 0 auto;
}

.carousel-cover {
    width: 450px;
    height: 450px;
    border-radius: 4px; /* CUADRADA */
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.song-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hollow-text {
    font-family: var(--font-hollow);
    font-size: 5.5rem;
    color: transparent;
    -webkit-text-stroke: 1.5px #FFFFFF; /* Contorno blanco AAA */
    letter-spacing: 3px;
    line-height: 1;
}

.song-artist {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #FFFFFF;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.btn-solid {
    background-color: #FF9900; /* Naranja Monstercat */
    color: #000;
    border: none;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-outline {
    background-color: transparent;
    color: #FFF;
    border: 1px solid #FFF;
    padding: 12px 28px;
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-solid:hover { transform: scale(1.05); }
.btn-outline:hover { background-color: rgba(255,255,255,0.1); }



/* CONTROLES DEL CAROUSEL (Mismo estilo que los botones punk) */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 20, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.carousel-control:hover {
    background: var(--accent-pink);
    border-color: var(--accent-pink);
}

.carousel-control.prev { left: 2rem; }
.carousel-control.next { right: calc(70px + 2rem); } /* Respetamos el espacio del sidebar */

/* ====================================================== */
/* 5. TARJETAS DE HERRAMIENTAS (Stack Vertical AAA) */
/* ====================================================== */
.cards-container {
    display: flex;
    flex-direction: column; 
    gap: 4rem; 
    padding: 4rem 2rem 8rem 2rem; 
    max-width: 900px; 
    
    /* ========================================== */
    /* EFECTO OVERLAP (Uniendo las secciones)     */
    /* ========================================== */
    position: relative;
    z-index: 10;          /* Asegura que floten por encima de todo */
    margin: -15vh auto 0; /* Ese -15vh "tira" las tarjetas hacia arriba, metiéndolas en la foto */
}

.glass-panel {
    background: var(--bg-surface); /* Muy transparente */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Borde blanco ultra fino y elegante */
    border-radius: 16px;
    padding: 3rem; /* Más padding interno para que no quede "chiquito" */
    min-height: 280px; /* Altura mínima garantizada */
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Sombra elegante al pasar el mouse */
}

.card-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.badge-cyan { background-color: rgba(0, 255, 255, 0.05); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.badge-purple { background-color: rgba(153, 102, 255, 0.05); color: var(--accent-purple); border: 1px solid var(--accent-purple); }

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #FFF;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* ====================================================== */
/* 6. INPUTS Y BOTONES (Elementos Clickables Sólidos) */
/* ====================================================== */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

input[type="text"] {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.4); /* Leve relleno para indicar que se escribe */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #FFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-punk {
    background-color: var(--accent-pink); /* Sólido y vibrante */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.btn-punk:hover {
    background-color: #ff3399;
    transform: scale(1.05);
}

/* ============================= */
/* OPCIÓN 2: SVG NOISE ESTÁTICO */
/* ============================= */

body.noise-svg::before {
    content: "";
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* encima del fondo pero detrás del contenido */
    opacity: 0.08;
    background: url('mashup-frontend/frontend/images/sample-white-cotton-textile.jpg') repeat;
    background-size: cover;
    mix-blend-mode: overlay;
}
/* Opción 3: Tela / lienzo oscuro */
body.fabric-texture::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 50;
  background: url('https://images.unsplash.com/photo-1706790608890-51f511587a8c?q=80&w=829&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') repeat;
  background-size: 1024px 1024px;
  mix-blend-mode: overlay;
}
/* ====================================================== */
/* 5.5. ESTILOS PARA FILTROS (AAA)                        */
/* ====================================================== */
.filters-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-select {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borde sutil */
    color: var(--text-main); /* Texto blanco puro */
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
    /* Pequeño truco para el ícono de flecha por defecto del navegador */
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23A0A0A5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--accent-pink); /* Brillo rosa al enfocar */
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* 🚨 ESTO ARREGLA TU ERROR: Estilizando las opciones desplegables 🚨 */
.filter-select option {
    background-color: #1a1a1d; /* Fondo oscuro sólido para el menú desplegable */
    color: var(--text-main); /* Texto blanco puro */
    padding: 10px;
    font-family: var(--font-main);
}