/* ==========================================================================
   SISTEMA DE DISEÑO Y VARIABLES (Estética Azul Premium)
   ========================================================================== */
:root {
    /* Paleta de Colores HSL */
    --bg-primary: 224, 71%, 4%;       /* Azul espacio oscuro profundo */
    --bg-secondary: 224, 71%, 7%;     /* Azul un poco más claro para contraste */
    --bg-card: 222, 47%, 11%;         /* Tarjetas base */
    
    --accent-blue: 217, 91%, 60%;      /* Azul eléctrico vibrante */
    --accent-cyan: 188, 86%, 53%;      /* Cian brillante / Neón */
    --accent-purple: 271, 91%, 65%;    /* Púrpura sutil de acento */
    
    --text-primary: 210, 40%, 98%;     /* Blanco cristalino */
    --text-secondary: 215, 25%, 68%;   /* Azul grisáceo suave */
    --text-muted: 215, 16%, 47%;       /* Apagado para etiquetas secundarias */

    /* Glassmorphism y Sombras */
    --glass-bg: rgba(10, 15, 30, 0.55);
    --glass-bg-hover: rgba(16, 24, 48, 0.75);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-glow: rgba(6, 182, 212, 0.25);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);
    --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.25);

    /* Tipografía y Espaciado */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   RESET DE ESTILOS Y CONFIGURACIONES BÁSICAS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    font-family: var(--ff-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Barras de Desplazamiento Personalizadas */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--bg-primary));
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.5);
}

/* Enlaces y Listas */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Contenedores y Secciones */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   FONDOS AMBIENTALES DINÁMICOS
   ========================================================================== */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, hsl(var(--accent-blue)) 0%, transparent 70%);
    animation: pulseGlow 12s infinite alternate;
}

.bg-glow-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--accent-cyan)) 0%, transparent 70%);
    animation: pulseGlow 15s infinite alternate-reverse;
}

.bg-glow-3 {
    top: 40%;
    left: 45%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, hsl(var(--accent-purple)) 0%, transparent 70%);
    opacity: 0.08;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.15) translate(3%, 3%); opacity: 0.22; }
}

/* ==========================================================================
   COMPONENTES PREMIUM: BOTONES Y TEXTOS
   ========================================================================== */
.gradient-text {
    background: linear-gradient(135deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 50%, hsl(var(--accent-purple)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Estructura del Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-glow);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(6, 182, 212, 0.1);
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--ff-heading);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--accent-blue)) 0%, #1e40af 100%);
    color: hsl(var(--text-primary));
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5), var(--shadow-glow-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border);
    color: hsl(var(--text-primary));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-2px);
}

.btn-glow {
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: hsl(var(--accent-cyan));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.btn-glow:hover {
    background: hsl(var(--accent-cyan));
    color: hsl(var(--bg-primary));
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   CABECERA (HEADER) GLASSMORPHIC
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animaciones del Logotipo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 100%);
    position: relative;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    animation: rotateLogo 8s linear infinite;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: hsl(var(--bg-primary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    background: linear-gradient(135deg, hsl(var(--text-primary)) 60%, hsl(var(--accent-cyan)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navegación */
.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--ff-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--accent-cyan)), hsl(var(--accent-blue)));
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--text-primary));
}

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

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: hsl(var(--text-primary));
    font-size: 1.8rem;
    cursor: pointer;
}

