/* =========================================
   1. RESETEO BÁSICO Y PROTECCIÓN MÓVIL
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box !important; 
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

html, body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh; 
    overflow-x: hidden !important; 
    overscroll-behavior-x: none; 
    position: relative;
    background: #fdfdfd; 
    color: #1e293b; 
}

.scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(148, 163, 184, 0.16);
    z-index: 9998;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: rgb(30, 41, 59);
    box-shadow: 0 0 12px rgba(30, 41, 59, 0.28);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.12s ease-out;
}

a, button, input, select, textarea {
    touch-action: manipulation;
}

main, .error-container, .content-wrapper {
    margin-top: 80px; 
}

/* =========================================
   2. NAVBAR - DISEÑO PRINCIPAL (FIJA)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    padding: 1rem 5%;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    height: 80px;
}

.navbar-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.03); 
}

.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.navbar-menu li a {
    color: #334155; 
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 5px; 
    position: relative; 
    transition: color 0.3s ease;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px; 
    bottom: 0;
    left: 0;
    background-color: #65789A;
    transition: width 0.3s ease; 
}

.navbar-menu li a:hover {
    color: #526684; 
}

.navbar-menu li a:hover::after {
    width: 100%; 
}

.navbar-menu li a.is-active {
    color: #526684;
}

.navbar-menu li a.is-active::after {
    width: 100%;
}

.btn-lang {
    background-color: transparent;
    color: #65789A;
    border: 1.5px solid #65789A;
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background-color: #65789A;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(101, 120, 154, 0.3);
}

.nav-consultoria {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid rgba(101, 120, 154, 0.45);
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.nav-consultoria:hover {
    color: #ffffff;
    border-color: #65789A;
    background: #65789A;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(101, 120, 154, 0.28);
}

/* =========================================
   3. BOTÓN HAMBURGUESA
   ========================================= */
.hamburger {
    display: none; 
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative; 
    z-index: 10000; 
}

.hamburger .line {
    width: 24px;
    height: 2px;
    background-color: #334155;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   4. SECCIÓN HERO
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; 
    margin-top: 0 !important; 
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 2;
}

.hero-title {
    position: relative;
    z-index: 3; 
    color: #ffffff;
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    font-weight: 800;
    text-align: center;
    padding: 0 5%;
    max-width: 1000px;
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   5. SECCIÓN ACERCA DE (ESTRUCTURA GENERAL)
   ========================================= */
.about-section {
    padding: 48px 5% 36px; 
    max-width: 1400px; 
    margin: 0 auto;
    margin-top: 0 !important;
}

.about-top-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr; 
    gap: 60px; 
    align-items: center; 
    margin: 0 auto 52px; 
    max-width: 1050px; 
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(101, 120, 154, 0.15); 
}

.about-header {
    position: relative;
    padding-right: 20px; 
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    color: #556987;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-kicker::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #65789A;
}

.section-title {
    font-size: 2.4rem; 
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15; 
    letter-spacing: -1px;
    text-wrap: balance; 
}

.about-description {
    position: relative;
    padding-left: 40px; 
    border-left: 2px solid rgba(101, 120, 154, 0.2); 
}

.description-text {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: #475569; 
    max-width: 100%; 
}

.description-text span {
    color: #0f172a;
    font-weight: 700;
    border-bottom: 2px solid rgba(101, 120, 154, 0.3);
}



/* =========================================
   ESTADO VACÍO - ESTILO EDITORIAL / PREMIUM
   ========================================= */

.editorial-news-section {
    padding: 0 5% 22px;
    /* background-color: #ffffff; Fondo totalmente blanco y limpio */
    width: 100%;
}

.news-page-section {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 28px 5% 36px;
    display: flex;
    align-items: center;
}

.news-page-section .editorial-container {
    max-width: 1400px;
    width: 100%;
}

.news-page-section .editorial-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
}

.news-grid-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.editorial-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Encabezado limpio */
.editorial-header {
    border-bottom: 1px solid rgba(101, 120, 154, 0.2); /* Línea sutil en toda la caja */
    padding-bottom: 20px;
    margin-bottom: 80px;
}

.editorial-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

/* Subrayado indicador debajo de "All Posts" */
.editorial-label::after {
    content: '';
    position: absolute;
    bottom: -21px; /* Lo baja hasta tocar la línea del header */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #65789A;
}

