/* ==========================================================================
   VARIABLES CSS - Sistema de diseño
   ========================================================================== */
:root {
    /* Colores principales */
    --primary: #005475;
    --primary-dark: #003852;
    --primary-light: #b7d9ff;
    --primary-ultralight: rgba(183, 217, 255, 0.1);
    
    /* Colores secundarios */
    --secondary: #1565C0;
    --accent: #FF6F00;
    --accent-light: #FFF3E0;
    
    /* Estados */
    --danger: #C62828;
    --danger-light: #FFEBEE;
    --success: #2E7D32;
    --success-light: #E8F5E9;
    --warning: #F57C00;
    --warning-light: #FFF3E0;
    
    /* Escala de grises */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Bordes */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Source Serif Pro', Georgia, serif;
    --font-mono: 'Roboto Mono', 'Courier New', monospace;
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */

/* Header principal */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0;
    height: 70px;
    display: flex;
    align-items: center;
}

/* Navbar contenedor */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 40px; /* Espacio entre logo y menú */
}

/* Logo */
.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--gray-900);
    display: flex;
    align-items: baseline;
    gap: 2px;
    z-index: 1001;
}

.logo-dot {
    color: var(--primary);
    font-size: 2rem;
}

/* Contenedor del menú principal */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

/* Items del menú */
.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Enlaces del menú */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 100%;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-item:hover .nav-link {
    color: var(--primary);
    background: var(--primary-ultralight);
    border-bottom-color: var(--primary);
}

/* Menús desplegables */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--primary);
    padding: 24px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Flecha del dropdown */
.dropdown-arrow {
    font-size: 0.8rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Grid de enlaces en dropdown */
.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Enlaces dentro del dropdown */
.dropdown-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--gray-800);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-link:hover {
    background: var(--primary-ultralight);
    border-color: var(--primary);
    transform: translateX(4px);
}

.link-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.link-desc {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: right;
    max-width: 50%;
    line-height: 1.3;
}

/* ==========================================================================
   MENÚ MÓVIL
   ========================================================================== */

/* Botón toggle móvil */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--gray-700);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Overlay móvil */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* Menú móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 80px 24px 40px;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 60px rgba(0, 0, 0, 0.2);
}

.mobile-overlay.active .mobile-menu {
    right: 0;
}

/* Botón cerrar móvil */
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estados activos del toggle */
.mobile-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   CARRUSEL HERO
   ========================================================================== */

.hero-carousel {
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.carousel-container {
    width: 100%;
    height: 80vh;
    position: relative;
}

/* Slides individuales */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Overlay oscuro sobre la imagen */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

/* Contenedor del contenido del slide */
.slide-overlay {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-xl);
    padding: 60px;
    max-width: 800px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.slide-content {
    text-align: center;
}

/* Icono del slide */
.slide-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

/* Título del slide */
.slide-question {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--gray-900);
}

/* Texto del slide */
.slide-answer {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 32px;
    text-align: left;
}

/* Resaltado de texto */
.slide-highlight {
    background: linear-gradient(120deg, var(--primary-ultralight) 0%, transparent 100%);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary);
}

/* Controles del carrusel */
.carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
    border-color: var(--primary);
}

/* Navegación del carrusel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   SECCIÓN: RESPUESTAS RÁPIDAS (PREGUNTAS Y DATOS)
   ========================================================================== */

.questions-section {
    padding: 80px 0;
    background: white;
}

/* Título de sección */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gray-900);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    margin: 16px auto;
    border-radius: 2px;
}

/* Subtítulo de sección */
.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-top: 10px;
}

/* Imagen de cabecera de sección */
.section-header-image {
    margin-bottom: 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Bloque de pregunta individual */
.question-block {
    margin-bottom: 80px;
}

/* Título de la pregunta */
.question-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 16px;
}

.question-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

/* Grid de tarjetas de datos */
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Tarjetas individuales */
.data-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Variantes de tarjetas */
.data-card.bad {
    border-top: 4px solid var(--danger);
}

.data-card.good {
    border-top: 4px solid var(--success);
}

.data-card.excellent {
    border-top: 4px solid var(--primary);
}

/* Contenido de la tarjeta */
.card-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-value {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-value.bad {
    color: var(--danger);
}

.card-value.good {
    color: var(--success);
}

.card-value.excellent {
    color: var(--primary);
}

.card-details {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
}

/* Conclusión de la pregunta */
.card-conclusion {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--accent);
}

.conclusion-label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: block;
}

.conclusion-text {
    color: var(--gray-700);
    line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN: ÍNDICE DE SUPLEMENTOS
   ========================================================================== */

.indice-section {
    padding: 80px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.indice-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Tarjetas de categoría */
.categoria-card {
    background: rgb(235, 235, 235);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    height: 100%;
}

.categoria-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Cabecera de categoría */
.categoria-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
}

.categoria-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

.categoria-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

/* Enlaces de suplementos */
.categoria-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suplemento-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: var(--gray-800);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.suplemento-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.suplemento-nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.suplemento-info {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: right;
    max-width: 60%;
    line-height: 1.3;
}

/* CTA del índice */
.indice-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgb(24, 132, 255);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.cta-text {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 20px;
}

/* Búsqueda en el índice */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 84, 117, 0.1);
}

.search-btn {
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN: ALERTA INDUSTRIAL
   ========================================================================== */

.alert-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.alert-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid var(--accent);
}

