/* Importar fuente oficial del manual de marca */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Paleta Oficial Grupo ANPISA */
  --ink: #193256;         /* Azul más oscuro */
  --navy: #004b8d;        /* Azul oscuro */
  --blue: #2c6eb5;        /* Azul medio (Principal) */
  --light-blue: #4690ce;  /* Azul claro */
  --gray: #bcc2c6;        /* Gris plata */

  /* Colores de soporte UI */
  --graphite: #334155;    /* Texto secundario */
  --line: #e2e8f0;        /* Líneas y bordes */
  --surface: #f8fafc;     /* Fondo de secciones alternas */
  --soft: #f1f5f9;        /* Fondo suave */
  --white: #ffffff;
  
  /* Sombras corporativas basadas en tu color --ink */
  --shadow: 0 4px 6px -1px rgba(25, 50, 86, 0.12), 0 2px 4px -1px rgba(25, 50, 86, 0.08);
  --shadow-sm: 0 1px 3px 0 rgba(25, 50, 86, 0.12), 0 1px 2px 0 rgba(25, 50, 86, 0.08);
  
  /* Bordes estructurados */
  --radius: 4px; 
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  /* Tipografía oficial secundaria */
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   HEADER CORPORATIVO (NAVBAR)
   ========================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 60px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); /* Efecto cristal moderno */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(25, 50, 86, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled {
  padding: 12px clamp(20px, 5vw, 60px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px -5px rgba(25, 50, 86, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 55px; /* Regresamos a una altura normal para que la barra no quede gigante */
  width: auto;
  display: block;
  object-fit: contain;
  /* EL TRUCO: Hacemos un "zoom" del 250% al logo */
  transform: scale(2.5); 
  /* Le decimos que crezca desde la izquierda para que no se salga de la pantalla */
  transform-origin: left center; 
  transition: all 0.4s ease;
}

/* Tamaño cuando el usuario hace scroll hacia abajo */
.site-header.is-scrolled .brand-logo {
  height: 55px; 
  transform: scale(2); /* Reducimos el zoom un poco para que se vea elegante */
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* Efecto animado para los enlaces del menú */
.site-nav a:not(.nav-cta) {
  position: relative;
  padding: 8px 0;
  color: var(--graphite);
  transition: color 0.3s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--blue);
}

/* Línea inferior animada */
.site-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.site-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

/* Botón principal del Navbar */
.nav-cta {
  padding: 12px 24px !important;
  color: var(--white) !important;
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(44, 110, 181, 0.3);
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--navy);
  box-shadow: 0 6px 16px rgba(0, 75, 141, 0.4);
  transform: translateY(-2px);
}

/* Botón menú móvil (Hamburguesa) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--line);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: all 0.2s ease;
  border-radius: 2px;
} 

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 44px; 
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.site-nav a {
  padding: 8px 0;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-cta {
  padding: 10px 18px !important;
  color: var(--white) !important;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: all 0.2s ease;
}

/* Hero Section */
/* =========================================
   HERO SECTION (Diseño Limpio y Corporativo)
   ========================================= */
/* =========================================
   HERO SECTION (Corregido y Alineado)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Esto soluciona la barra flotante, apilando hacia abajo */
  color: var(--white);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(25, 50, 86, 0.98) 0%, rgba(25, 50, 86, 0.88) 55%, rgba(44, 110, 181, 0.4) 100%), url("assets/caso-regulacion-voltaje.png");
  background-position: center;
  background-size: cover;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  flex-grow: 1; /* Ocupa el espacio sobrante empujando la barra blanca al fondo */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center; 
  padding-top: 140px; /* Evita que el navbar tape el título */
  padding-bottom: 60px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--light-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem); 
  line-height: 1.15; 
  font-weight: 700; 
  letter-spacing: -0.5px;
}

.hero-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.85); 
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* =========================================
   BOTONES (Estilos restaurados)
   ========================================= */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 110, 181, 0.3);
}

.button.secondary {
  color: var(--white);
  border-color: var(--gray);
  background: rgba(255,255,255,0.05);
}

.button.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* =========================================
   TARJETA HERO (Derecha)
   ========================================= */