/* Contenedor del mensaje */
.editorial-empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.editorial-empty-inner {
    text-align: center;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* El detalle premium: una línea fina en lugar de un icono pesado */
.editorial-accent-line {
    width: 1px;
    height: 60px;
    background-color: #65789A;
    margin-bottom: 35px;
}

/* Tipografía elegante */
.editorial-empty-title {
    font-size: 2.8rem;
    color: #0f172a;
    font-weight: 400; /* Peso ligero para más elegancia */
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-family: 'Georgia', 'Times New Roman', serif; /* Opcional: fuente serif le da un toque de periódico financiero */
}

.editorial-empty-desc {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.8;
    font-weight: 300;
}



/* =========================================
   5.1. GRILLA DE INDUSTRIAS (ESTILO CYBER-PREMIUM ESTATICO)
   ========================================= */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-inline: auto;
}
  
.industry-card {
    position: relative;
    width: 100%;
    height: 250px; 
    border-radius: 8px; 
    background: linear-gradient(135deg, #0f172a, #1e293b); 
    border: 1px solid rgba(101, 120, 154, 0.2);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
  
.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}
  
/* --- Textos de la Tarjeta --- */
.ind-number-3d {
    position: absolute;
    top: 35px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #65789A;
    text-align: center;
    width: 100%;
    transition: all 400ms ease-in-out; 
}
  
.ind-name-3d {
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    z-index: 20;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 22px; 
    font-weight: 400;
    letter-spacing: 1px;
    text-align: center;
    width: 90%;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(101, 120, 154, 0.4);
    transition: all 400ms ease-in-out;
    word-break: keep-all;
    hyphens: none; 
}
  
/* --- Efectos visuales base --- */
.glowing-elements { position: absolute; inset: 0; pointer-events: none; }
  
.glow-1, .glow-2, .glow-3 {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(101, 120, 154, 0.2) 0%, transparent 70%);
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
  
.glow-1 { top: -20px; left: -20px; }
.glow-2 { top: 50%; right: -30px; transform: translateY(-50%); }
.glow-3 { bottom: -20px; left: 30%; }
  
.card-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #65789A;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}




@keyframes particleFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(calc(var(--x, 0) * 30px), calc(var(--y, 0) * 30px)); opacity: 0; }
}
  
.card-particles span:nth-child(1) { --x: 1; --y: -1; top: 40%; left: 20%; }
.card-particles span:nth-child(2) { --x: -1; --y: -1; top: 60%; right: 20%; }
.card-particles span:nth-child(3) { --x: 0.5; --y: 1; top: 20%; left: 40%; }
.card-particles span:nth-child(4) { --x: -0.5; --y: 1; top: 80%; right: 40%; }
.card-particles span:nth-child(5) { --x: 1; --y: 0.5; top: 30%; left: 60%; }
.card-particles span:nth-child(6) { --x: -1; --y: 0.5; top: 70%; right: 60%; }

/* Resplandor general de fondo */
.industry-card::before {
    content: "";
    background: radial-gradient(circle at center, rgba(101, 120, 154, 0.15) 0%, transparent 60%);
    filter: blur(20px);
    opacity: 0;
    width: 150%;
    height: 150%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Detalles Cyber / Decoración */
.card-glare {
    position: absolute; inset: 0;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 55%, transparent 100%);
    opacity: 0; transition: opacity 300ms;
}
  
.cyber-lines span { position: absolute; background: linear-gradient(90deg, transparent, rgba(101, 120, 154, 0.4), transparent); }
.cyber-lines span:nth-child(1) { top: 20%; left: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: left; animation: lineGrow 3s linear infinite; }
.cyber-lines span:nth-child(2) { top: 40%; right: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: right; animation: lineGrow 3s linear infinite 1s; }
.cyber-lines span:nth-child(3) { top: 60%; left: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: left; animation: lineGrow 3s linear infinite 2s; }
.cyber-lines span:nth-child(4) { top: 80%; right: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: right; animation: lineGrow 3s linear infinite 1.5s; }
  
.corner-elements span { position: absolute; width: 15px; height: 15px; border: 1px solid rgba(101, 120, 154, 0.3); transition: all 0.3s ease; }
.corner-elements span:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner-elements span:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner-elements span:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner-elements span:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
  