.alert-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.alert-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 32px;
}

/* Estadísticas de alerta */
.alert-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.alert-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.4;
}

/* ==========================================================================
   PÁGINA DE ARTÍCULO (MAGNESIO)
   ========================================================================== */

.article-page {
    max-width: 750px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

/* Cabecera del artículo */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.article-category {
    display: inline-block;
    background: rgba(0, 84, 117, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.article-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Imagen principal del artículo */
.article-hero-image {
    width: 100%;
    margin: 2.5rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.article-hero-image:hover img {
    transform: scale(1.02);
}

/* Contenido del artículo */
.article-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-800);
}

/* Primer párrafo destacado */
.article-content > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

/* Títulos dentro del artículo */
.article-content h2 {
    font-family: var(--font-primary);
    font-size: 1.7rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--gray-900);
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--gray-100);
}

.article-content h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--gray-900);
}

.article-content h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 0.8rem;
    color: var(--gray-900);
}

/* Cajas informativas */
.info-box, .warning-box {
    padding: 1.8rem;
    margin: 2.5rem 0;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.info-box {
    background: rgba(0, 84, 117, 0.05);
    border: 1px solid rgba(0, 84, 117, 0.1);
}

.warning-box {
    background: rgba(198, 40, 40, 0.05);
    border: 1px solid rgba(198, 40, 40, 0.1);
}

.info-box::before, .warning-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.info-box::before {
    background: var(--primary);
}

.warning-box::before {
    background: var(--danger);
}

.info-box h4, .warning-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h4::before {
    content: 'ℹ️';
}

.warning-box h4::before {
    content: '⚠️';
}

/* Tablas comparativas */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.5rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.comparison-table th {
    background: var(--primary);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-50);
}

.comparison-table .bad {
    color: var(--danger);
    font-weight: 600;
}

.comparison-table .good {
    color: var(--success);
    font-weight: 600;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--gray-900);
}

/* Imágenes en contenido */
.content-image {
    margin: 2.5rem 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.image-caption {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.8rem;
    font-style: italic;
    line-height: 1.5;
}

/* CTA final del artículo */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #00334a 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
}

.article-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.article-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.article-cta h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    background: white;
    color: var(--primary);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: var(--gray-50);
}

.cta-button.outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button.outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navegación entre artículos */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.article-navigation a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-navigation a:hover {
    color: var(--primary-dark);
}

.article-navigation .prev::before {
    content: '←';
}

.article-navigation .next::after {
    content: '→';
}

.article-navigation .share {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ========================================================================== */

/* Tablet (992px y menos) */
@media (max-width: 992px) {
    .nav-link {
        padding: 0 16px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        min-width: 280px;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-link.special {
        padding: 6px 12px;
    }
}

/* Móvil (768px y menos) */
@media (max-width: 768px) {
    /* Header móvil */
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .header {
        height: 60px;
        padding: 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-dot {
        font-size: 1.7rem;
    }
    
    .navbar {
        gap: 20px;
    }
    
    /* Carrusel móvil */
    .slide-overlay {
        padding: 30px;
        width: 95%;
    }
    
    .slide-question {
        font-size: 1.5rem;
    }
    
    .slide-answer {
        font-size: 0.95rem;
    }
    
    .carousel-nav {
        padding: 0 20px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Sección de preguntas móvil */
    .section-title {
        font-size: 2rem;
    }
    
    .data-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    /* Índice móvil */
    .indice-categorias {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input, .search-btn {
        width: 100%;
    }
    
    .suplemento-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .suplemento-info {
        text-align: left;
        max-width: 100%;
    }
    
    /* Alerta industrial móvil */
    .alert-stats {
        grid-template-columns: 1fr;
    }
    
    .alert-card {
        padding: 32px 24px;
    }
    
    /* Footer móvil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Artículo móvil */
    .article-page {
        margin: 80px auto 40px;
        padding: 0 16px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
    
    .article-hero-image {
        margin: 2rem 0;
    }
    
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.8rem;
    }
    
    .article-cta {
        padding: 2rem 1.5rem;
    }
    
    .article-cta h3 {
        font-size: 1.3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Móvil pequeño (480px y menos) */
@media (max-width: 480px) {
    .slide-overlay {
        padding: 24px;
        backdrop-filter: blur(5px);
    }
    
    .slide-question {
        font-size: 1.3rem;
    }
    
    .carousel-dots {
        bottom: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .article-title {
        font-size: 1.6rem;
    }
    
    .article-content h2 {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   UTILIDADES Y ESTADOS
   ========================================================================== */

/* Estados de hover para mejor UX */
@media (hover: hover) {
    .dropdown-link:hover,
    .suplemento-link:hover,
    .footer-link:hover,
    .article-navigation a:hover {
        transition: all 0.2s ease;
    }
}

/* Soporte para navegadores antiguos */
@supports not (backdrop-filter: blur(20px)) {
    .header {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .carousel-slide::before,
    .slide-overlay {
        background: rgba(255, 255, 255, 0.85);
    }
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Modo oscuro (futura implementación) */
@media (prefers-color-scheme: dark) {
    /* Variables para modo oscuro se agregarán aquí */
}

/* Impresión */
@media print {
    .header,
    .hero-carousel,
    .alert-section,
    .indice-section,
    .article-cta,
    .footer {
        display: none;
    }
    
    .article-page {
        margin: 0;
        padding: 0;
    }
    
    .article-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}