.hero-card {
  padding: 48px 40px; 
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3); 
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  width: 40px;
  height: 4px;
  background: var(--blue);
  border-radius: 0 0 4px 4px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-bottom: 16px;
  background: #10b981; 
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.hero-card strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.hero-card p {
  color: var(--graphite);
  font-size: 0.95rem;
  margin-top: 8px;
  font-weight: 500;
}

.mini-metrics {
  display: grid;
  gap: 0; 
  margin-top: 32px;
}

.mini-metrics span {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--graphite);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mini-metrics span:first-child {
  border-top: 1px solid var(--line);
}

.mini-metrics b {
  color: var(--navy);
  font-weight: 800;
}

/* =========================================
   BARRA DE CONFIANZA INFERIOR (Trust Strip)
   ========================================= */
.trust-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.trust-strip span {
  padding: 24px clamp(18px, 5vw, 40px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.trust-strip span:last-child {
  border-right: none;
}
/* Secciones Generales */
.section {
  padding: clamp(80px, 10vw, 120px) 0;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.section-lead,
.section-header {
  max-width: 720px;
  margin-bottom: 48px;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.5px;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.section-lead > p:last-child {
  margin: 24px 0 0;
  color: var(--graphite);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Riesgos (Pain) */
.pain {
  background: var(--white);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pain-grid article {
  position: relative;
  padding: 48px 32px; /* Reduje un poco el padding lateral para que el texto respire mejor centrado */
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
  
  /* Nuevas propiedades para centrar todo el contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pain-grid article:hover {
  box-shadow: var(--shadow);
}

.pain-grid span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.pain-grid p,
.solution-list p,
.confidence-panel p,
.timeline p,
.case-card p,
.contact-copy p {
  margin: 12px 0 0;
  color: var(--graphite);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Soluciones */
/* =========================================
   SOLUCIONES - Estilo Corporativo B2B
   ========================================= */
.services {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.solutions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: stretch;
}

/* Tarjeta Destacada (Izquierda) */
.solution-feature {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solution-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  transition: transform 0.6s ease;
}

.solution-feature:hover img {
  transform: scale(1.05); /* Efecto de acercamiento sutil */
}

.solution-feature .feature-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 40px;
  background: linear-gradient(0deg, var(--ink) 0%, rgba(25, 50, 86, 0.6) 50%, transparent 100%);
}

.solution-feature span {
  display: block;
  margin-bottom: 12px;
  color: var(--light-blue);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.solution-feature h3 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

/* Lista de 4 Soluciones (Derecha) */
.solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.solution-list article {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray); /* Borde corporativo lateral */
  transition: all 0.3s ease;
}

/* Interacción de la tarjeta */
.solution-list article:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--blue);
  transform: translateX(4px); /* Deslizamiento hacia la derecha */
}

/* Contenedor del icono */
.solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: var(--soft);
  color: var(--blue);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.solution-list article:hover .solution-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(5deg) scale(1.05); /* Toque dinámico */
}

.solution-list h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 700;
}

.solution-list p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Ajuste de tamaño para los iconos SVG de soluciones */
.solution-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2px; /* Hace la línea un poquito más gruesa y legible */
}

/* =========================================
   POR QUÉ ANPISA (Confianza) - Estilo Dark Premium
   ========================================= */
.confidence {
  background: var(--ink); /* Azul ultra oscuro oficial */
  color: var(--white);
}

.confidence .section-kicker {
  color: var(--light-blue);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.confidence h2 {
  color: var(--white);
}

.confidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center; /* Centra los textos verticalmente respecto a las tarjetas */
}

.confidence-panel {
  display: grid;
  gap: 20px;
}

.confidence-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.03); /* Fondo sutil translúcido */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efecto Hover: Se ilumina, se levanta y se desliza a la derecha */
.confidence-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--light-blue);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transform: translateX(8px); 
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.confidence-icon {
  color: var(--light-blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(70, 144, 206, 0.1); /* Círculo azul claro detrás del icono */
  padding: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.confidence-card:hover .confidence-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(5deg) scale(1.1); /* Pequeña animación del icono */
}

.confidence-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2px;
}

.confidence-card strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 6px; /* Alinea ópticamente el título con el icono */
}

.confidence-card p {
  color: var(--gray);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
}


/* =========================================
   MÉTODO / PROCESO - Línea de tiempo corporativa
   ========================================= */