.scan-line {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(101, 120, 154, 0.1), transparent);
    transform: translateY(-100%); animation: scanMove 3s linear infinite;
}
  
@keyframes lineGrow { 0% { transform: scaleX(0); opacity: 0; } 50% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(0); opacity: 0; } }
@keyframes scanMove { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.noselect { user-select: none; }

/* =========================================
   INTERACCIÓN AL PASAR EL MOUSE (HOVER SIMPLIFICADO)
   ========================================= */

.industry-card:hover { 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(101, 120, 154, 0.6); 
}

.industry-card:hover::before { opacity: 1; }
.industry-card:hover .card-glare { opacity: 1; }
.industry-card:hover .glowing-elements div { opacity: 1; }
.industry-card:hover .card-particles span { animation: particleFloat 2s infinite; }

.industry-card:hover .ind-name-3d {
    transform: translate(-50%, -55%); 
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
}

.industry-card:hover .ind-number-3d {
    color: #ffffff; 
    text-shadow: 0 0 10px rgba(101, 120, 154, 0.5);
}

.industry-card:hover .corner-elements span { 
    border-color: #65789A; 
    box-shadow: 0 0 5px rgba(101, 120, 154, 0.5); 
}

/* =========================================
   6. FOOTER PROFESIONAL
   ========================================= */
.footer {
    background: #1e293b;
    padding: 34px 5% 0;
    border-top: 5px solid #65789A;
    position: relative;
    z-index: 10;
    margin-top: 0 !important;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.8fr 1.50fr;
    gap: 20px;
    max-width: 1540px;
    margin: 0 auto;
    align-items: start;
    padding-bottom: 4px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    position: relative;
}

.footer-section:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 3px;
    height: 100%;
    border-radius: 999px;
}

.footer-section-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(8, 15, 30, 0.16);
}

.footer-brand {
    font-size: 1.7rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.footer-subtitle {
    font-size: 0.68rem;
    color: #b8c7e3;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.6px;
}

.footer-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #f8fafc;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    letter-spacing: 1.2px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 28px;
    height: 2px;
    background: #8ea2c8;
}

.footer-title-spaced {
    margin-top: 8px;
}

.footer-title-tight {
    margin-bottom: 8px;
}

.footer-info {
    list-style: none;
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info li {
    font-size: 0.88rem;
    color: rgba(226, 232, 240, 0.84);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.45;
}

.footer-info .footer-info-icon {
    width: 20px;
    min-width: 20px;
    display: inline-flex;
    justify-content: center;
    margin-top: 2px;
    font-style: normal;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 4px;
}

.footer-lang-switch {
    margin: 0 0 8px;
}

.footer-lang-btn {
    color: #dbe6fb;
    border-color: rgba(184, 199, 227, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

.footer-lang-btn:hover {
    background: #8ea2c8;
    border-color: #8ea2c8;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(142, 162, 200, 0.28);
}

/* =========================================
   REDISEÑO: ELEGANCIA Y EQUILIBRIO (SIN CHOQUES)
   ========================================= */

.about-hero-modern {
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 36px 5% 48px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1250px;
    margin: 0 auto;
    width: 100%;
}

/* Título superior con mucho aire */
.hero-header-text {
    margin-bottom: 36px;
}

.main-display-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 850;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -2.5px;
}

.text-indigo {
    color: #65789A;
    display: block; /* Hace que el color vaya abajo para mejor ritmo */
}

/* Layout de dos columnas limpias */
.hero-main-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

/* Estilo de Imagen */
.hero-visual-frame {
    position: relative;
}

.image-wrapper-border {
    position: relative;
    z-index: 2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.image-wrapper-border img {
    width: 100%;
    display: block;
    transform: scale(1.01);
}

.floating-accent-box {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 88px;
    height: 88px;
    border-top: 3px solid #65789A;
    border-left: 3px solid #65789A;
    z-index: 1;
}

/* Estilo de Contenido */
.content-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tag-line {
    width: 30px;
    height: 2px;
    background: #65789A;
}

.tag-text {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #65789A;
}

.content-headline {
    font-size: 1.7rem;
    line-height: 1.28;
    color: #1e293b;
    margin-bottom: 22px;
    font-weight: 400;
}

.weight-700 {
    font-weight: 700;
    color: #0f172a;
}

.content-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 14px;
}

.inline-bold {
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid rgba(101, 120, 154, 0.3);
}

.secondary-info {
    font-size: 0.92rem !important;
    opacity: 0.8;
}

/* Responsividad */
@media (max-width: 992px) {
    .about-hero-modern {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
        padding: 28px 5% 36px;
    }

    .hero-main-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-header-text { margin-bottom: 24px; }
    .main-display-title { font-size: 3rem; }
}


.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.12);
}

