/* VARIABLES GLOBALES */
:root {
    --bg-dark: #07060f;
    --bg-card: #110f24;
    --accent-cyan: #00f2fe;
    --accent-purple: #6366f1;
    --text-white: #ffffff;
    --text-muted: #a5b4fc;
    --border-color: rgba(255, 255, 255, 0.08);
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tahoma', Tahoma, Geneva, Verdana, sans-serif;
}
/* CLASES DE PESO (Aplica para Tahoma o cualquier texto) */
.fw-regular  { font-weight: 400 !important; }
.fw-semibold { font-weight: 600 !important; } /* Semi-Bold */
.fw-bold     { font-weight: 700 !important; } /* Bold */

/* FUENTE CURSIVA OPCIONAL (Solo se activa si tú se la pones al HTML) */
.font-cursiva {
    font-family: 'Caveat', cursive !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* MENÚ DE NAVEGACIÓN GLOBAL */
.main-header {
    background-color: rgba(7, 6, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 550;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-bars {
    color: var(--accent-cyan);
}
.logo-dot{
    color: var(--accent-cyan);
}
.accent-text {
    color: var(--accent-purple);
}

/* Links del Menú (Primera Letra Mayúscula y Efecto Neón) */
.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem; /* Distancia óptima entre elementos */
}

.nav-menu ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 550;
    font-size: 0.9rem;
    text-transform: capitalize; /* Fuerza automáticamente: Mayúscula/minúscula */
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: 5px;
    
}

/* Efecto Hover Celeste Neón en el Menú Principal */
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
}

/* Estructura del Dropdown de Proyectos */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* Align right so it doesn't overflow off the screen on the edge */
    left: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 180px; /* Ancho fijo para forzar el salto de línea elegante */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    padding: 0.5rem 0;
    display: block !important;
    z-index: 9999 !important; /* Lo pone por encima de imágenes y banners */
    pointer-events: auto !important; /* Habilita que responda al clic */
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: normal !important; /* Permite el salto de línea */
    word-wrap: break-word;        /* Rompe frases largas de forma limpia */
    line-height: 1.3;              /* Ajusta el espacio entre líneas */
    text-align: left;              /* Mantiene el texto bien alineado */
    position: relative;
    z-index: 10000 !important;
    display: block; /* Ocupa todo el espacio para facilitar el clic */
    pointer-events: auto !important;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Efecto hover celeste neón con fondo diferente para los elementos internos del dropdown */
.dropdown-menu li a:hover {
    background-color: var(--accent-cyan) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 15px var(--accent-cyan);
}

/* Botón de Iniciar Sesión en el Menú */
.login-btn {
    background: linear-gradient(135deg, var(--accent-purple), #4f46e5);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.login-btn:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   SECCIÓN 2: HERO SECTION (CORREGIDA - DESPLAZAMIENTO NATURAL Y SIN CORTINA)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 75vh;
    
    /* Fondo con gradiente oscuro de fusión + la imagen de la aurora sobre el agua */
    background-image: linear-gradient(
                        to bottom, 
                        rgba(7, 6, 15, 0.15) 0%, 
                        rgba(7, 6, 15, 0.4) 60%, 
                        rgba(7, 6, 15, 0.98) 100%
                      ), 
                      url('https://images.unsplash.com/photo-1531366936337-7c912a4589a7?auto=format&fit=crop&w=1920&q=80');
    
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    border-bottom: 1.5px solid var(--border-color);
    
    /* CAMBIO CLAVE: 'scroll' para que se mueva de forma natural con la página y no haga cortina */
    background-attachment: scroll; 
    
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
}

/* Overlay modificado para centrarse en lugar de alinearse a la izquierda */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Asegura que se pueda hacer clic en los botones debajo del overlay */
}

/* Contenedor principal de contenidos alineado al centro absoluto */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px; /* Ancho cómodo para el título centrado */
    padding: 0 1rem;
    margin: 0 auto; /* Centrado absoluto dentro de la pantalla */
    text-align: center; /* Centrado de todos los elementos de texto en su interior */
    
}

/* Desactivamos el margen izquierdo asimétrico en pantallas grandes para mantener el centrado perfecto */
@media (max-width: 1250px) {
    .hero-content {
        margin: 0 auto;
    }
}

.badge {
    background-color: rgba(99, 102, 241, 0.2);
    border: 1px solid var(--accent-purple);
    color: var(--accent-cyan);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-weight: 800;
    text-shadow:0 4px 15px rgba(7, 6, 15, 0.9);
}

.hero-content p {
    color: #D6EAF8 !important; /* Nuevo color claro y elegante */
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 2;
    font-size: 0.95rem; 
    margin-bottom: 2.5rem;
    text-shadow: 0 3px 15px rgba(31, 127, 127, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* Botones del Hero centrados */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center; /* Alinea los botones lado a lado en el centro */
}

/* BOTONES GLOBALES */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-purple);
    color: var(--text-white);
    border: 1px solid var(--accent-purple);
}

.btn-primary:hover {
    background-color: #4f46e5;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
}

.btn-block {
    display: block;
    width: 100%;
}
/* Menú secundario inferior en el Hero (Centrado y Estilizado) */
.hero-secondary-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    margin-top: 2.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;

    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;

    width: 100%;
    margin-left: auto;
    margin-right: auto;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-secondary-menu a {
    color: #fbfafe;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .5px;
    padding: 6px 2px;
    border-radius: 12px;
    border-bottom: 2px solid transparent;
    transition: all .3s ease;
}
/* Efecto hover celeste neón para los botones secundarios del hero */
.hero-secondary-menu a:hover {
    color: #22D3EE;
    background: rgba(34,211,238,.10);
    text-shadow: 0 0 10px rgba(34,211,238,.7);
    transform: translateY(-2px);
}


