:root {
    --bg-dark: #05070a; /* Aún más oscuro y profundo */
    --bg-surface: #0a0e14;
    --bg-panel: #0d1219;
    --text-main: #ffffff;
    --text-muted: #8b95a5;
    --accent-primary: #0066cc; /* Azul más serio y confiable */
    --accent-light: #3399ff;
    --glass-bg: rgba(10, 14, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.03);
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --spacing-section: 8rem;
    --success: #10b981;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-sans); background-color: var(--bg-dark); color: var(--text-main); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* Contenedores Universales */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.py-section { padding: var(--spacing-section) 0; }
.bg-surface { background-color: var(--bg-surface); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.align-center { align-items: center; }

/* Header & Nav */
.header { position: fixed; top: 0; width: 100%; z-index: 100; transition: all 0.4s ease; padding: 2rem 0; border-bottom: 1px solid transparent; }
.header.scrolled { padding: 1rem 0; background: rgba(5, 7, 10, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { max-height: 45px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-links a:not(.btn) { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 400; transition: color 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:not(.btn):hover { color: var(--text-main); }

/* Tipografía Top Level */
h1, h2, h3, h4 { line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; }
.title-xl { font-size: 5.5rem; margin-bottom: 1.5rem; font-weight: 300; }
.title-lg { font-size: 3.5rem; margin-bottom: 1.5rem; }
.title-md { font-size: 2.5rem; margin-bottom: 1rem; }
.text-gradient { background: linear-gradient(135deg, #fff 0%, #555 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.25rem; color: var(--text-muted); font-weight: 300; max-width: 800px; margin-bottom: 3rem; }
.mono-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }

/* Botones Premium */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; border-radius: 2px; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: var(--text-main); color: var(--bg-dark); }
.btn-primary:hover { background: #d0d0d0; }
.btn-secondary { background: transparent; border-color: var(--glass-border); color: var(--text-main); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* Elementos Estructurales / Separadores */
.divider { height: 1px; width: 100%; background: linear-gradient(90deg, transparent, var(--glass-border), transparent); margin: 4rem 0; }

/* Tema Neuronal Canvas */
#neuronal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Dueños / Especialistas */
.owners-section { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: radial-gradient(circle at center, rgba(255,255,255,0.02) 0%, transparent 100%); }
.owner-card { background: var(--bg-surface); border: 1px solid var(--glass-border); display: flex; flex-direction: column; height: 100%; }
.owner-img { width: 100%; height: 500px; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease; border-bottom: 1px solid var(--glass-border); }
.owner-card:hover .owner-img { filter: grayscale(0%); }
.owner-info { padding: 3rem; text-align: center; }
.owner-role { font-family: var(--font-mono); color: var(--accent-primary); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.owner-name { font-size: 2.2rem; margin-bottom: 1rem; }

/* Portafolio Top Level */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.portfolio-item { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 4rem; display: flex; flex-direction: column; transition: all 0.4s; }
.portfolio-item:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.portfolio-type { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1rem; }
.portfolio-actions { margin-top: auto; padding-top: 3rem; display: flex; gap: 1rem; }

/* WhatsApp Flotante */
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; background: #25D366; color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 2rem; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); z-index: 1000; text-decoration: none; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }

/* Panel Admin B2B */
.admin-body { background: var(--bg-panel); height: 100vh; display: flex; overflow: hidden; }
.admin-sidebar { width: 280px; background: var(--bg-dark); border-right: 1px solid var(--glass-border); padding: 2rem; display: flex; flex-direction: column; }
.admin-content { flex: 1; padding: 4rem; overflow-y: auto; }
.admin-menu { list-style: none; margin-top: 3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.admin-menu a { display: block; padding: 1rem; color: var(--text-muted); text-decoration: none; border-radius: 4px; transition: all 0.3s; font-size: 0.95rem; }
.admin-menu a:hover, .admin-menu a.active { background: var(--glass-bg); color: var(--text-main); }
.admin-card { background: var(--bg-dark); border: 1px solid var(--glass-border); padding: 2.5rem; border-radius: 4px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control { width: 100%; background: var(--bg-surface); border: 1px solid var(--glass-border); color: #fff; padding: 1rem; border-radius: 2px; font-family: var(--font-mono); font-size: 0.9rem; }
.form-control:focus { outline: none; border-color: var(--accent-primary); }
.login-container { width: 100%; max-width: 450px; margin: auto; padding: 4rem; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 4px; }

/* Utilities */
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; } .mt-4 { margin-top: 4rem; }

@media (max-width: 1024px) {
    .grid-3, .grid-2, .grid-4, .portfolio-grid { grid-template-columns: 1fr; gap: 2rem; }
    .title-xl { font-size: 3.5rem; }
    .admin-body { flex-direction: column; overflow: auto; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); padding: 1rem; }
    .admin-menu { flex-direction: row; flex-wrap: wrap; margin-top: 1rem; }
}