.social-link .icon {
    position: relative;
    z-index: 2;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.25);
}

.social-facebook::before {
    background: radial-gradient(circle, rgba(24, 119, 242, 0.95) 0%, rgba(24, 119, 242, 0.82) 60%, rgba(24, 119, 242, 0.68) 100%);
    box-shadow: 0 0 22px rgba(24, 119, 242, 0.45);
}

.social-facebook:hover {
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.35);
}

.social-instagram {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.25);
}

.social-instagram::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 8%, #fd5949 32%, #d6249f 65%, #285aeb 100%);
    box-shadow: 0 0 22px rgba(214, 36, 159, 0.38);
}

.social-instagram:hover {
    box-shadow: 0 10px 25px rgba(214, 36, 159, 0.3);
}

.social-linkedin {
    color: #0a66c2;
    border-color: rgba(10, 102, 194, 0.25);
}

.social-linkedin::before {
    background: radial-gradient(circle, rgba(10, 102, 194, 0.95) 0%, rgba(10, 102, 194, 0.82) 65%, rgba(10, 102, 194, 0.68) 100%);
    box-shadow: 0 0 22px rgba(10, 102, 194, 0.4);
}

.social-linkedin:hover {
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.32);
}

.social-x {
    color: #111827;
    border-color: rgba(17, 24, 39, 0.2);
}

.social-x::before {
    background: radial-gradient(circle, rgba(31, 41, 55, 0.96) 0%, rgba(17, 24, 39, 0.88) 65%, rgba(0, 0, 0, 0.72) 100%);
    box-shadow: 0 0 22px rgba(17, 24, 39, 0.35);
}

.social-x:hover {
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.28);
}

.footer-map {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 2px;
}

.footer-map iframe {
    display: block;
    min-height: 150px;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-section-form .footer-title {
    margin-bottom: 10px;
}

.footer-form input, 
.footer-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    font-size: 0.9rem;
    color: #0f172a;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #64748b;
}

.footer-form textarea {
    resize: vertical;
    min-height: 90px;
    max-width: 100%;
}

.footer-form input:focus, 
.footer-form textarea:focus {
    border-color: #8ea2c8;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(142, 162, 200, 0.12), 0 16px 32px rgba(15, 23, 42, 0.14);
}

.footer-form .field-error {
    display: none;
    margin-top: 0;
    font-size: 0.68rem;
    line-height: 1.15;
    font-weight: 700;
    color: #ef4444;
}

.footer-form .field-error.is-visible {
    display: block;
}

.footer-form .form-status {
    display: none;
    margin-top: 2px;
    font-size: 0.74rem;
    line-height: 1.3;
    font-weight: 700;
}

.footer-form .form-status.is-visible {
    display: block;
}

.footer-form .form-status.is-success {
    color: #86efac;
}

.footer-form .form-status.is-error {
    color: #fca5a5;
}

.footer-form input.is-invalid,
.footer-form textarea.is-invalid {
    border-color: #ef4444;
    background: #fff7f7;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.btn-submit {
    background: #111827;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 22px rgba(9, 14, 28, 0.22);
}

.btn-submit:hover {
    background: #0b1222;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(9, 14, 28, 0.38);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid #fff;
    background-color: #5d718f;
    margin-top: 18px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 16px 5%;
    width: 100vw;
    font-size: 0.76rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: #ffffff;
}