/* SECCIÓN 3: SLIDERS ORGÁNICOS (BLOB SHAPE) */
/* CONFIGURACIÓN DE LA SECCIÓN CON FONDO NEÓN */
.explora-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 5%;
    overflow: hidden;
    
    /* El nuevo fondo degradado estilo neón */
    background: radial-gradient(circle at 20% 30%, rgba(147, 51, 234, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.12) 0%, transparent 45%),
                linear-gradient(135deg, #090714 0%, #05040a 100%);
}

/* ONDAS DE FONDO */
.soundwaves-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.soundwaves-bg svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTENEDOR PRINCIPAL DEL SLIDER */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    z-index: 2; /* Por delante de las ondas */
}

/* COMPORTAMIENTO DE LOS SLIDES */
.info-slide {
    display: none; /* Ocultos por defecto */
    width: 100%;
    animation: fadeIn 0.6s ease-in-out;
}

.info-slide.active {
    display: block; /* Solo se muestra el que tiene la clase active */
}

/* GRID DEL SLIDE */
.slide-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Le da un poco más de espacio al lado del texto */
    gap: 3rem;
    align-items: center;
}

.slide-grid.layout-reverse {
    /* Invierte el orden para alternar el diseño visualmente */
    direction: ltr; 
}

/* TEXTOS DEL SLIDER */
.slide-text {
   color: #ffffff;
    text-align: left;
    margin-left: 4rem; /* Empuja todo el bloque de texto hacia la derecha */
    transition: all 0.3s ease;
}
.slide-text h1, .slide-text h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    background: linear-gradient(45deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.slide-text p {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* BOTONES */
.comenzar-btn, .btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: #5c52f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(92, 82, 242, 0.4);
    transition: all 0.3s ease;
}
.comenzar-btn:hover, .btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(92, 82, 242, 0.6);
}

/* MÁSCARAS ORGÁNICAS (BLOBS) PARA LAS IMÁGENES */
.slide-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-mask {
    width: 440px;  /* Lo hacemos un poco más grande */
    height: 380px; 
    overflow: hidden;
    
    /* Esta combinación exacta genera la forma estirada hacia la izquierda que dibujaste */
    border-radius: 40% 60% 40% 60% / 70% 30% 70% 30%; 
    
    border: 3px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
    transition: all 0.5s ease;
}

/* Si quieres que los otros slides tengan variaciones orgánicas similares: */
.blob-mask.mask-alt {
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
    border-color: rgba(236, 72, 153, 0.3);
}

.blob-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.blob-mask:hover img {
    transform: scale(1.15);
}

/* CONTROLES DE PUNTITOS (MÁS PEQUEÑOS Y ESTILIZADOS) */
.slider-controls {
    display: flex;
    gap: 10px;
    margin-top: 3rem;
    z-index: 2;
}

.dot {
    width: 8px; /* Reducidos de tamaño para que se vean elegantes */
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #22d3ee; /* Color del neón activo */
    width: 24px;         /* Efecto de píldora expandida muy moderno */
    border-radius: 4px;
    box-shadow: 0 0 8px #22d3ee;
}

/* ANIMACIÓN DE TRANSICIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECCIÓN 4: FORMULARIO DE REGISTRO / AUTENTICACIÓN */
.auth-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark), #0d0c1d);
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.auth-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.divider {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    background-color: var(--bg-card);
    padding: 0 1rem;
    position: relative;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-social {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.btn-social:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* SECCIÓN 5: TESTIMONIOS (2 Clientes por Slide) */
.testimonials-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.testimonial-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-item {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
}

.test-text p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.test-text h4 {
    color: var(--text-white);
    font-weight: 700;
}

/* FOOTER GLOBAL */
.global-footer {
    background-color: #04030a;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-cyan);
}

.social-col .social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.academic-tag {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--accent-purple);
}

/* ASISTENTE FLOTANTE: FOCUS AI */
.focus-ai-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.focus-ai-button {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
    transition: var(--transition-fast);
    color: var(--bg-dark);
}

.focus-ai-button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.5);
}

.ai-avatar {
    font-size: 1.25rem;
}

.ai-label {
    font-weight: 700;
}

/* Ventana de Conversación Chatbot */
.ai-chat-window {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: 380px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 500px;
    transition: var(--transition-fast);
}

.ai-chat-window.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.ai-chat-header {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.ai-chat-header h3 {
    font-size: 1.1rem;
}

#close-chat-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.ai-chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
}

.ai-message {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    align-self: flex-start;
}

.user-message {
    background-color: var(--accent-purple);
    color: var(--text-white);
    align-self: flex-end;
}

.ai-quick-options {
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.ai-quick-options button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ai-quick-options button:hover {
    background-color: var(--accent-cyan);
    color: var(--bg-dark);
}

.ai-chat-input-area {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.01);
}

.ai-chat-input-area input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white;
}