/* ==========================================================================
   MENÚ MÓVIL OVERLAY
   ========================================================================== */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(16px);
    z-index: 90;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 0px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu.open {
    height: calc(100vh - 80px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
}

.mobile-nav-link {
    font-family: var(--ff-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
}

.mobile-nav-link:hover {
    color: hsl(var(--accent-cyan));
}

.mobile-btn {
    width: 100%;
    max-width: 250px;
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    color: hsl(var(--accent-cyan));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--ff-heading);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}

.badge-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(var(--accent-cyan));
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-title {
    font-family: var(--ff-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--ff-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 50%, hsl(var(--accent-cyan)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Vista previa interactiva en 3D en el Hero */
.hero-visual {
    perspective: 1000px;
}

.hero-preview-card {
    height: 420px;
    width: 100%;
    transform-style: preserve-3d;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-preview-card:hover {
    transform: rotateY(-2deg) rotateX(4deg) translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 15, 30, 0.3);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots .red { background-color: #ef4444; }
.window-dots .yellow { background-color: #f59e0b; }
.window-dots .green { background-color: #10b981; }

.card-title-bar {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    font-size: 0.7rem;
    color: hsl(var(--accent-cyan));
    background: rgba(6, 182, 212, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    height: calc(100% - 47px);
    position: relative;
}

/* Red Neuronal Animada en Hero */
.synapse-visualizer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-node {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 100%);
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--bg-primary));
    font-size: 1.8rem;
    z-index: 10;
}

.node-pulse {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.4);
    animation: corePulse 3s infinite linear;
    pointer-events: none;
}

@keyframes corePulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.orbit-node {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent-cyan));
    font-size: 1.1rem;
    animation: floatNode 6s infinite ease-in-out;
    animation-delay: var(--delay);
}

.node-1 { top: 15%; left: 15%; }
.node-2 { top: 15%; right: 15%; }
.node-3 { bottom: 15%; left: 20%; }
.node-4 { bottom: 15%; right: 20%; }

@keyframes floatNode {
    0%, 100% { transform: translateY(0) scale(1); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-sm); }
    50% { transform: translateY(-10px) scale(1.05); border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
}

.connection-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.metrics-overlay {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.metric-pill {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.text-cyan { color: hsl(var(--accent-cyan)); }
.text-blue { color: hsl(var(--accent-blue)); }

/* ==========================================================================
   SECCIÓN SECCIONALES: TÍTULOS DE SECCIÓN
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--ff-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: hsl(var(--text-secondary));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SECCIÓN SANDBOX INTERACTIVO (LIENZO SEMÁNTICO)
   ========================================================================== */
.sandbox-card {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 235, 0.08);
}

.sandbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 15, 30, 0.4);
}

.sandbox-title {
    font-family: var(--ff-heading);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sandbox-actions {
    display: flex;
    gap: 0.75rem;
}

/* Lienzo de Dibujo */
.sandbox-viewport {
    position: relative;
    height: 480px;
    overflow: hidden;
    cursor: grab;
    background-color: rgba(3, 7, 18, 0.4);
}

.sandbox-viewport:active {
    cursor: grabbing;
}

.sandbox-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Dejar pasar los clics a los nodos */
}

.sandbox-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.canvas-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(37, 99, 235, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(rgba(6, 182, 212, 0.08) 1px, transparent 1px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
    z-index: 1;
    pointer-events: none;
}

.canvas-instructions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(3, 7, 18, 0.75);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.4rem;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

/* Estilos de los Nodos del Mapa Mental */
.mind-node {
    position: absolute;
    z-index: 10;
    padding: 0.65rem 1.25rem;
    border-radius: 30px;
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: move;
    user-select: none;
    box-shadow: var(--shadow-md);
    transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mind-node:hover {
    transform: scale(1.05);
}

.mind-node:active {
    transform: scale(0.98);
}

.mind-node-btn-del {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.mind-node-btn-del:hover {
    color: #ef4444;
}

/* Variaciones estéticas de nodos según tipo */
.node-type-idea {
    background: rgba(234, 179, 8, 0.12);
    border: 1.5px solid rgba(234, 179, 8, 0.4);
    color: #fef08a;
}
.node-type-idea:hover {
    border-color: rgba(234, 179, 8, 0.8);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.25);
}

.node-type-tarea {
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}
.node-type-tarea:hover {
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.node-type-pregunta {
    background: rgba(168, 85, 247, 0.12);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    color: #e9d5ff;
}
.node-type-pregunta:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.node-type-proyecto {
    background: rgba(6, 182, 212, 0.12);
    border: 1.5px solid rgba(6, 182, 212, 0.4);
    color: #cffafe;
}
.node-type-proyecto:hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Pie del Sandbox */
.sandbox-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 15, 30, 0.4);
}

.node-creator-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-group {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
}

.node-creator-form input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: hsl(var(--text-primary));
    font-family: var(--ff-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.node-creator-form input:focus {
    outline: none;
    border-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    background: rgba(3, 7, 18, 0.8);
}

.select-group select {
    padding: 0.75rem 1.25rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: hsl(var(--text-primary));
    font-family: var(--ff-body);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.select-group select:focus {
    border-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

/* ==========================================================================
   SECCIÓN CARACTERÍSTICAS (Grid)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: hsl(var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    background: hsl(var(--accent-cyan));
    border-color: hsl(var(--accent-cyan));
    color: hsl(var(--bg-primary));
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    transform: scale(1.05) rotate(5deg);
}

.feature-title {
    font-family: var(--ff-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Vistas Previas dentro de Características */
.feature-preview {
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    height: 180px;
    position: relative;
    overflow: hidden;
}

/* Efecto de Brillo Interno que sigue al ratón */
.feature-card .glow-spot {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover .glow-spot {
    opacity: 1;
}

/* Estilos de Vistas Previas Mocks */
.search-preview {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-bar-mock {
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-result-mock .result-item {
    background: rgba(37, 99, 235, 0.08);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.result-item h4 {
    font-size: 0.8rem;
    font-weight: 600;
}

.result-item span {
    font-size: 0.65rem;
    color: hsl(var(--text-muted));
}

.graph-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.graph-nodes-mock {
    position: relative;
    width: 100%;
    height: 100%;
}

.mock-node {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 2;
}

.mock-node.cyan { top: 20%; left: 20%; background-color: hsl(var(--accent-cyan)); box-shadow: 0 0 10px hsl(var(--accent-cyan)); }
.mock-node.blue { top: 30%; right: 20%; background-color: hsl(var(--accent-blue)); box-shadow: 0 0 10px hsl(var(--accent-blue)); }
.mock-node.purple { bottom: 20%; left: 30%; background-color: hsl(var(--accent-purple)); box-shadow: 0 0 10px hsl(var(--accent-purple)); }
.mock-node.cyan-bright { top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%,-50%); background-color: hsl(var(--accent-cyan)); box-shadow: 0 0 20px hsl(var(--accent-cyan)); }

.mock-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.privacy-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-mock {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.shield-main-icon {
    font-size: 3rem;
    color: hsl(var(--accent-cyan));
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.shield-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid hsl(var(--accent-cyan));
    border-radius: 50%;
    top: -5px;
    opacity: 0.5;
    animation: shieldGlow 3s infinite linear;
}

@keyframes shieldGlow {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.shield-tag {
    font-family: var(--ff-heading);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.code-preview {
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.8rem;
    overflow-y: auto;
}

.code-keyword { color: #f472b6; }
.code-class { color: hsl(var(--accent-cyan)); }
.code-method { color: hsl(var(--accent-blue)); }
.code-string { color: #34d399; }

/* ==========================================================================
   SECCIÓN MODO ENFOQUE PROFUNDO
   ========================================================================== */
.focus-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.badge-focus {
    background: rgba(271, 91, 65, 0.08);
    border-color: rgba(271, 91, 65, 0.2);
    color: hsl(var(--accent-purple));
}

.text-left {
    text-align: left;
    margin-left: 0;
}

.focus-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
}

.benefit-item i {
    font-size: 1.25rem;
}

/* Reproductor de Audio */
.focus-player-card {
    padding: 2.5rem;
    position: relative;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(168, 85, 247, 0.08);
}

.player-glow {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

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

.player-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 600;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: hsl(var(--text-muted));
}

.pulse-dot.active {
    background-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 10px hsl(var(--accent-cyan));
}

.player-main-icon {
    font-size: 1.5rem;
    color: hsl(var(--text-muted));
}

/* Visualizador de Ondas Audio */
.wave-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    height: 80px;
    margin-bottom: 2rem;
    position: relative;
}

.wave-bar {
    width: 4px;
    height: 8px;
    background: linear-gradient(to top, hsl(var(--accent-blue)), hsl(var(--accent-cyan)));
    border-radius: 4px;
    transition: height 0.15s ease;
}

.wave-visualizer.playing .wave-bar {
    animation: bounceBar 1.2s ease-in-out infinite alternate;
    animation-delay: var(--d);
}

@keyframes bounceBar {
    0% { height: 8px; }
    100% { height: var(--h); }
}

/* Temporizador Pomodoro */
.timer-container {
    text-align: center;
    margin-bottom: 2.5rem;
}

.timer-display {
    font-family: var(--ff-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
    background: linear-gradient(135deg, #fff 40%, hsl(var(--accent-cyan)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.timer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Canales Sliders */
.sound-channels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.channel-slider {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.channel-slider label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
}

.channel-slider label i {
    font-size: 1.1rem;
    color: hsl(var(--accent-cyan));
}

.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-wrapper input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: hsl(var(--accent-cyan));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    transition: var(--transition-bounce);
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

.slider-value {
    font-family: var(--ff-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    min-width: 35px;
    text-align: right;
}

/* Botones de Control */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.btn-player {
    background: transparent;
    border: none;
    color: hsl(var(--text-secondary));
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-player:hover {
    color: hsl(var(--accent-cyan));
    transform: scale(1.1);
}

.btn-play-pause {
    font-size: 3.5rem;
    color: hsl(var(--text-primary));
}

.btn-play-pause:hover {
    color: hsl(var(--accent-cyan));
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.4));
}

.btn-timer-control {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.btn-timer-control:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FORMULARIO DE ACCESO BETA
   ========================================================================== */
.footer-cta-section {
    padding-bottom: 4rem;
}

.cta-card {
    padding: 5rem 2rem;
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--ff-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-desc {
    color: hsl(var(--text-secondary));
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 2.5rem auto;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 580px;
    margin: 0 auto;
}

.input-wrap {
    flex: 1;
    position: relative;
}

.input-wrap i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
}

.cta-form input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: hsl(var(--text-primary));
    font-family: var(--ff-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.cta-form input:focus {
    outline: none;
    border-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-family: var(--ff-heading);
    font-weight: 600;
    color: #4ade80;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(3, 7, 18, 0.8);
    padding: 5rem 0 2.5rem 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.8fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand-desc {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--text-secondary));
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background: hsl(var(--accent-blue));
    color: hsl(var(--text-primary));
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.footer-links-col h4 {
    font-family: var(--ff-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.footer-links-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

.footer-links-col a:hover {
    color: hsl(var(--accent-cyan));
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2.5rem;
    color: hsl(var(--text-muted));
    font-size: 0.8rem;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        height: auto;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .focus-content {
        text-align: center;
    }
    
    .text-left {
        text-align: center;
        margin-left: auto;
    }
    
    .focus-benefits {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .header-container {
        height: 70px;
    }
    
    .nav {
        display: none;
    }
    
    .header-actions .btn {
        display: none; /* Oculta en móviles para dar espacio al menú */
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badge {
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-visual {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-preview-card {
        height: 350px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .node-creator-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .input-group, .select-group, .node-creator-form button {
        width: 100%;
    }
    
    .cta-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .sandbox-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .sandbox-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