/* =========================================
   7. DISEÑO RESPONSIVO (UNIFICADO)
   ========================================= */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }

    .footer-section-contact {
        grid-column: span 2;
    }

    .footer-section-social,
    .footer-section-language,
    .footer-section-map,
    .footer-section-form {
        grid-column: span 1;
    }

    .footer-section-map,
    .footer-section-form {
        grid-column: span 3;
    }

    .footer-bottom {
        margin-top: 28px;
    }

    .about-top-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
        margin-bottom: 34px;
    }
    .about-description {
        padding-left: 20px;
    }
    .section-title { 
        font-size: 2.2rem; 
    }
    .industry-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    main, .error-container, .content-wrapper {
        margin-top: 70px;
    }

    .navbar {
        padding: 1rem 20px;
        height: 70px;
        background-color: #ffffff !important;
    }

    .scroll-progress {
        top: 70px;
    }

    .navbar-logo img {
        height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
    }

    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar-menu li a {
        font-size: 1.35rem;
        color: #1e293b;
        padding: 14px 0;
    }

    .navbar-menu li a.is-active {
        color: #65789A;
    }

    .nav-consultoria {
        width: min(320px, 100%);
        justify-content: center;
        padding: 12px 18px;
        border: 1.5px solid rgba(101, 120, 154, 0.45);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        color: #475569;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .nav-consultoria:hover {
        color: #ffffff;
        border-color: #65789A;
        background: #65789A;
        box-shadow: 0 10px 22px rgba(101, 120, 154, 0.28);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 30px 20px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-section-contact,
    .footer-section-social,
    .footer-section-language,
    .footer-section-map,
    .footer-section-form {
        grid-column: auto;
    }

    .footer-brand {
        font-size: 1.55rem;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-map iframe {
        min-height: 180px;
    }

    .footer-form input,
    .footer-form textarea,
    .btn-submit {
        border-radius: 16px;
    }

    .hero {
        min-height: calc(100vh - 70px);
        height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
        height: calc(100dvh - 70px);
    }

    .about-hero-modern {
        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
        padding: 24px 20px 30px;
    }

    .news-page-section {
        min-height: calc(100vh - 70px);
        min-height: calc(100dvh - 70px);
        padding: 24px 20px 30px;
        align-items: flex-start;
    }

    .news-page-section .editorial-header {
        margin-bottom: 22px;
    }

    .news-grid-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-section {
        padding: 36px 20px 28px;
        margin-top: 0 !important;
    }
    
    .about-top-wrapper {
        gap: 24px;
        padding-bottom: 24px;
    }
    .section-kicker {
        font-size: 0.72rem;
        letter-spacing: 2.4px;
    }
    .section-title {
        font-size: 2rem; 
    }
    .about-description {
        padding-left: 16px;
        border-left-width: 3px;
    }
    .description-text {
        font-size: 1rem; 
        line-height: 1.6;
    }
    
    .industry-grid { grid-template-columns: 1fr; gap: 20px; }
    .industry-card { height: 230px; } 
}

@media (max-width: 932px) and (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: 64px;
        padding: 0.75rem 18px;
    }

    .scroll-progress {
        top: 64px;
    }

    main, .error-container, .content-wrapper {
        margin-top: 64px;
    }

    .navbar-menu {
        justify-content: flex-start;
        gap: 10px;
        padding: 84px 20px 24px;
        overflow-y: auto;
    }

    .navbar-menu li a {
        font-size: 1.15rem;
        padding: 10px 0;
    }

    .nav-consultoria {
        width: min(280px, 100%);
        min-height: 42px;
        padding: 10px 18px;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding: 32px 16px 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.05;
        max-width: 760px;
        padding: 0 8%;
    }

    .about-hero-modern,
    .news-page-section {
        min-height: auto;
        padding: 24px 18px 28px;
        align-items: flex-start;
    }

    .about-section,
    .editorial-news-section,
    .premium-data-section,
    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .premium-data-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero-header-text {
        margin-bottom: 24px;
    }

    .main-display-title,
    .section-title {
        font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    }

    .hero-main-layout,
    .about-top-wrapper,
    .news-grid-page,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-top-wrapper {
        padding-bottom: 24px;
    }

    .about-description {
        padding-left: 18px;
    }

    .description-text {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .footer-container {
        gap: 24px;
    }

    .footer-map iframe {
        min-height: 160px;
    }
}

/* =========================================
   8. SECCIÓN DE DATOS - ESTILO PREMIUM GLASSMORPHISM ANIMADO
   ========================================= */
.premium-data-section {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    margin-top: 0 !important;
    overflow: hidden;
}

.data-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.data-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.data-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 2;
}

.data-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    /* Animación de entrada de la tarjeta completa */
    opacity: 0;
    transform: translateY(30px);
    animation: glassFloatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stats-glass-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(101, 120, 154, 0.3);
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; /* Necesario para el efecto shimmer */
}

