/* -- VARIABLES GLOBALES DE DISEÑO (PALETA DE COLORES Y FUENTES) -- */
:root {
    --bg-dark: #000000; /* Negro puro para el fondo principal */
    --bg-light: #0E1726; /* Azul pizarra para secciones secundarias */
    --text-primary: #E2E8F0; /* Blanco roto para mejor legibilidad */
    --text-secondary: #94A3B8; /* Gris azulado para texto secundario (mejor contraste) */
    --accent: #FFA500; /* Ámbar intenso para acentos */
    --accent-dark: #FF8C00; /* Ámbar más oscuro para efectos hover */
    --font-heading: 'Oswald', sans-serif; /* Fuente para títulos */
    --font-body: 'Montserrat', sans-serif; /* Fuente para el cuerpo de texto */
}

/* -- ESTILOS BASE DEL CUERPO DE LA PÁGINA -- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* -- ESTILO PARA TODOS LOS TÍTULOS -- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* -- CLASES DE UTILIDAD PARA TÍTULOS Y SUBTÍTULOS DE SECCIÓN -- */
/* Estas clases usan @apply de Tailwind para agrupar utilidades comunes. */
/* Es necesario un proceso de build de Tailwind para que esto funcione fuera del <style> tag. */
/* Para un archivo CSS estático, estas clases deberían ser reemplazadas en el HTML. */
/* Por simplicidad, se mantienen aquí, pero ten en cuenta esa limitación. */
.section-title {
    font-size: 2.25rem; /* 36px */
    line-height: 2.5rem; /* 40px */
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}
@media (min-width: 768px) {
    .section-title {
        font-size: 3rem; /* 48px */
        line-height: 1;
    }
}
@media (min-width: 1024px) {
    .section-title {
        font-size: 3.75rem; /* 60px */
    }
}

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem; /* 28px */
    color: var(--text-secondary);
    max-width: 42rem; /* 672px */
}

/* -- ESTILOS PARA EL CONTENEDOR DEL GRÁFICO -- */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
}
@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

/* -- ESTILOS PARA LOS ENLACES DE NAVEGACIÓN (HEADER) -- */
.nav-link {
    color: var(--text-secondary);
    transition: color 0.3s ease-in-out;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}
.nav-link:hover {
    color: var(--text-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease-in-out;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}
.nav-link.active::after {
    width: 100%;
}

/* -- ESTILOS PARA LOS BOTONES -- */
.primary-button {
    background-image: linear-gradient(45deg, var(--accent-dark), var(--accent));
    color: #000000;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.primary-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
}
/* Mejora de accesibilidad para el foco del teclado */
.primary-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* -- ESTILOS PARA LA ANIMACIÓN DE SCROLL -- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -- CLASE PARA OCULTAR LA BARRA DE SCROLL EN EL MENÚ MÓVIL -- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* -- ESTILO PARA EL CANVAS DE LA ANIMACIÓN DEL HERO -- */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8; 
}
