/*
Theme Name: Decisiones Integradas
Theme URI: https://decisionesintegradas.com
Author: Diego - Decisiones Integradas
Author URI: https://decisionesintegradas.com
Description: Tema custom para Decisiones Integradas - Consultoría de Ingeniería Hídrica y Academia de Formación Especializada.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: decisiones-integradas
Tags: custom-theme, consultoria, lms, ingenieria-hidrica
*/

/* ==========================================================================
   VARIABLES Y RESET
   ========================================================================== */
:root {
    /* Paleta de colores - Inspirada en agua e ingeniería */
    --color-primary: #0A4D68;       /* Azul profundo - agua/confianza */
    --color-primary-light: #088395; /* Azul medio */
    --color-primary-dark: #062C3B;  /* Azul oscuro */
    --color-secondary: #05BFDB;     /* Cian vibrante - innovación */
    --color-secondary-light: #00CFFD;
    --color-accent: #F7A921;        /* Dorado - excelencia/energía */
    --color-accent-dark: #E09000;
    
    /* Neutrales */
    --color-bg: #FAFCFE;
    --color-bg-alt: #EEF4F8;
    --color-bg-dark: #0B1A2B;
    --color-text: #1A2332;
    --color-text-light: #5A6B7D;
    --color-text-inverse: #FFFFFF;
    --color-border: #D1DDE6;
    
    /* Tipografía */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Espaciado */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;
    
    /* Bordes y sombras */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(10, 77, 104, 0.08);
    --shadow-md: 0 4px 16px rgba(10, 77, 104, 0.12);
    --shadow-lg: 0 8px 32px rgba(10, 77, 104, 0.16);
    --shadow-xl: 0 16px 48px rgba(10, 77, 104, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

p {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: 900px;
}

.section {
    padding: var(--space-xl) 0;
}

.section--alt {
    background-color: var(--color-bg-alt);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-text-inverse);
}

.section--dark p {
    color: rgba(255,255,255,0.8);
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.section__title {
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-text-inverse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: rgba(255,255,255,0.4);
}

.btn--secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--color-text-inverse);
    color: var(--color-text-inverse);
}

.btn--accent {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-color: var(--color-accent);
}

.btn--accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn--sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.btn--lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
    .grid--2,
    .grid--3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.site-header {
    position: absolute; /* Cambia fixed por absolute para que no persiga al bajar si no quieres */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent; /* <--- SOLUCIÓN: Transparente */
    backdrop-filter: none;   /* <--- SOLUCIÓN: Sin borroso */
    border-bottom: none;     /* <--- SOLUCIÓN: Sin borde */
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary-dark);
    text-decoration: none;
}

.site-logo__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Navegación principal */
.main-nav__list {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.main-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.main-nav__link:hover,
.main-nav__link--active {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.main-nav__cta {
    margin-left: 0.5rem;
}

/* Menú móvil */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

@media (max-width: 900px) {
    .mobile-toggle { display: block; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        padding: 5rem var(--space-md) var(--space-md);
        z-index: 999;
    }
    
    .main-nav.is-open { right: 0; }
    
    .main-nav__list {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .main-nav__link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }
    
    .main-nav__cta { margin-left: 0; margin-top: 1rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(5, 191, 219, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(247, 169, 33, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Patrón de ondas de agua */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23FAFCFE' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat center bottom;
    background-size: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(4px);
}

.hero__title {
    color: var(--color-text-inverse);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero__title span {
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Indicador visual decorativo */
.hero__visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.06;
    pointer-events: none;
}

.hero__visual svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    .hero__actions {
        flex-direction: column;
    }
    .hero__actions .btn {
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   MANIFIESTO
   ========================================================================== */
.manifiesto {
    text-align: center;
    padding: var(--space-xl) 0;
}

.manifiesto__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manifiesto__title {
    margin-bottom: var(--space-md);
}

.manifiesto__text {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.manifiesto__text strong {
    color: var(--color-primary);
}

.manifiesto__highlight {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-primary-dark);
    font-weight: 500;
}

/* ==========================================================================
   PILARES (Consultoría + Academia)
   ========================================================================== */
.pilares__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .pilares__grid { grid-template-columns: 1fr; }
}

.pilar-card {
    position: relative;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pilar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pilar-card--consultoria {
    background: linear-gradient(160deg, #0A4D68 0%, #062C3B 100%);
    color: white;
}

.pilar-card--academia {
    background: linear-gradient(160deg, #088395 0%, #0A4D68 100%);
    color: white;
}

.pilar-card__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.pilar-card__title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.pilar-card__tagline {
    color: var(--color-secondary-light);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.pilar-card__desc {
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.pilar-card__list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.pilar-card__list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.pilar-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.pilar-card .btn--accent {
    margin-top: auto;
}

/* ==========================================================================
   SOBRE DIEGO
   ========================================================================== */
.about {
    padding: var(--space-xl) 0;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (max-width: 768px) {
    .about__grid { grid-template-columns: 1fr; }
}

.about__image {
    position: relative;
}

.about__image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.about__image-placeholder::after {
    content: 'Foto de Diego';
    font-style: italic;
}

.about__accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about__content {}

.about__name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.about__title {
    margin-bottom: var(--space-md);
}

.about__text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.about__stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* ==========================================================================
   SERVICIOS (Página de Consultoría)
   ========================================================================== */
.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
}

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
}

.service-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   BLOG / RECURSOS
   ========================================================================== */
.post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card__image {
    width: 100%;
    height: 200px;
    background: var(--color-bg-alt);
    object-fit: cover;
}

.post-card__body {
    padding: var(--space-md);
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-xs);
}

.post-card__category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
}

.post-card__date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.post-card__title {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(5,191,219,0.2), transparent 70%);
    pointer-events: none;
}

.cta-banner__title {
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
}

.cta-banner__text {
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto var(--space-md);
    position: relative;
}

.cta-banner__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-md);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: white;
    margin-bottom: var(--space-sm);
}

.site-footer__desc {
    font-size: 0.95rem;
    line-height: 1.7;
}

.site-footer__heading {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: white;
    margin-bottom: var(--space-sm);
}

.site-footer__links {
    list-style: none;
}

.site-footer__links li {
    margin-bottom: 0.5rem;
}

.site-footer__links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--color-secondary-light);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__social {
    display: flex;
    gap: 1rem;
}

.site-footer__social a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-fast);
}

.site-footer__social a:hover {
    color: var(--color-secondary-light);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }


/* Contenedor en cuadrícula responsiva */
.contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 25px;
	margin-top: 50px;
}

/* Diseño de cada tarjeta */
.contact-card {
	background: #ffffff;
	padding: 30px 20px;
	border-radius: 12px;
	text-align: center;
	border: 1px solid #e1e4e8;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

/* Efecto al pasar el mouse (Hover) */
.contact-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.1);
	border-color: #0073aa; /* Color azul corporativo */
}