/* Efecto Shimmer (Destello) cruzando el cristal */
.stats-glass-panel::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%;
    width: 40%; 
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    animation: cyberShimmer 7s infinite ease-in-out;
    pointer-events: none;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    /* Preparación para la animación en cascada */
    opacity: 0;
    transform: translateY(20px);
    animation: statPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tiempos en cascada para cada elemento */
.stat-box:nth-child(1) { animation-delay: 0.4s; }
.stat-box:nth-child(2) { animation-delay: 0.6s; }
.stat-box:nth-child(3) { animation-delay: 0.8s; }
.stat-box:nth-child(4) { animation-delay: 1.0s; }

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(101, 120, 154, 0.5), transparent);
}

.stat-num {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
    transition: all 0.4s ease; /* Transición suave para el hover */
}

.stat-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #65789A;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap; 
}

/* Efecto hover suave en los números (sin esconder información) */
.stat-box:hover .stat-num {
    transform: scale(1.05) translateY(-5px);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 0 45px rgba(101, 120, 154, 0.8);
    color: #ffffff;
}

/* --- KEYFRAMES DE ANIMACIÓN --- */
@keyframes glassFloatIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes statPopIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes cyberShimmer {
    0% { left: -100%; }
    15% { left: 200%; }
    100% { left: 200%; } /* El espacio largo crea una pausa entre destellos */
}

/* =========================================
   9. RESPONSIVIDAD SECCIÓN DE DATOS
   ========================================= */

   /* =========================================
   10. SECCIÓN DE NOTICIAS (GRILLA)
   ========================================= */
.news-section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.news-grid {
    display: grid;
    /* Auto-fill permite que las columnas se adapten solas al ancho disponible */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Tarjeta Individual */
.news-card {
    background: #ffffff;
    border: 1px solid rgba(101, 120, 154, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(101, 120, 154, 0.12);
    border-color: rgba(101, 120, 154, 0.3);
}

/* Imagen de la noticia (o placeholder) */
.news-image {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Efecto de zoom sutil en la imagen al hacer hover */
.news-card:hover .news-image {
    filter: brightness(1.05);
}

/* Gradientes placeholders para que se vea profesional sin imágenes reales */
.bg-gradient-1 { background: linear-gradient(135deg, #0f172a, #334155); }
.bg-gradient-2 { background: linear-gradient(135deg, #1e293b, #65789A); }
.bg-gradient-3 { background: linear-gradient(135deg, #334155, #94a3b8); }
.bg-gradient-4 { background: linear-gradient(135deg, #0f172a, #475569); }
.bg-gradient-5 { background: linear-gradient(135deg, #1e293b, #475569); }

/* Contenido de la tarjeta */
.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el botón quede siempre abajo */
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-date {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-category {
    color: #475569;
    background: rgba(71, 85, 105, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.news-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Empuja el enlace hacia el fondo */
}

.news-link {
    color: #0f172a;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #65789A;
    transition: width 0.3s ease;
}

.news-card:hover .news-link {
    color: #65789A;
}

.news-card:hover .news-link::after {
    width: 100%;
}

.news-image {
    width: 100%;
    height: 200px;
    background-color: #f1f5f9; /* Color gris claro mientras carga la foto */
    position: relative;
    overflow: hidden;
}

/* Estilos directos a la etiqueta img */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se estire o se aplaste */
    display: block;
    transition: transform 0.5s ease; /* Transición suave para el zoom */
}

/* Efecto de zoom sutil en la imagen al hacer hover en la tarjeta */
.news-card:hover .news-image img {
    transform: scale(1.05);
}



@media (max-width: 1024px) {
    .stats-glass-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 0;
        padding: 50px 30px;
    }
    
    .stat-box:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .premium-data-section {
        padding: 80px 20px;
    }

    .stats-glass-panel {
        grid-template-columns: 1fr;
        gap: 40px 0;
        padding: 40px 20px;
        background: rgba(15, 23, 42, 0.8); 
    }

    .stat-box::after {
        display: none;
    }
    
    .stat-num {
        font-size: 3.5rem;
    }

    .news-section {
        padding: 60px 20px;
    }
    .news-grid {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
        gap: 30px;
    }
    .news-image {
        height: 180px;
    }
    .news-content {
        padding: 24px;
    }

}
