/* ==========================================================================
   1. VARIABLES Y BASE (ADN ARPA)
   ========================================================================== */
:root {
    --bg-main: #f8fafc;        
    --bg-section: #f1f5f9;     
    --arpa-blue: #3b82f6;      
    --text-main: #1e293b;      
    --text-muted: #64748b;     
    --accent-gradient: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);
	--font-main: 'Plus Jakarta Sans', sans-serif;
}

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

body { 
   font-family: var(--font-main); 
    background-color: var(--bg-main); 
    color: var(--text-main);
    letter-spacing: -0.02em; /* Un poco mÃ¡s de tracking negativo para elegancia */
    font-weight: 300; /* Peso ligero base */
}

/* TipografÃ­as Especiales */
.serif-italic { font-family: 'Lora', serif; font-style: italic; }
.font-mono { font-family: 'Fira Code', monospace; }

/* ==========================================================================
   2. COMPONENTES GLOBALES (NAV, FOOTER, UTILIDADES)
   ========================================================================== */
/* NavegaciÃ³n Glassmorphism */
.nav-glass { 
    background: rgba(255, 255, 255, 0.75); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
	font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1em;
}
.nav-glass a, button {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    color: var(--text-main);
}
.nav-link:hover { color: var(--arpa-blue); }

/* BotÃ³n Contacto Destacado */
.nav-cta {
    background-color: #000000;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    display: inline-block;
}
.nav-cta:hover {
    background-color: var(--arpa-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Selector de Idioma Lateral */
.lang-switcher { 
    position: fixed; top: 110px; right: 20px; display: flex; flex-direction: column; 
    gap: 8px; background: white; padding: 6px; border-radius: 100px; 
    border: 1px solid rgba(0, 0, 0, 0.05); z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.lang-btn { 
    width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 10px; font-weight: 700; cursor: pointer; transition: 0.3s; 
}
.lang-btn.active { background: #000; color: white; }

/* Mascotas y DecoraciÃ³n */
.cat-container { position: fixed; bottom: -5px; right: 40px; width: 110px; z-index: 100; pointer-events: none; }
.glow-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(59, 130, 246, 0.06), transparent 40%);
    z-index: -1; pointer-events: none;
}
h1, h2, h3, .text-5xl, .text-3xl {
    font-family: var(--font-main);
    font-weight: 200; /* AquÃ­ es donde logras el look "Light" */
    letter-spacing: -0.04em;
}

/* ==========================================================================
   3. ESTILOS ESPECÃFICOS (DESARROLLO / INGENIERÃA)
   ========================================================================== */
/* Terminal */
.terminal-window {
    background: #0f172a; border-radius: 16px; border: 1px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4); position: relative;
}
.code-cursor {
    display: inline-block; width: 8px; height: 15px;
    background: #3b82f6; animation: blink 1s infinite;
    vertical-align: middle; margin-left: 4px;
}
 @keyframes blink { 50% { opacity: 0; } }

/* Tarjetas Modulares */
.service-card {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover { border-color: #3b82f6; transform: translateY(-8px); background: white; }

/* Botones de Stack */
.stack-btn {
    border: 1px solid #e2e8f0; font-size: 10px; font-weight: 800;
    letter-spacing: 0.1em; transition: all 0.3s ease;
}
.stack-btn:hover, .stack-btn.active { background: #0f172a; color: white; border-color: #0f172a; }

/* ==========================================================================
   4. ESTILOS ESPECÃFICOS (METODOLOGÃA / CICLO)
   ========================================================================== */
/* LÃ­nea de tiempo vertical */
.timeline-line {
    position: absolute; left: 50%; width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, #cbd5e1 10%, #cbd5e1 90%, transparent);
    transform: translateX(-50%);
}
.step-number {
    font-size: 5rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   5. ESTILOS ESPECÃFICOS (GLOSARIO / NODOS)
   ========================================================================== */
#graph-container { position: relative; width: 100%; height: 600px; background: white; border-radius: 2rem; overflow: hidden; cursor: grab; }
#graph-container:active { cursor: grabbing; }

.node {
    position: absolute; width: 120px; height: 120px; background: white;
    border: 2px solid #0047AB; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; text-align: center;
    font-size: 11px; font-weight: 700; cursor: pointer; z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    padding: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.node:hover { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 8px 25px rgba(0,71,171,0.2); }
.node.lvl-1 { width: 150px; height: 150px; background: #0047AB; color: white; font-size: 14px; }

line { stroke: #cbd5e1; stroke-width: 1.5; stroke-dasharray: 4; }

/* Popup de Glosario */
#popup {
    display: none; 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    background: white; 
    padding: 2.5rem; 
    border-radius: 32px; 
    z-index: 100;
    max-width: 450px; 
    width: 90%; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}
.overlay { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.2); 
    backdrop-filter: blur(8px); 
    z-index: 90; 
}
/* ==========================================================================
   6. ACORDEONES (FAQ)
   ========================================================================== */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.05); }
.faq-trigger { cursor: pointer; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.5rem 0; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
 .gradient-text {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }
		
		.hanging-indent {
    padding-left: 2rem;
    text-indent: -2rem;
}
/* Hotspots Tooltips */
.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 1rem;
    width: 16rem;
    background-color: black;
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 50;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.group\/hotspot:hover .hotspot-tooltip {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-top: 10px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
#interactive-container {
    width: 100%;
    height: 800px; /* Ajusta segÃºn necesites */
    position: relative;
    background: transparent;
    overflow: hidden;
}

#svgLayer { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 5; 
}
.line-main { 
    stroke: var(--arpa-blue); 
    stroke-width: 4; 
    stroke-linecap: round; 
    transition: all 0.5s ease-out; 
}

.line-sub { 
    stroke: var(--arpa-blue); 
    stroke-width: 2; 
    stroke-dasharray: 6,6; 
    opacity: 0.5; 
}
.node {
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    cursor: pointer; 
    position: absolute; 
    z-index: 20;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 700; 
    text-transform: uppercase; 
    padding: 10px;
}

/* El nÃºcleo (Negro) */
.lvl-1 { 
    width: 140px; height: 140px; 
    background: #000; color: white; 
    font-size: 14px; z-index: 30; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); 
}

/* Ramas principales (Azul Arpa) */
.lvl-2 { 
    width: 115px; height: 115px; 
    background: white; border: 3px solid var(--arpa-blue); 
    color: var(--arpa-blue); font-size: 10px; line-height: 1.2; 
}

/* Conceptos detalle (Gris/Slate) */
.lvl-3 { 
    width: 95px; height: 95px; 
    background: #f8fafc; border: 1.5px solid #cbd5e1; 
    color: #475569; font-size: 9px; line-height: 1.1; 
}
/* Estilo especÃ­fico para las partÃ­culas del Ecosistema de Datos */
.flow-particle {
    fill: #3b82f6; /* Color azul Arpa */
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.8)); /* Efecto de brillo/neÃ³n */
}