.ai-chat-input-area button {
    background-color: var(--accent-purple);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MODAL DE INICIO DE SESIÓN / REGISTRO */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 6, 15, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal-brand {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.modal-view h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.modal-view p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.form-actions {
    margin-bottom: 1.5rem;
    text-align: right;
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.link-btn.accent {
    color: var(--accent-cyan);
    font-weight: bold;
}

.switch-prompt {
    margin-top: 1.5rem;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ANIMACIONES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blob-bounce {
    0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

/* RESPONSIVIDAD (Celular, Tablet y Laptop) */
@media (max-width: 992px) {
    .slide-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr !important;
    }
    .layout-reverse {
        direction: ltr;
    }
    .testimonial-pair {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        display: none;
    }
    .nav-menu.active {
        display: block;
    }
    /* --- NAVEGACIÓN EN ESCRITORIO --- */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-menu ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li a {
    white-space: nowrap !important;
}


/* --- ESTILOS MÓVILES (SOLO PARA PANTALLAS PEQUEÑAS) --- */
@media (max-width: 768px) {
    .nav-menu ul {
        flex-direction: column !important;
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
}
/* ========================================== */
/* HEADER GLOBAL UNIFICADO (SOUNDWAVE FOCUS)  */
/* ========================================== */

.main-header {
    width: 100%;
    background-color: #0b0b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1000;
}

.main-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
}

/* LOGO DE LA IZQUIERDA */
.main-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.main-header .logo-bars, 
.main-header .logo-dot {
    color: #00f2fe;
}

.main-header .accent-text {
    color: #7928ca;
}

/* MENÚ PRINCIPAL (TEXTO VIOLETA) */
.main-header .nav-menu > ul {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .nav-menu > ul > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-header .nav-menu ul li a {
    color: #c4b5fd; /* Color violeta suave original */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    white-space: nowrap;
    display: block;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* EFECTO HOVER Y ESTADO ACTIVO (VERDE / CIAN NEÓN) */
.main-header .nav-menu ul li a:hover,
.main-header .nav-menu ul li a.active {
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.7);
}

/* SUBMENÚ DESPLEGABLE COMPACTO Y PEGADO */
.main-header .nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: #110e1b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.4rem 0;
    min-width: 170px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    z-index: 1050;
    list-style: none;
}

/* Mostrar al pasar el cursor sobre la opción */
.main-header .nav-menu ul li:hover > .dropdown-menu {
    display: block;
}

.main-header .nav-menu .dropdown-menu li {
    width: 100%;
}

.main-header .nav-menu .dropdown-menu li a {
    color: #b8a5fe; /* Violeta suave para el interior del desplegable */
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    font-weight: 400;
    line-height: 1.3;
}

.main-header .nav-menu .dropdown-menu li a:hover {
    background-color: rgba(0, 242, 254, 0.08);
    color: #00f2fe;
}
/* ========================================== */
/* FONDO CÓSMICO EXCLUSIVO PARA LA TIENDA     */
/* ========================================== */

/* ========================================== */
/* FONDO CÓSMICO EN CSS PURO (SUBPÁGINA TIENDA) */
/* ========================================== */

.bg-tienda {
    background-color: #050714;
    background-image: 
        /* Destellos y nebulosas neón */
        radial-gradient(circle at 80% 15%, rgba(0, 242, 254, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 15% 75%, rgba(121, 40, 202, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.6) 0%, transparent 80%),
        /* Estrellas simuladas mediante patrones */
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 242, 254, 0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #c4b5fd, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 230px 190px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 300px 80px, rgba(0, 242, 254, 0.9), rgba(0,0,0,0));
    
    background-repeat: repeat;
    background-size: 100% 100%, 100% 100%, 100% 100%, 250px 250px, 350px 350px, 200px 200px, 400px 400px, 300px 300px, 450px 450px;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
}
/* ========================================== */
/* SLIDER DINÁMICO HERO (TIENDA SOUNDWAVE)   */
/* ========================================== */

.hero-slider-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Capa oscura traslúcida sobre la imagen para legibilidad del texto */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(7, 9, 19, 0.85) 0%, rgba(7, 9, 19, 0.4) 60%, transparent 100%);
    display: flex;
    align-items: center;
    padding: 3rem;
}

.slide-content {
    max-width: 500px;
}

.badge-promo {
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.slide-content h1 {
    font-size: 2.8rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.slide-content p {
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    color: #0b0b12;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.6);
    transform: translateY(-2px);
}

/* Indicadores inferiores (Puntos) */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #00f2fe;
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.8);
}
/* ========================================== */
/* TEXTO EN CURSIVA Y LÍNEAS JUNTAS          */
/* ========================================== */

.slide-content p.texto-cursiva {
    font-style: italic; /* Aplica la letra cursiva */
    line-height: 1.3;    /* Ajusta la distancia vertical entre líneas */
    margin-bottom: 1.5rem; /* Separación con respecto al botón */
    color: #cbd5e1;       /* Tono claro para resaltar sobre el fondo oscuro */
    letter-spacing: 0.7px;
    line-height: 1.35;
}
/* ========================================== */
/* BUSCADOR AVANZADO CON 3 COLUMNAS           */
/* ========================================== */

.advanced-search-card {
    background: #110f24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    max-width: 950px;
    margin: 0 auto;
    width: 100%;
}

/* Barra Principal */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #07060f;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 50px;
    padding: 0.4rem 0.6rem 0.4rem 1.2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.search-icon {
    font-size: 1.1rem;
    margin-right: 0.8rem;
    opacity: 0.7;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    width: 100%;
}

.search-input-wrapper input::placeholder {
    color: #a5b4fc;
    opacity: 0.6;
}

.btn-search {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    color: #07060f;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

/* Grid de Filtros (3 Columnas Adaptables) */
.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-title {
    color: #00f2fe;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Selects desplegables */
.filter-select {
    background-color: #07060f;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #00f2fe;
}

/* Opciones de Radio */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a5b4fc;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.radio-label:hover {
    color: #ffffff;
}

.radio-label input[type="radio"] {
    accent-color: #00f2fe;
    cursor: pointer;
}
/* Estilos para las Subcategorías desplegables */
.filter-select optgroup {
    background-color: #110f24;
    color: #00f2fe;
    font-weight: 700;
    font-style: normal;
    padding: 0.4rem 0;
}

.filter-select option {
    background-color: #07060f;
    color: #ffffff;
    padding: 0.3rem;
}/* ========================================== */
/* ESTILOS PARA LOS MENÚS DESPLEGABLES        */
/* ========================================== */

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-title {
    color: #00f2fe;
    font-size: 0.95rem;
    font-weight: 700;
}

.filter-select {
    background-color: #07060f;
    color: #ffffff;
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Estilos de las Tiendas dentro del Menú Desplegable */
.filter-select optgroup {
    background-color: #110f24;
    color: #00f2fe;
    font-weight: 700;
    font-style: normal;
    padding: 0.4rem 0;
}

.filter-select option {
    background-color: #07060f;
    color: #ffffff;
    padding: 0.4rem;
}
/* ========================================== */
/* ========================================== */
/* GRILLA DE PRODUCTOS SOUNDWAVE FOCUS */
/* ========================================== */

.store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* TÍTULO DE LA SECCIÓN */
.section-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid #00f2fe;
    padding-left: 0.8rem;
    font-weight: 600;
}

/* GRILLA DE PRODUCTOS */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background-color: #090814;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00f2fe;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
}

/* CONTENEDOR DE IMAGEN */
.product-image-box {
    width: 100%;
    height: 200px;
    background-color: #ffffff; /* Fondo blanco limpio para las fotos */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFORMACIÓN DEL PRODUCTO */
.product-info {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-tag {
    font-size: 0.7rem;
    color: #00f2fe;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-name {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0.4rem 0;
    font-weight: 600;
}

.product-price {
    color: #a5b4fc;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.btn-detail {
    margin-top: auto;
    background-color: transparent;
    border: 1px solid #7c3aed;
    color: #ffffff;
    padding: 0.55rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    background-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}
/* ========================================== */
/* CIRCULOS SELECTORES DE COLOR */
/* ========================================== */

.color-options {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.2);
}

/* Colores específicos */
.color-circle.black {
    background-color: #000000;
}

.color-circle.white {
    background-color: #ffffff;
}

.color-circle.navy {
    background-color: #0b132b; /* Azul noche */
}

/* Estado Activo / Seleccionado */
.color-circle.active {
    border-color: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
    transform: scale(1.15);
}
/* Color Marrón para la pulsera */
.color-circle.brown {
    background-color: #5c3a21; /* Tono marrón elegante */
}
/* ========================================== */
/* TRANSICIÓN SUAVE EN IMÁGENES DE PRODUCTO */
/* ========================================== */
.product-image-box img {
    transition: opacity 0.25s ease-in-out;
}

/* ========================================== */
/* CÍRCULOS SELECTORES DE COLOR */
/* ========================================== */
.color-options {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.color-circle:hover {
    transform: scale(1.2);
}

/* Colores específicos */
.color-circle.black {
    background-color: #000000;
}

.color-circle.white {
    background-color: #ffffff;
}

.color-circle.navy {
    background-color: #0b132b; /* Azul noche */
}

.color-circle.brown {
    background-color: #5c3a21; /* Tono marrón elegante */
}

/* Estado Activo / Seleccionado */
.color-circle.active {
    border-color: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
    transform: scale(1.15);
}
/* Alineación horizontal de las tallas */
.size-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0.6rem 0;
}

.size-label {
    font-size: 0.85rem;
    color: #a5b4fc;
    font-weight: 500;
}

.size-options {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
}

.size-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: #00f2fe;
    color: #00f2fe;
}

.size-btn.active {
    background-color: #00f2fe;
    border-color: #00f2fe;
    color: #000000;
    font-weight: bold;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* ========================================== */
/* SECCION DE Equipamiento de Audio y Enfoque (Audífonos, Parlantes, Tapones) */
/* ========================================== */
/* Subtítulo de categoría */
.section-subtitle {
    text-align: center;
    color: #a5b4fc;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

/* Breve descripción debajo del nombre para resaltar el propósito del audio */
.product-description {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0.5rem 0;
    line-height: 1.3;
    min-height: 2.6rem; /* Mantiene la misma altura entre tarjetas */
}
/* ========================================== */
/* SECCIÓN PRODUCTOS RECOMENDADOS Y PRECIOS   */
/* ========================================== */

.price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

/* Precio regular anterior tachado */
.old-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Precio de oferta destacado */
.price-box .product-price {
    margin: 0;
    font-size: 1.2rem;
    color: #00f2fe;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

/* Adaptación del botón para enlaces externos */
.btn-affiliate {
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}
/* ========================================== */
/* LABORATORIO SOUNDWAVE (ESTILOS AISLADOS)   */
/* ========================================== */

.lab-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.lab-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.lab-slider-wrapper {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lab-slider-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.lab-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lab-slide.active {
    display: block;
    opacity: 1;
}

.lab-slide-content {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.lab-slide-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.lab-slide-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0.8rem 0;
    font-weight: 700;
}

.lab-slide-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 1.8rem auto;
}

/* Botones Flechas */
.lab-slider-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #00f2fe;
    color: #00f2fe;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}

.lab-slider-btn:hover {
    background: #00f2fe;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

.lab-prev-btn { left: -20px; }
.lab-next-btn { right: -20px; }

/* Puntos indicadores */
.lab-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.lab-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lab-dot.active {
    background: #00f2fe;
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
    width: 28px;
    border-radius: 10px;
}
/* ========================================== */
/* FOOTER GLOBAL - ESTILO EXACTO              */
/* ========================================== */

.main-footer {
    background-color: #030308;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3.5rem 2rem 1.5rem 2rem;
    color: #a1a1aa;
    position: relative;
    font-family: inherit;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    /* 5 columnas iguales */
    grid-template-columns: repeat(5, 1fr); 
    gap: 1.8rem;
}

.footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #00f2fe;
}

/* REDES SOCIALES EN LA COLUMNA 5 */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.social-link {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.social-link:hover {
    color: #00f2fe;
    transform: translateX(4px);
}

/* BARRITA INFERIOR Y TEXTO ACADÉMICO */
.footer-bottom {
    max-width: 1300px;
    margin: 2.5rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.82rem;
    color: #71717a;
}

.academic-note {
    color: #818cf8;
    font-weight: 700;
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

/* BOTÓN FLOTANTE FOCUS AI (ESQUINA INFERIOR DERECHA) */
.btn-focus-ai {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #00f2fe 0%, #4f46e5 100%);
    color: #000000;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-focus-ai:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.8);
}

/* RESPONSIVE PARA PANTALLAS PEQUEÑAS */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
/* ========================================== */
/* PÁGINA MI CUENTA & FORMULARIO              */
/* ========================================== */

/* Hero / Banner Superior */
.account-hero {
    padding: 4rem 2rem 2rem 2rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
}

.hero-title {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    color: #a5b4fc;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Contenedor del Formulario estilo Logitech / SoundWave */
.account-container {
    max-width: 520px;
    margin: 2rem auto 5rem auto;
    padding: 0 1.5rem;
}

.auth-box {
    background: #080810;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.auth-title {
    color: #ffffff;
    font-size: 1.4rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: #a1a1aa;
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 2rem;
}

.auth-subtitle strong {
    color: #00f2fe;
}

/* Campos de entrada con línea inferior fina */
.input-group {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.75rem;
    color: #a1a1aa;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.date-selector select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.input-group input:focus,
.date-selector select:focus {
    border-bottom-color: #00f2fe;
}

/* Selector de Fecha */
.date-selector {
    display: flex;
    gap: 1rem;
}

.date-selector select {
    cursor: pointer;
    background-color: #080810;
}

/* Campo de Contraseña con icono */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 0;
    cursor: pointer;
    color: #a1a1aa;
    font-size: 1.1rem;
}

/* Enlaces y Opciones */
.passkey-option {
    margin-bottom: 1.5rem;
}

.link-glow {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    text-decoration: underline;
    letter-spacing: 0.5px;
}

.link-glow:hover {
    color: #00f2fe;
}

.link-underline {
    color: #ffffff;
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #00f2fe;
}

.checkbox-group label {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Texto Legal */
.legal-text {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 2rem;
}

/* Botón Principal (Cian Neón) */
.btn-submit {
    width: 100%;
    background: #00f2fe;
    color: #000000;
    border: none;
    padding: 0.85rem;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.btn-submit:hover {
    background: #38ef7d;
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.6);
}

/* Divisor O */
.auth-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.auth-divider span {
    background: #080810;
    padding: 0 0.8rem;
    color: #a1a1aa;
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

/* Opción de Iniciar Sesión */
.login-switch {
    text-align: center;
}

.login-switch p {
    color: #cbd5e1;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(168, 85, 247, 0.5);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-sizing: border-border-box;
}

.btn-secondary:hover {
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}
/* ========================================== */
/* SECCIONES Y FILAS DE PROYECTOS             */
/* ========================================== */

.projects-container {
    max-width: 1150px;
    margin: 3rem auto 6rem auto;
    padding: 0 1.5rem;
}

.project-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(8, 8, 16, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-row:hover {
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

/* Invierte la posición de la imagen y el texto en filas pares */
.project-row.reverse {
    flex-direction: row-reverse;
}

.project-img-box {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    max-height: 280px;
}

.project-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-row:hover .project-img-box img {
    transform: scale(1.04);
}

.project-info-box {
    flex: 1;
}

.project-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.project-info-box h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin: 1rem 0 0.8rem 0;
}

.project-info-box p {
    color: #a1a1aa;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
}

.btn-project {
    display: inline-block;
    background: linear-gradient(135deg, #00f2fe 0%, #4f46e5 100%);
    color: #000000;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
}

/* ========================================== */
/* SLIDER DE PROYECTOS COLABORATIVOS          */
/* ========================================== */

.collaborative-slider-section {
    margin-top: 5rem;
    text-align: center;
}

.slider-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.slider-subtitle {
    color: #a5b4fc;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 850px;
    margin: 0 auto;
}

.slider-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 12px;
}

.slider-track {
    display: flex;
    width: 200%; /* Permite alternar 2 tarjetas completas */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-card {
    width: 50%;
    box-sizing: border-box;
    padding: 2.5rem;
    background: #080812;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    text-align: center;
}

.slide-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.slide-badge {
    font-size: 0.7rem;
    color: #a855f7;
    font-weight: 800;
    letter-spacing: 1px;
}

.slide-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin: 0.6rem 0;
}

.slide-card p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-secondary-sm {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border: 1px solid #00f2fe;
    color: #00f2fe;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary-sm:hover {
    background: #00f2fe;
    color: #000000;
}

/* Botones Flecha del Slider */
.slider-btn {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #00f2fe;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .project-row, .project-row.reverse {
        flex-direction: column;
        padding: 1.5rem;
    }
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
}
/* ========================================== */
/* SECCIÓN DE ARTÍCULOS Y RECURSOS            */
/* ========================================== */

.resources-container {
    max-width: 1150px;
    margin: 3rem auto 6rem auto;
    padding: 0 1.5rem;
}

.section-heading {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    border-left: 4px solid #00f2fe;
    padding-left: 1rem;
    letter-spacing: 0.5px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(8, 8, 16, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.resource-card:hover {
    border-color: #00f2fe;
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.highlight-card {
    background: rgba(15, 15, 30, 0.85);
    border-color: rgba(0, 242, 254, 0.3);
}

/* BADGES DE FORMATO */
.card-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.badge-guide { background: rgba(168, 85, 247, 0.2); color: #a855f7; border: 1px solid #a855f7; }
.badge-org { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid #3b82f6; }
.badge-video { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid #ef4444; }
.badge-pdf { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid #10b981; }
.badge-course { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }

.resource-card h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.resource-card p {
    color: #a1a1aa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    margin-top: auto;
}

.resource-type {
    font-size: 0.78rem;
    color: #71717a;
}

.btn-resource {
    background: transparent;
    border: 1px solid #00f2fe;
    color: #00f2fe;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-resource:hover {
    background: #00f2fe;
    color: #000000;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.btn-download {
    border-color: #10b981;
    color: #10b981;
}

.btn-download:hover {
    background: #10b981;
    color: #000000;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
/* ========================================== */
/* SECCIÓN DASHBOARD PRODUCTIVIDAD FOCUS      */
/* ========================================== */

.dashboard-container {
    max-width: 1200px;
    margin: 3rem auto 6rem auto;
    padding: 0 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 15, 30, 0.8);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.dashboard-header p {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.user-badge-level {
    text-align: right;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid #a855f7;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

.user-badge-level .badge-title {
    display: block;
    font-size: 0.65rem;
    color: #a855f7;
    letter-spacing: 1px;
}

.user-badge-level strong {
    color: #ffffff;
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.dash-card {
    background: rgba(8, 8, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.dash-card h3 {
    color: #00f2fe;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

/* CÍRCULO Y XP */
.circle-progress-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.circle-progress {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.circle-progress span {
    font-size: 1.5rem;
}

.circle-progress small {
    font-size: 0.65rem;
    color: #a1a1aa;
}

.xp-bar-container {
    margin: 1.5rem 0;
}

.xp-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-bottom: 0.4rem;
}

.xp-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #00f2fe);
}

.quick-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    text-align: center;
}

.quick-stats div {
    color: #fff;
    font-size: 0.85rem;
}

.quick-stats small {
    display: block;
    color: #71717a;
    font-size: 0.7rem;
}

/* TEMPORIZADOR POMODORO */
.pomodoro-timer {
    text-align: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: monospace;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.timer-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-timer {
    background: #00f2fe;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-timer.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dash-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.audio-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #a1a1aa;
}

/* LISTA DE TAREAS */
.todo-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.todo-input-group input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
}

.btn-add {
    background: #a855f7;
    color: #fff;
    border: none;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.todo-list {
    list-style: none;
    padding: 0;
}

.todo-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ccc;
    font-size: 0.88rem;
}

/* BARRAS DE ESTADÍSTICA */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #a1a1aa;
}

.chart-row span:first-child { width: 60px; }

.chart-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.chart-bar-fill {
    height: 100%;
    background: #00f2fe;
    border-radius: 4px;
}

.weekly-history {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-top: 1rem;
}

.day-col {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #71717a;
}

.day-col.active-day {
    border: 1px solid #00f2fe;
    color: #fff;
}

/* PAYWALL OVERLAY */
.paywall-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.paywall-card {
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid #00f2fe;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    text-align: center;
}

.paywall-card .lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.paywall-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: 0.8rem; }
.paywall-card p { color: #a1a1aa; font-size: 0.88rem; line-height: 1.5; margin-bottom: 1.5rem; }
.paywall-actions { display: flex; gap: 1rem; justify-content: center; }
/* ========================================== */
/* SECCIÓN SERVICIOS PSICOLÓGICOS             */
/* ========================================== */

/* 1. HERO CON IMAGEN DE FONDO */
.psychology-hero {
    width: 100%;
    height: 380px;
    background: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    position: relative;
}

.psychology-hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 16, 0.7) 0%, rgba(8, 8, 16, 0.95) 100%),
                radial-gradient(circle at center, rgba(168, 85, 247, 0.25), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}

.psychology-hero .hero-tag {
    color: #00f2fe;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.8rem;
}

.psychology-hero h1 {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.psychology-hero p {
    color: #d4d4d8;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* 2. BLOQUE DE TEXTO E INFORMACIÓN */
.psychology-info-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.info-text-block h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-left: 4px solid #a855f7;
    padding-left: 1rem;
}

.info-text-block p {
    color: #a1a1aa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.psych-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.service-icon {
    font-size: 2rem;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.service-item h3 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.service-item p {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* 3. FORMULARIO DE CONTACTO */
.psychology-contact-section {
    max-width: 800px;
    margin: 0 auto 6rem auto;
    padding: 0 1.5rem;
}

.form-container-card {
    background: rgba(8, 8, 16, 0.85);
    border: 1px solid #00f2fe;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.12);
    border-radius: 14px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    color: #ffffff;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #a1a1aa;
    font-size: 0.88rem;
}

.psych-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; }
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.form-group label {
    color: #d4d4d8;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: #0d0d1a;
    color: #fff;
}

.radio-options {
    display: flex;
    gap: 1.5rem;
    color: #a1a1aa;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.btn-submit-psych {
    background: #00f2fe;
    color: #000000;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit-psych:hover {
    background: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
/* ========================================== */
/* SECCIÓN MÚSICA & REPRODUCTOR FLOTANTE     */
/* ========================================== */

.music-hero {
    background: linear-gradient(180deg, rgba(8, 8, 16, 0.4) 0%, rgba(8, 8, 16, 1) 100%),
                url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 4rem 1.5rem 2rem 1.5rem;
    text-align: center;
}

.music-hero h1 { color: #fff; font-size: 2rem; margin-bottom: 0.5rem; }
.music-hero p { color: #a1a1aa; font-size: 0.95rem; }

.music-container {
    max-width: 1200px;
    margin: 2rem auto 8rem auto;
    padding: 0 1.5rem;
}

/* GRID DE PLAYLISTS */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.playlist-card {
    background: rgba(15, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-card:hover {
    transform: translateY(-5px);
    border-color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.card-cover {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #00f2fe;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.card-info { padding: 1rem; }
.card-info h3 { color: #fff; font-size: 1rem; margin-bottom: 0.3rem; }
.card-info p { color: #a1a1aa; font-size: 0.78rem; line-height: 1.4; margin-bottom: 0.6rem; }
.song-count { color: #a855f7; font-size: 0.7rem; font-weight: bold; }

/* LISTA DE CANCIONES DE LA PLAYLIST */
.current-playlist-section {
    background: rgba(8, 8, 16, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.current-playlist-section h2 { color: #00f2fe; font-size: 1.3rem; margin-bottom: 1rem; }

.song-list { list-style: none; padding: 0; }
.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s;
    color: #d4d4d8;
    font-size: 0.9rem;
}

.song-item:hover { background: rgba(0, 242, 254, 0.1); color: #fff; }
.song-item.active-song { color: #00f2fe; font-weight: bold; }

/* REPRODUCTOR FLOTANTE BOTTOM */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid #00f2fe;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    z-index: 999;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 250px;
}

.player-track-info img {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
}

.player-track-info strong { display: block; color: #fff; font-size: 0.85rem; }
.player-track-info span { color: #a1a1aa; font-size: 0.72rem; }

.player-controls-central {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    max-width: 500px;
}

.buttons-row { display: flex; gap: 1rem; align-items: center; }
.ctrl-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.ctrl-btn.play-main {
    background: #00f2fe;
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    color: #a1a1aa;
    font-size: 0.75rem;
}

.progress-container input[type="range"],
.player-volume-zone input[type="range"] {
    flex: 1;
    accent-color: #00f2fe;
    cursor: pointer;
}

.player-volume-zone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 150px;
    color: #fff;
}

.credits-text {
    font-size: 0.78rem;
    color: #71717a;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .audio-player-bar {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    .player-track-info, .player-volume-zone { width: 100%; justify-content: center; }
}
/* ========================================== */
/* SECCIÓN MODO FOCUS                        */
/* ========================================== */

.focus-hero {
    background: linear-gradient(180deg, rgba(8, 8, 16, 0.5) 0%, rgba(8, 8, 16, 1) 100%),
                url('https://images.unsplash.com/photo-1456513080510-7bf3a84b82f8?auto=format&fit=crop&w=1600&q=80') center/cover;
    padding: 5rem 1.5rem 3rem 1.5rem;
    text-align: center;
}

.focus-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.focus-concept {
    color: #00f2fe;
    font-size: 1.1rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.focus-container {
    max-width: 1100px;
    margin: 3rem auto 5rem auto;
    padding: 0 1.5rem;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.focus-card {
    background: rgba(15, 15, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-6px);
    border-color: #a855f7;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
}

.focus-card-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.focus-card h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.focus-card p {
    color: #a1a1aa;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.btn-focus-link {
    display: inline-block;
    color: #00f2fe;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.btn-focus-link:hover {
    color: #a855f7;
    text-decoration: underline;
}
/* ========================================== */
/* --- WIDGET FLOTANTE FOCUSUW --- */

/* Contenedor transparente (sin cápsula/fondo) separado de la barra */
.ai-launcher-clean {
    position: fixed;
    bottom: 30px;
    right: 55px; /* Separado del borde derecho para no pegar con el scrollbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
}

.ai-launcher-clean:hover {
    transform: scale(1.08); /* Efecto de acercamiento al pasar el mouse */
}

/* Robot con tamaño aumentado y brillo neón */
.ai-robot-icon {
    filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.5));
    animation: floatRobot 3s ease-in-out infinite;
}

.ai-robot-label {
    margin-top: 6px;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
}

/* --- VENTANA PRINCIPAL DEL CHAT --- */
.ai-chat-window {
    position: fixed;
    bottom: 130px;
    right: 40px;
    
    /* Aumentamos las dimensiones generales de la ventana */
    width: 380px;         /* Antes solía tener ~300px o 320px */
    max-width: 90vw;      /* Para que no rompa en pantallas pequeñas de celular */
    height: 480px;        /* Mayor altura para dar espacio al contenido */
    max-height: 80vh;
    
    background: #0f172a;  /* Tono oscuro base */
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    display: none;        /* Controlado por JS */
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

.ai-chat-window.active {
    display: flex !important;
}

/* --- CUERPO INTERNO DEL CHAT --- */
.ai-chat-body {
    flex: 1;              /* Ocupa todo el espacio vertical disponible */
    padding: 16px;
    overflow-y: auto;     /* Permite scroll si el texto es largo */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- FOOTER / CAMPO DE TEXTO E INPUT --- */
.ai-chat-footer {
    padding: 12px 16px;
    background: #1e293b;  /* Fondo contrastado para el input */
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-footer input {
    flex: 1;              /* Obliga al input a expandirse a todo el ancho disponible */
    padding: 10px 14px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

.ai-chat-footer input:focus {
    border-color: #a855f7;
}

.ai-chat-footer button {
    background: #a855f7;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.ai-chat-footer button:hover {
    background: #9333ea;
}

/* --- OPCIONES RÁPIDAS --- */
.ai-quick-options {
    display: flex;
    flex-wrap: wrap;      /* Permite que los botones pasen abajo si no caben */
    gap: 8px;
    margin-top: 8px;
}

.ai-quick-options button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-quick-options button:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
}

/* Animación de flotado suave */
@keyframes floatRobot {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* --- EXPRESIONES DINÁMICAS DEL ROBOT --- */
.ai-robot-icon svg circle,
.ai-robot-icon svg path {
    transition: all 0.3s ease;
}

.ai-robot-icon.express-wink #eye-right {
    transform: scaleY(0.1);
    transform-origin: 62px 38px;
}

.ai-robot-icon.express-happy #eye-left,
.ai-robot-icon.express-happy #eye-right {
    opacity: 0;
}

.ai-robot-icon.express-happy #happy-eyes {
    display: block !important;
}
/* ==========================================================================
   styles.css - SoundWave Focus (Sección Explora)
   ========================================================================== */

/* 1. VARIABLES Y RESET GLOBAL */
:root {
    --bg-main: #0a0c10;
    --bg-card: #121620;
    --bg-card-hover: #1a202c;
    --primary: #38bdf8; /* Cyan Focus */
    --primary-glow: rgba(56, 189, 248, 0.25);
    --secondary: #a855f7; /* Violeta Focus */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #2d3748;
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. HEADER Y NAVEGACIÓN GLOBAL */
header {
    background-color: rgba(10, 12, 16, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* 3. HERO BANNER PRINCIPAL */
.hero {
    padding: 5rem 5% 4rem 5%;
    text-align: center;
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.12) 0%, rgba(10, 12, 16, 1) 60%);
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* 4. TÍTULOS DE SECCIÓN GENÉRICOS */
.section-title-container {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 5. SECCIÓN 1: BUSCADOR Y FILTROS */
.search-section {
    padding: 2rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.filter-bar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    margin-bottom: 3rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: var(--primary);
}

.filter-group select, .filter-group input {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.75rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Grilla de Tarjetas de Espacios */
.spaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Estilos de la tarjeta individual (space-card) */
/* Estos estilos se aplican a las tarjetas generadas por JS */
.space-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.space-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.space-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: var(--bg-card-hover); /* Placeholder color */
}

/* Reutilización de líneas de placeholder del wireframe si no carga imagen */
.space-image::before, .space-image::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--border-color) 50%, transparent calc(50% + 1px));
    opacity: 0.3;
}
.space-image::after {
    background-image: linear-gradient(to top left, transparent calc(50% - 1px), var(--border-color) 50%, transparent calc(50% + 1px));
}

.space-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(5px);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.space-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.space-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.space-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.space-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Clase activa para tags del popover o JS */
.feature-tag.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
}

.space-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.noise-level {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.noise-level i {
    color: var(--secondary);
}

.btn-view {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-view:hover {
    background-color: var(--primary);
    color: var(--bg-main);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* 6. SECCIÓN 2: MAPA INTERACTIVO SIMULADO */
.map-section {
    padding: 4rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.map-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    height: 500px;
    position: relative;
    overflow: hidden;
    /* Fondo estilizado simulando cuadrícula urbana */
    background-image: 
        radial-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.01) 1px, transparent 1px);
    background-size: 20px 20px, 60px 60px, 60px 60px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Pines del mapa (map-pin) */
.map-pin {
    position: absolute;
    width: 38px;
    height: 38px;
    background-color: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 10;
}

.map-pin:hover, .map-pin.active {
    transform: scale(1.15) translateY(-3px);
    background-color: var(--primary);
    color: var(--bg-main);
    box-shadow: 0 0 25px var(--primary);
}

/* Tooltip/Popover del mapa (map-popover) */
.map-popover {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background-color: var(--bg-main);
    border: 1px solid var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 300px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    display: none; /* Oculto por defecto */
    z-index: 100;
    animation: fadeInSlide 0.4s ease;
}

.map-popover.active {
    display: block;
}

.map-popover h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.map-popover p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* 7. SECCIÓN 3: AMBIENTES RECOMENDADOS SEGÚN ACTIVIDAD */
.activities-section {
    padding: 5rem 5%;
    background-color: rgba(18, 22, 32, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.activities-wrapper {
    max-width: 1300px;
    margin: 0 auto;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.activity-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Línea neón superior en hover */
.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.activity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.activity-card:hover::before {
    opacity: 1;
}

.activity-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-shadow: 0 0 15px var(--primary-glow);
}

.activity-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.activity-list {
    list-style: none;
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.activity-list li {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-list li i {
    color: var(--secondary);
    font-size: 0.8rem;
}

/* 8. SECCIÓN 4: RECOMENDACIONES DE PRODUCTIVIDAD (CONSEJOS) */
.tips-section {
    padding: 5rem 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tip-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(20, 26, 38, 0.5) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
}

.tip-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.1);
}

.tip-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.6rem;
    opacity: 0.9;
    font-style: italic;
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.tip-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 9. FOOTER MINIMALISTA */
footer {
    background-color: rgba(10, 12, 16, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* KEYFRAMES ANIMACIONES */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(15px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 10. RESPONSIVIDAD (MEDIA QUERIES) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .spaces-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
    header { padding: 1rem 3%; }
    nav { display: none; } /* En produccion usar menú hamburguesa */
    
    .hero { padding: 4rem 3% 3rem 3%; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }

    .section-title { font-size: 1.8rem; }
    
    .filter-bar { grid-template-columns: 1fr; padding: 1rem; }
    
    .map-container { height: 380px; }
    .map-popover {
        width: calc(100% - 40px);
        bottom: 20px;
        right: 20px;
        left: 20px;
        padding: 1rem;
    }
    
    .activities-grid, .tips-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .activity-card { padding: 2rem 1.5rem; }
}