/* Burbuja del icono */
.icon-bubble {
	width: 60px;
	height: 60px;
	background-color: #f0f7ff;
	color: #0073aa;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px auto;
	font-size: 24px;
}

/* Títulos */
.contact-card h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Textos */
.contact-card p, .contact-card a {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.6;
	margin: 0;
	text-decoration: none;
	display: block; /* Para que cada número quede en una línea */
}

/* Enlaces interactivos */
.contact-card a:hover {
	color: #0073aa;
	font-weight: 600;
}

/* =========================================
       1. VARIABLES Y RESETEO
       ========================================= */
    :root {
      /* Paleta Principal */
      --c-bg: #F7F5F0;
      --c-surface: #FFFFFF;
      --c-surface-alt: #F0EDE6;
      --c-border: #E4E0D8;
      
      /* Texto */
      --c-text: #1A1814;
      --c-text-muted: #6B6560;
      --c-text-light: #9CA3AF;

      /* Acentos de Riesgo (Semáforo Extendido) */
      --c-accent: #D4622B;       /* Naranja Intenso (Acción) */
      --c-accent-hover: #B8501F;
      --c-accent-light: #F2994A;
      
      --c-danger: #DC2626;       /* Rojo (Crítico) */
      --c-danger-bg: #FEE2E2;
      --c-danger-text: #7F1D1D;

      --c-success: #059669;      /* Verde (Controlado/Sostenible) */
      --c-success-bg: #D1FAE5;
      --c-success-text: #064E3B;

      --c-info: #2563EB;         /* Azul (Preventivo) */
      --c-info-bg: #DBEAFE;
      --c-info-text: #1E40AF;

      --c-purple: #7C3AED;       /* Púrpura (Detectivo) */
      --c-purple-bg: #EDE9FE;
      
      --c-yellow: #D97706;       /* Amarillo (Precaución) */
      --c-yellow-bg: #FEF3C7;

      /* Modo Oscuro / Dashboard */
      --c-dark: #0F172A;
      --c-dark-surface: #1E293B;
      --c-dark-border: rgba(255,255,255,0.1);

      /* Tipografía */
      --font-body: 'DM Sans', sans-serif;
      --font-display: 'Instrument Serif', serif;
      --font-mono: 'JetBrains Mono', monospace;
      --font-tech: 'Inter', sans-serif;

      /* Espaciado y Bordes */
      --radius: 16px;
      --radius-sm: 8px;
      --radius-xs: 4px;
      --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    
    html { scroll-behavior: smooth; font-size: 16px; }
    
    body {
      font-family: var(--font-body);
      background: var(--c-bg);
      color: var(--c-text);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* Scrollbar Personalizado */
    ::-webkit-scrollbar { width: 8px; height: 8px; }
    ::-webkit-scrollbar-track { background: var(--c-bg); }
    ::-webkit-scrollbar-thumb { background: #C4BFB6; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--c-text-muted); }

    /* =========================================
       2. NAVEGACIÓN
       ========================================= */
    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      height: 70px;
      display: flex; align-items: center;
      padding: 0 clamp(20px, 5vw, 40px);
      transition: all 0.3s ease;
    }
    .nav.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.5); height: 60px; }
    
    .nav-brand {
      font-family: var(--font-display);
      font-size: 1.5rem; color: #fff;
      margin-right: 2rem; flex-shrink: 0;
      letter-spacing: -0.02em;
      display: flex; align-items: center; gap: 10px;
    }
    .nav-brand em { color: var(--c-accent); font-style: italic; }
    .nav-brand span { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.6; margin-top: 6px; }

    .nav-links {
      display: flex; gap: 4px; align-items: center;
      overflow-x: auto; flex: 1;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }

    .nav-link {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 8px 12px; color: rgba(255,255,255,0.6);
      text-decoration: none; font-size: 0.8rem; font-weight: 500;
      white-space: nowrap; border-radius: var(--radius-sm);
      transition: all 0.2s; cursor: pointer;
      border: 1px solid transparent;
    }
    .nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
    .nav-link.active { 
      color: var(--c-accent); 
      border-color: rgba(212,98,43,0.3); 
      background: rgba(212,98,43,0.1); 
    }

    .nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.15); margin: 0 8px; flex-shrink: 0; }

    .nav-toggle {
      display: none; background: transparent; 
      border: 1px solid rgba(255,255,255,0.3);
      color: #fff; padding: 8px; border-radius: var(--radius-sm);
      cursor: pointer; margin-left: auto;
    }

    @media (max-width: 900px) {
      .nav { height: auto; flex-wrap: wrap; padding: 12px 20px; }
      .nav-toggle { display: block; }
      .nav-links {
        display: none; width: 100%; flex-direction: column;
        align-items: stretch; gap: 2px; padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.1); margin-top: 10px;
      }
      .nav-links.open { display: flex; }
      .nav-link { width: 100%; justify-content: flex-start; padding: 12px; }
      .nav-sep { display: none; }
    }

    /* =========================================
       3. LAYOUT Y TIPOGRAFÍA
       ========================================= */
    .page { padding-top: 70px; }
    .container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
    .section { padding: clamp(60px, 8vw, 100px) 0; position: relative; }

    /* Títulos */
    .h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em; }
    .h2 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; }
    .h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
    
    .label { 
      font-family: var(--font-tech);
      font-size: 0.75rem; font-weight: 700; 
      text-transform: uppercase; letter-spacing: 0.1em; 
      color: var(--c-text-muted); display: block;
    }
    .mono { font-family: var(--font-mono); }

    /* Cards */
    .card {
      background: var(--c-surface); 
      border: 1px solid var(--c-border);
      border-radius: var(--radius); 
      padding: clamp(24px, 4vw, 40px);
      box-shadow: var(--shadow);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
    
    .card-dark {
      background: var(--c-dark); color: #fff;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
      box-shadow: var(--shadow-lg);
      position: relative; overflow: hidden;
    }

    /* Grillas */
    .grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
    .grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
    .grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    
    @media (min-width: 768px) {
      .grid-2 { grid-template-columns: repeat(2, 1fr); }
      .grid-3 { grid-template-columns: repeat(3, 1fr); }
      .grid-4 { grid-template-columns: repeat(4, 1fr); }
    }

    /* =========================================
       4. COMPONENTES UI (Botones, Inputs)
       ========================================= */
    .btn {
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
      padding: 14px 28px; border-radius: 100px; font-weight: 600;
      font-size: 0.9rem; border: none; cursor: pointer;
      font-family: var(--font-tech); transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
      text-decoration: none;
    }
    .btn-accent { 
      background: var(--c-accent); color: #fff; 
      box-shadow: 0 4px 12px rgba(212, 98, 43, 0.3);
    }
    .btn-accent:hover { background: var(--c-accent-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 98, 43, 0.4); }
    
    .btn-ghost { 
      background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); 
    }
    .btn-ghost:hover { background: rgba(255,255,255,0.2); }

    .btn-outline-dark {
        background: transparent; color: var(--c-dark); border: 2px solid var(--c-dark);
    }
    .btn-outline-dark:hover { background: var(--c-dark); color: #fff; }

    /* Inputs y Sliders */
    input[type="range"] {
      -webkit-appearance: none; width: 100%; height: 6px;
      border-radius: 3px; outline: none; background: rgba(0,0,0,0.1);
      margin: 10px 0;
    }
    .card-dark input[type="range"] { background: rgba(255,255,255,0.1); }
    
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 20px; height: 20px;
      border-radius: 50%; background: var(--c-accent); cursor: pointer;
      border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.3);
      transition: transform 0.1s;
    }
    input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

    .input-field {
      width: 100%; padding: 12px 16px; 
      border: 1px solid var(--c-border);
      border-radius: var(--radius-sm); 
      font-family: var(--font-mono); font-size: 0.9rem;
      background: #fff; transition: border-color 0.2s;
    }
    .input-field:focus { outline: none; border-color: var(--c-accent); ring: 2px solid rgba(212,98,43,0.1); }

    .input-dark {
        background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); color: #fff;
    }
    .input-dark:focus { border-color: var(--c-accent); }

    /* =========================================
       5. HERO SECTION
       ========================================= */
    .hero {
      background: var(--c-dark); color: #fff;
      padding: clamp(100px, 15vw, 160px) 0 clamp(60px, 10vw, 100px);
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; inset: 0;
      background: 
        radial-gradient(circle at 80% 20%, rgba(212,98,43,0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 40%);
      z-index: 1;
    }
    .hero-grid {
      position: absolute; inset: 0; opacity: 0.05;
      background-image: 
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
      background-size: 50px 50px;
      z-index: 0;
    }
    .hero-content { position: relative; z-index: 2; max-width: 900px; }
    
    .hero-tag {
      display: inline-flex; align-items: center; gap: 8px;
      font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.15em; color: var(--c-accent);
      margin-bottom: 24px; padding: 6px 16px;
      border: 1px solid rgba(212,98,43,0.3); border-radius: 100px;
      background: rgba(212,98,43,0.1);
    }
    
    .hero-desc {
      color: rgba(255,255,255,0.7); font-size: clamp(1rem, 2.5vw, 1.25rem);
      max-width: 650px; line-height: 1.6; margin-bottom: 40px;
    }

    /* =========================================
       6. SIMULADOR & HEATMAP
       ========================================= */
    .sim-grid {
      display: grid; grid-template-columns: 1fr; gap: 24px;
    }
    @media (min-width: 1024px) {
      .sim-grid { grid-template-columns: 1fr 1.2fr 0.8fr; }
    }

    .slider-row { margin-bottom: 24px; }
    .slider-label {
      display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
    }
    .slider-label span:first-child { font-weight: 600; font-size: 0.9rem; }
    .slider-val { font-family: var(--font-mono); font-weight: 700; }

    .control-row { margin-bottom: 16px; background: rgba(255,255,255,0.5); padding: 10px; border-radius: var(--radius-sm); }
    .control-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
    .dot { width: 10px; height: 10px; border-radius: 50%; }
    
    .result-score {
      font-family: var(--font-mono); font-size: clamp(3rem, 6vw, 5rem);
      font-weight: 800; line-height: 1; letter-spacing: -2px;
    }

    /* Mini Heatmap */
    .mini-hm {
      display: grid; grid-template-columns: repeat(5, 1fr);
      gap: 2px; width: 140px; height: 140px; margin: 20px auto;
    }
    .mini-hm-cell { border-radius: 2px; position: relative; }
    .mini-dot {
      position: absolute; width: 8px; height: 8px; background: #fff;
      border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%);
      box-shadow: 0 0 5px rgba(0,0,0,0.5);
    }

    /* Colores Heatmap */
    .hm-green { background: #4CAF50; }
    .hm-lime { background: #AED581; }
    .hm-yellow { background: #FFD54F; }
    .hm-orange { background: #FFB74D; }
    .hm-red { background: #E57373; }
    .hm-darkred { background: #C62828; }

    /* =========================================
       7. HEATMAP GRANDE (SVG/Canvas style)
       ========================================= */
    .risk-dashboard {
      background: var(--c-dark); color: #fff; padding: 4rem 1rem;
    }
    .glass-container {
        background: rgba(30, 41, 59, 0.7);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 24px;
        padding: 3rem;
        max-width: 1200px; margin: 0 auto;
    }
    .dashboard-grid {
        display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 2rem;
    }
    @media(min-width: 900px) {
        .dashboard-grid { grid-template-columns: 1.5fr 1fr; }
    }

    .heatmap-wrapper {
        position: relative; width: 100%; aspect-ratio: 1;
        background: #1e293b; border-radius: 12px; overflow: hidden;
        border: 2px solid rgba(255,255,255,0.1);
    }
    .matrix-grid {
        display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); height: 100%;
    }
    .cell { border: 1px solid rgba(0,0,0,0.1); transition: opacity 0.2s; }
    .cell.low { background: #064e3b; }
    .cell.med { background: #854d0e; }
    .cell.high { background: #991b1b; }

    .risk-point {
        position: absolute; width: 20px; height: 20px; border-radius: 50%;
        transform: translate(-50%, -50%); z-index: 10;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        border: 2px solid #fff;
    }
    .point-inherent { background: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.6); }
    .point-residual { background: #00f2ff; box-shadow: 0 0 20px rgba(0, 242, 255, 0.6); }

    .vector-overlay {
        position: absolute; top:0; left:0; width:100%; height:100%; pointer-events: none; z-index: 5;
    }
    #risk-path {
        stroke: #fff; stroke-width: 2; stroke-dasharray: 6; opacity: 0.5;
    }

    /* =========================================
       8. ESTADÍSTICA (App)
       ========================================= */
    .stats-section { background: #f8fafc; color: #334155; }
    .stats-container { max-width: 1100px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: var(--shadow-lg); }
    
    .input-wrapper textarea {
        width: 100%; height: 100px; padding: 15px; border: 2px solid #e2e8f0; border-radius: 8px;
        font-family: var(--font-mono); font-size: 1rem; margin-top: 10px;
    }
    .input-wrapper textarea:focus { border-color: var(--c-info); outline: none; }
    
    .metrics-grid {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; margin: 30px 0;
    }
    .metric {
        background: #f1f5f9; padding: 15px; border-radius: 8px; text-align: center;
        border: 1px solid #e2e8f0;
    }
    .metric b { display: block; font-size: 1.4rem; color: #0f172a; margin-top: 5px; }

    /* =========================================
       9. VIDEO WRAPPER & QUOTES
       ========================================= */
    .video-wrap {
      position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
      border-radius: var(--radius); box-shadow: var(--shadow-lg);
      background: #000;
    }
    .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

    .quote-bar {
      padding: 60px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
      background: linear-gradient(90deg, rgba(255,255,255,0), rgba(212,98,43,0.05), rgba(255,255,255,0));
      text-align: center;
    }
    .quote-text {
      font-family: var(--font-display); font-style: italic; font-size: 1.5rem;
      color: var(--c-text); max-width: 800px; margin: 0 auto 10px;
    }
    .quote-author { font-size: 0.8rem; font-weight: 700; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.1em; }

    /* =========================================
       10. ANIMACIONES
       ========================================= */
    @keyframes pulse-soft { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
    .pulse-soft { animation: pulse-soft 2s infinite ease-in-out; }
    
    .glow-red { box-shadow: inset 0 0 80px rgba(220, 38, 38, 0.2); }
    .glow-orange { box-shadow: inset 0 0 80px rgba(212, 98, 43, 0.2); }
    .glow-green { box-shadow: inset 0 0 80px rgba(5, 150, 105, 0.2); }

	/* Estilos Generales del Footer */
	.site-footer {
		background-color: #0A1628; /* Azul Oscuro Profundo */
		color: #e2e8f0;
		padding: 60px 0 20px;
		font-size: 0.95rem;
		border-top: 4px solid var(--c-accent); /* Línea de acento superior */
	}

	.site-footer .container {
		max-width: 1200px;
		margin: 0 auto;
		padding: 0 20px;
	}

	/* Grid Layout - Mejor distribución */
	.site-footer__grid {
		display: grid;
		grid-template-columns: 1.8fr 1fr 1fr 1.2fr; /* Primera columna más ancha para el texto */
		gap: 40px;
		margin-bottom: 50px;
	}

	/* Marca y Descripción */
	.site-footer__brand {
		font-family: 'Playfair Display', serif;
		font-size: 1.6rem;
		font-weight: 700;
		color: #fff;
		margin-bottom: 15px;
		font-style: italic;
	}

	.site-footer__desc {
		color: #94a3b8;
		line-height: 1.7;
		margin-bottom: 20px;
	}

	.site-footer__desc strong { color: #fff; }

	.footer-location {
		font-weight: 600;
		color: #00B4D8;
		display: flex;
		align-items: center;
		gap: 8px;
	}

	/* Headings */
	.site-footer__heading {
		color: #fff;
		font-size: 1.15rem;
		margin-bottom: 20px;
		font-weight: 600;
		position: relative;
		padding-bottom: 12px;
	}

	.site-footer__heading::after {
		content: '';
		position: absolute;
		left: 0;
		bottom: 0;
		width: 40px;
		height: 3px;
		background: linear-gradient(to right, var(--c-accent), var(--frog-green)); /* Degradado de acento */
		border-radius: 2px;
	}

	/* Enlaces */
	.site-footer__links {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.site-footer__links li {
		margin-bottom: 12px;
	}

	.site-footer__links a {
		color: #cbd5e1;
		text-decoration: none;
		transition: all 0.3s ease;
		display: inline-block;
	}

	.site-footer__links a:hover {
		color: #00B4D8;
		transform: translateX(5px); /* Pequeño desplazamiento al hacer hover */
	}

	/* --- REDES SOCIALES CORREGIDAS --- */
	.site-footer__desc-sm {
		font-size: 0.9rem;
		margin-bottom: 15px;
		color: #94a3b8;
	}

	.site-footer__social-icons {
		display: flex;
		gap: 12px; /* Espacio entre iconos */
		margin-bottom: 25px;
	}

	.social-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px; /* Tamaño fijo y cuadrado */
		height: 42px;
		background: rgba(255, 255, 255, 0.08); /* Fondo sutil */
		border-radius: 8px; /* Bordes redondeados modernos */
		color: #fff;
		transition: all 0.3s ease;
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	/* Control preciso del tamaño del SVG dentro del contenedor */
	.social-icon svg {
		width: 22px;
		height: 22px;
		fill: currentColor; /* Hereda el color del padre */
	}

	/* Efectos Hover Específicos */
	.social-icon:hover {
		transform: translateY(-3px);
		border-color: transparent;
	}
	.social-icon.yt:hover { background: #FF0000; box-shadow: 0 4px 15px rgba(255,0,0,0.3); }
	.social-icon.ig:hover { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); box-shadow: 0 4px 15px rgba(220,39,67,0.3); }
	.social-icon.li:hover { background: #0077B5; box-shadow: 0 4px 15px rgba(0,119,181,0.3); }

	/* Contacto y Botón */
	.footer-contact-info {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}

	.contact-email {
		font-family: var(--font-mono, monospace);
		font-size: 0.85rem;
		color: #00B4D8;
		text-decoration: none;
		transition: color 0.2s;
	}
	.contact-email:hover { color: #fff; }

	.btn-footer-cta {
		display: inline-block;
		background: linear-gradient(135deg, var(--water-mid), var(--water-ocean));
		color: white;
		padding: 12px 24px;
		border-radius: 50px;
		text-decoration: none;
		font-weight: 600;
		text-align: center;
		transition: all 0.3s;
		box-shadow: 0 4px 10px rgba(0,90,140,0.2);
	}

	.btn-footer-cta:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 15px rgba(0,90,140,0.3);
	}

	/* Barra Inferior */
	.site-footer__bottom {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding-top: 25px;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 0.85rem;
		color: #64748b;
	}

	.copyright strong { color: #fff; }

	.legal-links a {
		color: #64748b;
		text-decoration: none;
		transition: color 0.2s;
	}
	.legal-links a:hover { color: #00B4D8; }
	.legal-links .sep { margin: 0 10px; opacity: 0.5; }

	/* Responsive */
	@media (max-width: 900px) {
		.site-footer__grid {
			grid-template-columns: 1fr 1fr; /* 2x2 en tablets */
			gap: 30px;
		}
		.footer-col-brand { grid-column: 1 / -1; /* La marca ocupa todo el ancho arriba */ }
	}

	@media (max-width: 600px) {
		.site-footer__grid {
			grid-template-columns: 1fr; /* 1 columna en móvil */
			gap: 35px;
		}
		.site-footer__bottom {
			flex-direction: column-reverse; /* Copyright abajo del todo */
			gap: 15px;
			text-align: center;
		}
	}

	/* =======================================================
	   CORRECCIÓN DE EMERGENCIA - FIX FINAL DE CONTRASTE
	   (Pegar al final de style.css)
	   ======================================================= */

	/* 1. Header 100% Transparente (Sin niebla blanca) */
	.home .site-header,
	.page-template-page-inicio .site-header {
		background-color: transparent !important;
		background-image: none !important;
		backdrop-filter: none !important; /* Quita el borroso */
		border-bottom: none !important;
		box-shadow: none !important;
		position: absolute !important; /* Deja que flote sobre el fondo */
	}

	/* 2. Forzar TEXTO BLANCO PURO en la Portada */
	.hero-modern h1,
	.hero-modern h2,
	.hero-modern h3,
	.hero-modern p,
	.hero-modern .hero-title,
	.hero-modern .hero-desc,
	.hero-modern .hero-label {
		color: #ffffff !important; /* Blanco obligado */
		text-shadow: 0 2px 5px rgba(0,0,0,0.5) !important; /* Sombra negra para leer mejor */
		opacity: 1 !important;
		z-index: 9999;
		position: relative;
	}

	/* 3. Asegurar Fondo Azul Oscuro Sólido y Limpio */
	.hero-modern {
		background: radial-gradient(circle at top right, #00619a 0%, #003B5C 100%) !important;
		position: relative;
		z-index: 1;
	}

	/* 4. Eliminar capas decorativas viejas que oscurecen */
	.hero-modern::before,
	.hero-modern::after {
		display: none !important;
	}

	/* 5. Ajuste para las tarjetas de servicio (para que no sean transparentes) */
	.service-card, .expert-card, .modern-post-card {
		background: #ffffff !important;
		color: #334155 !important;
	}
	.service-card h3, .modern-post-card h3 {
		color: #003B5C !important; /* Títulos de tarjetas en azul */
	}

	/* 1. Eliminar espacio superior del contenedor principal */
	.site-content, 
	.site-main, 
	#content, 
	main {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	/* 2. Reducir el bloque blanco donde está el título */
	header.entry-header, 
	.page-header {
		margin: 20px 0 10px 0 !important; /* 20px arriba, 10px abajo */
		padding: 0 !important;
	}

	/* 3. Ajustar el título H1 mismo */
	h1.entry-title, 
	h1.page-title, 
	.entry-header h1 {
		margin-top: 0 !important;
		margin-bottom: 15px !important;
		line-height: 1.2 !important;
	}


/* Si tu tema usa la etiqueta main */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Elimina márgenes extra en el primer bloque de Tailwind */
.entry-content > div:first-child {
    margin-top: 0 !important;
}

/* 1. Elimina el espacio del título de página y cabeceras vacías */
.entry-header, .page-header, .post-header {
    display: none !important;
}

/* 3. Ajusta el margen del primer bloque/párrafo */
.entry-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.page .site-content,
body.page #content,
body.page main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* ═══════════════════════════════════════════════════════════════
   DI OVERRIDES v4.2 — Correcciones de contraste y paleta
   Estos overrides tienen alta especificidad para garantizar
   que el color de texto sea siempre correcto según el fondo.
   REGLA: fondos oscuros (#001D33, #003B5C) → texto #FFFFFF
          fondos claros (#FFFFFF, #F0F6FA) → texto #0A2540
═══════════════════════════════════════════════════════════════ */

/* ── Secciones OSCURAS: TODOS los textos en blanco ── */
.di-hero h1,
.di-hero h2,
.di-hero h3,
.di-hero p,
.sec-navy h1,
.sec-navy h2,
.sec-navy h3,
.sec-navy h4,
.sec-navy p,
.sec-navy .sec-title,
.sec-navy .sec-lbl,
.sec-navy .narrative-step h3,
.sec-navy .narrative-step p,
.cta-final h1,
.cta-final h2,
.cta-final h3,
.cta-final p {
  color: #FFFFFF;
}

/* Excepciones: acento cyan en secciones oscuras */
.sec-navy .sec-lbl,
.cta-final .ct-lbl,
.di-hero .di-hero__eyebrow {
  color: #00B4D8 !important;
}

/* ── Secciones CLARAS: textos oscuros ── */
.sec-light h1,
.sec-light h2,
.sec-light h3,
.sec-light h4,
.sec-light .sec-title,
.sec-light .narrative-step h3,
.sec-light .diff-card h3,
.sec-light .ps-card h3,
.sec-light .diag-prompt,
.sec-light .chart-wrap h3 {
  color: #0A2540;
}

.sec-light p,
.sec-light .narrative-step p,
.sec-light .diff-card p,
.sec-light .ps-card li,
.sec-light .chart-wrap .chart-note,
.sec-light .sec-subtitle {
  color: #334155;
}

.sec-light .sec-lbl {
  color: #0077B6 !important;
}

/* ── Métricas en blanco ── */
.metric-card h3,
.metric-card p,
.metric-card .m-lbl {
  color: #5A7184;
}

/* ── Nav: texto siempre blanco (nav tiene fondo oscuro) ── */
.di-nav h1,
.di-nav h2,
.di-nav h3,
.di-nav p,
.di-nav__logo-text,
.di-nav__logo-tagline,
.di-nav__links a,
.di-nav__cta {
  color: #FFFFFF;
}

/* ── Footer: texto siempre blanco ── */
.di-footer h1,
.di-footer h2,
.di-footer h3,
.di-footer h4,
.di-footer p,
.di-footer__banner h3,
.di-footer__col-title,
.di-footer__stat-num {
  color: #FFFFFF;
}

.di-footer__banner p,
.di-footer__list a,
.di-footer__stat-label {
  color: rgba(255,255,255,0.68);
}

/* ── Simulator: texto blanco ── */
.simulator h3,
.simulator p,
.sim-field label,
.sim-result-lbl,
.sim-result-lbl2,
.sim-footnote {
  color: rgba(255,255,255,0.85);
}

/* ── Sector cards en navy: texto blanco ── */
.sector-card .name,
.sector-card h3 {
  color: #FFFFFF !important;
}

.sector-card .desc,
.sector-card p {
  color: rgba(255,255,255,0.68) !important;
}

/* ── Diff cards en claro ── */
.diff-card h3 { color: #0A2540 !important; }
.diff-card p  { color: #334155 !important; }

/* ── PS cards ── */
.ps-card h3     { color: #0A2540 !important; }
.ps-card li     { color: #334155 !important; }

/* ── Consultoria page overrides ── */
.sv-title       { color: #003B5C !important; }
.sv .sv-title   { color: #003B5C !important; }

/* ── Hero H1 específico ── */
.di-hero__h1 { color: #FFFFFF !important; font-family: 'Playfair Display', serif !important; }
.di-hero__tagline { color: rgba(255,255,255,0.85) !important; }
.di-hero__desc { color: rgba(255,255,255,0.55) !important; }

/* ── p global reset para DI pages ── */
.di-hero p,
.sec-navy p,
.cta-final p,
.simulator p {
  color: rgba(255,255,255,0.82) !important;
  margin-bottom: 0;
}

.sec-light p,
.sec-light.alt p {
  color: #334155 !important;
  margin-bottom: 0;
}

/* ── h tags reset ── */
.sec-navy h1,.sec-navy h2,.sec-navy h3,.sec-navy h4 { color: #FFFFFF !important; font-family: 'Playfair Display', serif; }
.sec-light h1,.sec-light h2,.sec-light h3,.sec-light h4 { color: #0A2540 !important; font-family: 'Playfair Display', serif; }
.cta-final h1,.cta-final h2 { color: #FFFFFF !important; font-family: 'Playfair Display', serif !important; }

/* ── Eliminar margin-bottom de p heredado ── */
.di-hero p,.sec-navy p,.sec-light p,.cta-final p { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   DI EMERGENCY FIX — Pegar al FINAL de style.css
   Usa especificidad máxima para sobreescribir cualquier
   otro estilo que esté rompiendo header y footer.
   ═══════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES GLOBALES (las que faltaban) ── */
:root {
  --navy-2:     #001D33;
  --navy-1:     #001220;
  --blue:       #0077B6;
  --cyan:       #00B4D8;
  --gold-2:     #F4B942;
  --gold-1:     #E9A825;
  --slate-2:    #0077B6;
  --grad-blue:  linear-gradient(135deg, #0077B6, #00B4D8);
  --grad-gold:  linear-gradient(135deg, #E9A825, #F4B942);
  --nav-h:      72px;
  --r-sm:       8px;
  --r-md:       14px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --success:    #22C55E;
}

/* ── 2. NAV: fondo oscuro forzado ── */
nav.di-nav,
#diNav,
.di-nav {
  background-color: #001D33 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0, 180, 216, 0.18) !important;
  box-shadow: none !important;
}

nav.di-nav.scrolled,
#diNav.scrolled,
.di-nav.scrolled {
  background-color: rgba(0, 18, 32, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.35) !important;
}

/* ── 3. LOGO: texto siempre blanco ── */
.di-nav .di-nav__logo-text,
nav.di-nav .di-nav__logo-text,
#diNav .di-nav__logo-text {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

.di-nav .di-nav__logo-tagline,
nav.di-nav .di-nav__logo-tagline,
#diNav .di-nav__logo-tagline {
  color: #00B4D8 !important;
}

/* ── 4. LINKS DE NAV: texto blanco semitransparente ── */
.di-nav .di-nav__links a,
nav.di-nav .di-nav__links a,
#diNav .di-nav__links a,
.di-nav ul.di-nav__links li a {
  color: rgba(255, 255, 255, 0.78) !important;
}

.di-nav .di-nav__links a:hover,
nav.di-nav .di-nav__links a:hover,
.di-nav ul.di-nav__links li a:hover,
.di-nav .di-nav__links a.active,
.di-nav ul.di-nav__links li a.active {
  color: #FFFFFF !important;
}

/* ── 5. BOTÓN CTA: dorado con texto oscuro ── */
.di-nav .di-nav__cta,
nav.di-nav .di-nav__cta,
a.di-nav__cta {
  background: linear-gradient(135deg, #E9A825, #F4B942) !important;
  color: #001D33 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(244, 185, 66, 0.40) !important;
}

.di-nav .di-nav__cta:hover,
a.di-nav__cta:hover {
  color: #001220 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(244, 185, 66, 0.55) !important;
}

.di-nav .di-nav__cta svg,
a.di-nav__cta svg {
  stroke: #001D33 !important;
}

/* ── 6. HAMBURGER: líneas blancas ── */
.di-nav .di-nav__hamburger span,
nav.di-nav .di-nav__hamburger span {
  background-color: rgba(255, 255, 255, 0.85) !important;
}

/* ── 7. MENÚ MÓVIL: fondo oscuro ── */
.di-nav__mobile {
  background-color: rgba(0, 18, 32, 0.98) !important;
  background-image: none !important;
}

.di-nav__mobile a,
.di-nav__mobile ul li a {
  color: rgba(255, 255, 255, 0.78) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.di-nav__mobile a:hover,
.di-nav__mobile ul li a:hover {
  color: #FFFFFF !important;
}

/* ── 8. FOOTER: fondo oscuro forzado ── */
footer.di-footer,
.di-footer {
  background-color: #001D33 !important;
  background-image: none !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

footer.di-footer *,
.di-footer * {
  /* Reset base: hereda color correcto del padre */
  border-color: inherit;
}

.di-footer__body {
  background-color: #001D33 !important;
  background-image: none !important;
}

/* ── 9. FOOTER TEXTOS: blancos ── */
footer.di-footer h3,
footer.di-footer h4,
.di-footer h3,
.di-footer h4,
.di-footer .di-footer__col-title,
.di-footer__banner h3 {
  color: #FFFFFF !important;
}

footer.di-footer p,
.di-footer p,
.di-footer__banner p,
.di-footer__brand-desc {
  color: rgba(255, 255, 255, 0.68) !important;
}

/* ── 10. FOOTER LINKS ── */
.di-footer a.di-footer__list a,
footer.di-footer .di-footer__list a,
.di-footer .di-footer__list a {
  color: rgba(255, 255, 255, 0.60) !important;
  text-decoration: none !important;
}

.di-footer .di-footer__list a:hover {
  color: #FFFFFF !important;
}

/* ── 11. FOOTER STATS ── */
.di-footer .di-footer__stat-num {
  color: #00B4D8 !important;
}

.di-footer .di-footer__stat-label {
  color: rgba(255, 255, 255, 0.48) !important;
}

/* ── 12. FOOTER CONTACTO ── */
.di-footer .di-footer__contact-item {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.di-footer .di-footer__contact-item span {
  color: rgba(255, 255, 255, 0.82) !important;
}

.di-footer .di-footer__contact-item small {
  color: rgba(255, 255, 255, 0.45) !important;
}

.di-footer .di-footer__contact-item svg {
  color: #00B4D8 !important;
  stroke: #00B4D8 !important;
}

/* ── 13. FOOTER SOCIAL ICONS ── */
.di-footer .di-footer__social-icon,
.di-footer .di-footer__social a {
  background-color: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

.di-footer .di-footer__social-icon:hover,
.di-footer .di-footer__social a:hover {
  background-color: #0077B6 !important;
  border-color: #0077B6 !important;
  color: #FFFFFF !important;
}

/* ── 14. FOOTER BARRA INFERIOR ── */
.di-footer .di-footer__copy,
.di-footer .di-footer__bottom p {
  color: rgba(255, 255, 255, 0.48) !important;
}

.di-footer .di-footer__copy strong,
.di-footer .di-footer__bottom strong {
  color: rgba(255, 255, 255, 0.88) !important;
}

.di-footer .di-footer__legal a {
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none !important;
}

.di-footer .di-footer__legal a:hover {
  color: #00B4D8 !important;
}

/* ── 15. FOOTER SECTORES ── */
.di-footer .di-footer__sectors {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.di-footer .di-footer__sectors-label {
  color: rgba(255, 255, 255, 0.40) !important;
}

/* ── 16. PILLS ── */
.di-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(0, 180, 216, 0.12) !important;
  border: 1px solid rgba(0, 180, 216, 0.28) !important;
  color: #00B4D8 !important;
}

.di-pill--success {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.30) !important;
  color: #4ADE80 !important;
}

/* ── 17. BOTÓN DI-BTN--GOLD ── */
.di-btn.di-btn--gold,
a.di-btn.di-btn--gold,
.di-footer .di-btn--gold {
  background: linear-gradient(135deg, #E9A825, #F4B942) !important;
  color: #001D33 !important;
  border: none !important;
}

.di-btn.di-btn--gold:hover,
a.di-btn.di-btn--gold:hover {
  color: #001220 !important;
  box-shadow: 0 8px 24px rgba(244, 185, 66, 0.50) !important;
}

/* ── 18. NEUTRALIZAR OVERRIDES DE site-header EN EL NAV ── */
/* El style.css tenía .site-header { background: transparent } 
   que posiblemente se aplica también al di-nav */
.di-nav:not(.site-header),
body nav.di-nav {
  background-color: #001D33 !important;
}