﻿/* 🧱 FUENTES SOBERANAS (Local Assets) */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-300.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-500.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-600.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-400.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-300.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-200.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: url('../fonts/Outfit-500.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #000000;
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-sec: #555555;
    --text-muted: #666666;
    --border: rgba(0, 0, 0, 0.08);
    --font-display: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
    --container-max: 1280px;
    --gap-base: 1.5rem;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-sec: #bbbbbb;
    --text-muted: #aaaaaa;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.node-label {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav-static {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.nav-static span {
    cursor: pointer;
    transition: var(--transition);
}

.hero-technical {
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.main-titular {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.intellectual-p {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    color: var(--text-sec);
    max-width: 800px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.indicators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.indicator-item {
    flex: 1 1 200px;
}

.indicator-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.indicator-value {
    font-size: 0.9rem;
    font-weight: 500;
}

section {
    padding: 5rem 0;
}

.technical-h2 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    margin-bottom: 4rem;
    text-align: center;
    font-weight: 500;
    /* Aumentar peso para legibilidad */
}

.dark-tall-section .technical-h2 {
    color: #aaaaaa;
    /* Forzar contraste en fondos oscuros */
}

.solutions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
}

.solution-item h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.solution-item p {
    font-size: 0.95rem;
    color: var(--text-sec);
    line-height: 1.8;
}

.dark-tall-section {
    background-color: #000;
    color: #fff;
    padding: 8rem 0;
}

body.dark-mode .dark-tall-section {
    background-color: #080808;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 5rem;
}

.footer-content {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section>.container {
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 768px) {
    .header-content .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    .hero-technical {
        min-height: 85vh;
    }

    section {
        padding: 8rem 0;
    }
}

/* --- FOOTER SPECIFIC CLASSES --- */
.footer-links {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sec);
    margin-bottom: 1.5rem;
}

.footer-loc {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3rem;
}

.mode-toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 0;
}

.mode-toggle-btn:hover {
    border-color: var(--text-main);
    transform: scale(1.05);
}
/* ACIDE: Sovereign Dark Mode Core */
body.dark-mode { 
  --bg-color: #050505 !important; 
  --text-color: #ffffff !important; 
  --color-border: #333333 !important; 
  background-color: var(--bg-color) !important; 
  color: var(--text-color) !important; 
}
body.dark-mode .footer-content, body.dark-mode .header-content { 
  background-color: var(--bg-color) !important; 
  border-bottom: 1px solid var(--color-border) !important; 
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode p, body.dark-mode span, body.dark-mode a, body.dark-mode .node-label, body.dark-mode .nav-static span { 
  color: var(--text-color) !important; 
}
body.dark-mode .nav-static span { opacity: 0.8 !important; }
body.dark-mode section { background-color: transparent !important; }