.method {
  background: var(--surface); /* Fondo gris súper claro */
  border-bottom: 1px solid var(--line);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

/* Línea conectora entre los pasos (Solo visible en pantallas grandes) */
@media (min-width: 981px) {
  .timeline-grid::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--line);
    z-index: 0;
  }
}

.timeline-step {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--soft);
  line-height: 1;
  transition: color 0.3s ease;
}

.timeline-step:hover .step-number {
  color: var(--line); /* Se oscurece un poco al pasar el ratón */
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--white);
  color: var(--navy);
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2; /* Para que quede por encima de la línea conectora */
}

.timeline-step:hover .step-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}

.step-action {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--light-blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-step h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 800;
}

.timeline-step p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}


/* =========================================
   EVIDENCIA (Casos de Éxito) - Estilo Premium B2B
   ========================================= */
.cases {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Efectos al pasar el ratón sobre la tarjeta entera */
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(25, 50, 86, 0.15);
  border-color: var(--blue);
}

.case-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

/* Zoom en la imagen al hacer hover */
.case-card:hover .case-image img {
  transform: scale(1.08);
}

.case-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Etiqueta de ubicación / cliente */
.case-location {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: var(--soft);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
}

.case-content h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.case-content p {
  color: var(--graphite);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Enlace inferior con flecha animada */
.case-link {
  margin-top: auto; /* Empuja el enlace siempre al fondo de la tarjeta */
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.case-card:hover .case-link {
  gap: 16px; /* Desliza la flecha a la derecha */
  color: var(--navy);
}

/* =========================================
   MERCADOS (Para quién trabajamos)
   ========================================= */
.markets {
  background: var(--surface); /* Fondo gris muy sutil para hacer contraste con la sección anterior */
  border-top: 1px solid var(--line);
  padding: clamp(80px, 10vw, 100px) 0;
}

/* Ajustamos el contenedor para que el texto quede arriba y las etiquetas centradas abajo */
.markets-grid {
  display: flex !important;
  flex-direction: column;
  gap: 40px;
  text-align: center;
  align-items: center;
}

.markets-grid > div:first-child {
  max-width: 860px; /* Limita el ancho del título para que no se estire de más */
}

.markets .section-kicker {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.markets h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center; /* Centra las etiquetas perfectamente */
  margin-top: 8px;
}

.market-tags span {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

/* Efecto corporativo al pasar el ratón */
.market-tags span:hover {
  border-color: var(--blue);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--soft);
} 

/* =========================================
   CONTACTO - Diseño Ejecutivo B2B
   ========================================= */
.contact {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--ink); /* Fondo azul ultra oscuro sólido y serio */
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 8vw, 80px);
  align-items: center;
}

.contact .section-kicker {
  color: var(--light-blue);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.contact h2 {
  color: var(--white);
  margin-bottom: 24px;
}

.contact-copy > p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 48px;
}

/* Información de Contacto Directo (Lado Izquierdo) */
.contact-info-blocks {
  display: grid;
  gap: 32px;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-block svg {
  color: var(--light-blue);
  flex-shrink: 0;
  margin-top: 4px;
}

.info-block span {
  display: block;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-block a, 
.info-block address {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  transition: color 0.3s ease;
}

.info-block a:hover {
  color: var(--light-blue);
}

/* Formulario (Lado Derecho) */
.contact-panel {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}

.panel-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-header strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.panel-header p {
  margin: 0;
  color: var(--graphite);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.contact-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.contact-panel input::placeholder,
.contact-panel textarea::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.contact-panel textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 8px;
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(44, 110, 181, 0.15);
}

.form-button {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* =========================================
   FOOTER - Diseño Estructurado B2B
   ========================================= */
.site-footer {
  /* Usamos un azul casi negro para separar completamente esta sección */
  background: #08111e; 
  color: var(--gray);
  padding: 80px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  height: 150px; /* Aumentamos el tamaño a 85px (puedes subirlo a 100px si lo deseas) */
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1); 
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 500;
  margin: 0;
  color: rgba(188, 194, 198, 0.8); /* Tu gris con un poco de transparencia */
}

.footer-links h3,
.footer-legal h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: 0.5px;
}

.footer-links nav,
.footer-legal nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a,
.footer-legal a {
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--light-blue);
  transform: translateX(6px); /* Pequeño deslizamiento al pasar el ratón */
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(188, 194, 198, 0.6);
}