/* ══════════════════════════════════════════
   CSS VARIABLES & RESET
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=Barlow+Condensed:wght@400;600;700;800&display=swap');

:root {
  --red: #D2232C;       
  --red-dark: #82161B;
  --red-light: #F33B45;
  --dark-bg: #09090b; /* Un negro un poco más profundo para que el rojo resalte más */
  --dark-surface: #111114;
  --dark-card: #18181c;
  --dark-border: #2a2a30;
  --dark-text: #f0f0f4;
  --dark-muted: #8a8a96;
  --light-bg: #f4f4f8;
  --light-surface: #ffffff;
  --light-card: #ffffff;
  --light-border: #e2e2ea;
  --light-text: #0f0f14;
  --light-muted: #5a5a6a;
  --green: #25d366;
  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.2);
  --shadow-red: 0 4px 32px rgba(230, 51, 41, 0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════
   CONTROL DE LOGOS (MODOS Y SCROLL)
══════════════════════════════════════════ */
/* Por defecto mostramos el logo blanco y ocultamos el oscuro */
.logo-light { display: none; }
.logo-dark { display: block; }

/* SOLO mostramos el logo oscuro cuando estamos en modo claro Y hemos bajado (.scrolled) */
body.light-mode .navbar.scrolled .logo-dark { display: none; }
body.light-mode .navbar.scrolled .logo-light { display: block; }

/* ══════════════════════════════════════════
   CORRECCIÓN DE TEXTOS DEL NAVBAR AL INICIO
══════════════════════════════════════════ */
/* Fuerza a que los enlaces e iconos sean blancos al estar arriba (sobre la foto) 
   incluso si el modo claro está activado */
body.light-mode .navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .navbar:not(.scrolled) .nav-links a:hover {
  color: #ffffff;
}

body.light-mode .navbar:not(.scrolled) .theme-toggle {
  color: rgba(255, 255, 255, 0.7);
}

body.light-mode .navbar:not(.scrolled) .theme-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* También protege el color del botón hamburguesa en móviles */
body.light-mode .navbar:not(.scrolled) .hamburger span {
  background: #ffffff;
}

/* Dark mode (default) */
body {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --card: var(--dark-card);
  --border: var(--dark-border);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
}

body.light-mode {
  --bg: var(--light-bg);
  --surface: var(--light-surface);
  --card: var(--light-card);
  --border: var(--light-border);
  --text: var(--light-text);
  --muted: var(--light-muted);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--red); }
.section { padding: 96px 0; }
.section-eyebrow {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }

.section-ia-premium {
  position: relative;
  padding: 112px 0;
  background: var(--surface);
  overflow: hidden;
}

body.dark-mode .section-ia-premium {
  background: var(--dark-surface);
}

.absolute-bg-grid {
  display: none;
}

.ia-container { position: relative; z-index: 10; }

.ia-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.ia-heading h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  color: white;
  margin-bottom: 18px;
}

.ia-heading p {
  max-width: 720px;
  color: #a1a1aa;
  font-size: 18px;
  line-height: 1.7;
}

.ia-orchestrator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.dot-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); box-shadow: 0 0 8px var(--red); }
}

.ia-orchestrator-card {
  min-height: 520px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 17, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.orchestrator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.orchestrator-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f87171;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.orchestrator-header h3 {
  max-width: 460px;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.orchestrator-status {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(210, 35, 44, 0.1);
  border: 1px solid rgba(210, 35, 44, 0.28);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.orchestrator-query {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255,255,255,0.07);
  color: #d4d4d8;
}

.orchestrator-query i,
.orchestrator-query svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(210, 35, 44, 0.12);
  color: var(--red-light);
}

.orchestrator-query p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.agent-flow {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(48px, 0.2fr) minmax(260px, 1.1fr);
  gap: 18px;
  align-items: center;
}

.agent-node {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #e4e4e7;
  font-weight: 700;
}

.agent-node i,
.agent-node svg {
  width: 22px;
  height: 22px;
  color: var(--red-light);
  flex-shrink: 0;
}

.agent-node.primary {
  min-height: 140px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(210, 35, 44, 0.2), rgba(210, 35, 44, 0.07));
  border-color: rgba(210, 35, 44, 0.38);
  color: white;
}

.agent-node.primary i,
.agent-node.primary svg {
  width: 34px;
  height: 34px;
}

.agent-link {
  height: 2px;
  min-width: 48px;
  background: linear-gradient(to right, rgba(210, 35, 44, 0.85), rgba(249, 115, 22, 0.3));
  position: relative;
}

.agent-link::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-light);
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(210, 35, 44, 0.85);
}

.agent-cluster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ia-capabilities {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ia-feature-card {
  position: relative; padding: 20px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--red); transition: all 0.3s ease; cursor: default;
}
.ia-feature-card:hover { 
  background: rgba(255, 255, 255, 0.06); 
  transform: translateY(-2px);
  border-color: rgba(210, 35, 44, 0.5);
  border-left-color: var(--red);
  box-shadow: 0 4px 20px rgba(210, 35, 44, 0.18);
}
.ia-feature-card.orange-accent:hover {
  border-color: rgba(249, 115, 22, 0.5);
  border-left-color: #f97316;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.18);
}
.feature-num { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 800; color: rgba(255,255,255,0.1); }
.feature-icon-box {
  width: 40px; height: 40px; border-radius: 8px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(210, 35, 44, 0.125); border: 1px solid rgba(210, 35, 44, 0.25);
  color: var(--red); font-size: 18px; transition: transform 0.3s;
}
.feature-icon-box i,
.feature-icon-box svg { width: 20px; height: 20px; }
.ia-feature-card:hover .feature-icon-box { transform: scale(1.1); }
.feature-body h3 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.feature-body p { font-size: 13px; color: #9ca3af; line-height: 1.55; margin: 0; }
.feature-tag {
  display: inline-block; margin-top: 10px; padding: 3px 8px; border-radius: 4px;
  background: rgba(210, 35, 44, 0.08); color: var(--red); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
}

.ia-feature-card.orange-accent { border-left-color: #f97316; }
.ia-feature-card.orange-accent .feature-icon-box { background: rgba(249, 115, 22, 0.125); border-color: rgba(249, 115, 22, 0.25); color: #f97316; }
.ia-feature-card.orange-accent .feature-tag { background: rgba(249, 115, 22, 0.08); color: #f97316; }

.ia-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ai-stat-box {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.ai-stat-box:hover {
  transform: translateY(-2px);
}

/* Rojo — OT/IT */
.stat-ot { border-left-color: #D2232C; }
.stat-ot .stat-value { color: #f87171; }
.stat-ot:hover { background: rgba(210, 35, 44, 0.08); box-shadow: 0 4px 16px rgba(210, 35, 44, 0.15); }

/* Naranja — Edge + Cloud */
.stat-edge { border-left-color: #f97316; }
.stat-edge .stat-value { color: #fb923c; }
.stat-edge:hover { background: rgba(249, 115, 22, 0.08); box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15); }

/* Azul — IEC 62443 */
.stat-iec { border-left-color: #3b82f6; }
.stat-iec .stat-value { color: #60a5fa; }
.stat-iec:hover { background: rgba(59, 130, 246, 0.08); box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15); }

/* Verde — Pilotos IA */
.stat-pilot { border-left-color: #22c55e; }
.stat-pilot .stat-value { color: #4ade80; }
.stat-pilot:hover { background: rgba(34, 197, 94, 0.08); box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15); }

/* Modo claro — ajustamos los colores de texto para que sean más oscuros y legibles */
body.light-mode .stat-ot .stat-value { color: #991b1b; }
body.light-mode .stat-edge .stat-value { color: #c2410c; }
body.light-mode .stat-iec .stat-value { color: #1d4ed8; }
body.light-mode .stat-pilot .stat-value { color: #15803d; }

body.light-mode .ai-stat-box {
  background: var(--card);
  border-color: var(--border);
}

body.light-mode .stat-ot:hover { background: rgba(210, 35, 44, 0.06); }
body.light-mode .stat-edge:hover { background: rgba(249, 115, 22, 0.06); }
body.light-mode .stat-iec:hover { background: rgba(59, 130, 246, 0.06); }
body.light-mode .stat-pilot:hover { background: rgba(34, 197, 94, 0.06); }

.stat-value {
  display: block;
  color: #f87171;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.stat-desc {
  color: #8a8a96;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  display: block;
}

/* Modo claro — sección IA */
body.light-mode .ia-heading h2 { color: var(--text); }
body.light-mode .ia-heading p { color: var(--muted); }

body.light-mode .ia-orchestrator-card {
  background: var(--card);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

body.light-mode .orchestrator-header h3 { color: var(--text); }
body.light-mode .orchestrator-query { 
  background: var(--surface); 
  border-color: var(--border);
  color: var(--muted);
}

body.light-mode .agent-node {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
body.light-mode .agent-node.primary {
  background: rgba(210, 35, 44, 0.07);
  border-color: rgba(210, 35, 44, 0.25);
  color: var(--text);
}

body.light-mode .ia-feature-card {
  background: var(--card);
  border-color: var(--border);
  border-left-color: var(--red); /* preserva el acento de color */
}

body.light-mode .ia-feature-card.orange-accent {
  border-left-color: #f97316;
}

body.light-mode .ia-feature-card:hover { 
  background: var(--surface);
  border-color: rgba(210, 35, 44, 0.4);
  border-left-color: var(--red);
  box-shadow: 0 4px 20px rgba(210, 35, 44, 0.1);
}

body.light-mode .ia-feature-card.orange-accent:hover {
  border-color: rgba(249, 115, 22, 0.4);
  border-left-color: #f97316;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.1);
}

body.light-mode .feature-body h3 { color: var(--text); }
body.light-mode .feature-body p { color: var(--muted); }
body.light-mode .feature-num { color: rgba(0,0,0,0.07); }

body.light-mode .ai-stat-box {
  background: var(--card);
  border-color: var(--border);
}
body.light-mode .stat-desc { color: var(--muted); }

body.light-mode .absolute-bg-grid { opacity: 0.4; }

.orchestrator-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  color: white;
  margin-bottom: 20px;
}
body.light-mode .orchestrator-title { color: var(--text); }

.orchestrator-query {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 28px;
}
body.light-mode .orchestrator-query {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}

/* Nodos con color por área */
.agent-node.node-blue  svg { stroke: #60a5fa; }
.agent-node.node-blue  { border-color: rgba(59,130,246,0.2); }
.agent-node.node-blue:hover  { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.4); }

.agent-node.node-green svg { stroke: #4ade80; }
.agent-node.node-green { border-color: rgba(34,197,94,0.2); }
.agent-node.node-green:hover { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.4); }

.agent-node.node-orange svg { stroke: #fb923c; }
.agent-node.node-orange { border-color: rgba(249,115,22,0.2); }
.agent-node.node-orange:hover { background: rgba(249,115,22,0.08); border-color: rgba(249,115,22,0.4); }

.agent-node.node-purple svg { stroke: #c084fc; }
.agent-node.node-purple { border-color: rgba(168,85,247,0.2); }
.agent-node.node-purple:hover { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.4); }

.agent-node { transition: all 0.25s ease; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: white;
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-whatsapp {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-whatsapp:hover {
  background: var(--green);
  color: white;
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-img { 
  height: 40px; 
  width: auto; 
}

/* Enlaces (Desktop) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--muted);
  transition: color var(--transition);
  padding: 4px 0;
  white-space: nowrap;
}

.nav-links a:hover { 
  color: var(--text); 
}

/* Animación de la línea roja al pasar el cursor */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Acciones (Botones a la derecha) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón Modo Oscuro (Cuadrado 40x40) */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  transition: all var(--transition);
}

.theme-toggle:hover { 
  color: var(--text); 
  background: rgba(138, 138, 150, 0.1); 
}

/* Lógica correcta para mostrar los iconos del Tema */
.icon-moon { display: none; } /* Por defecto (modo oscuro) ocultamos la luna */
.icon-sun { display: block; } /* Por defecto (modo oscuro) mostramos el sol para poder cambiar a claro */

body.light-mode .icon-sun { display: none; } /* En modo claro ocultamos el sol */
body.light-mode .icon-moon { display: block; } /* En modo claro mostramos la luna para poder cambiar a oscuro */

/* Botón de Contacto adaptado al diseño */
/* Botón de Contacto en el Navbar (Tamaño exacto del diseño) */
.navbar .contact-btn {
  padding: 10px 20px !important; /* py-2.5 px-5 */
  font-size: 14px !important;    /* text-sm */
  font-weight: 700 !important;   /* font-700 */
  border-radius: 8px !important; /* rounded-lg */
  border: none !important;       /* Quitamos el borde transparente de 2px del .btn original */
  height: 40px;                  /* Misma altura que el botón de modo oscuro */
  display: inline-flex;
  align-items: center;
  gap: 8px;                      /* gap-2 */
  line-height: 1;                /* Evita que el texto estire el botón hacia arriba/abajo */
}

/* Botón Hamburguesa */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border-radius: 8px;
  transition: all var(--transition);
}

.hamburger:hover {
  background: rgba(138, 138, 150, 0.1);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/fondo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

body.light-mode .hero-bg {
  background-image: url('../assets/fondo.jpg');
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 5, 8, 0.88) 0%,
    rgba(5, 5, 8, 0.75) 50%,
    rgba(5, 5, 8, 0.35) 100%
  );
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(230,51,41,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,51,41,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--red);
  border-radius: 50%;
  animation: float var(--dur) ease-in-out infinite;
  opacity: 0.4;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.8; }
}

/* ══════════════════════════════════════════
   CONTENIDO HERO Y TEXTO (Estructura de Bloque)
══════════════════════════════════════════ */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  display: block; /* NUEVO: Volvemos a bloque estándar para evitar conflictos de alineación */
  width: 100%;
}

.hero-text {
  max-width: 760px; /* Limita el ancho del texto como en el original */
  display: block;   /* NUEVO */
  margin-bottom: 60px; /* Separación entre el texto y las estadísticas */
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  
  /* ELIMINADO: font-family: var(--font-cond); -> Ahora usa la fuente principal limpia */
  font-size: 14px;           /* Equivalente a text-sm */
  font-weight: 600;          /* Equivalente a font-600 */
  text-transform: uppercase; /* Equivalente a uppercase */
  letter-spacing: 0.1em;     /* Equivalente a tracking-widest de Tailwind */
  
  color: var(--red); /* Si notas que el rojo es muy fuerte, puedes cambiarlo por #f87171 que es el text-red-400 exacto */
  margin-bottom: 24px;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  /* clamp(mínimo en móviles, tamaño dinámico, máximo en desktop) -> imita text-5xl a text-7xl */
  font-size: clamp(48px, 6vw, 72px); 
  font-weight: 800; /* Equivalente exacto a font-extrabold */
  line-height: 1.1; /* Equivalente exacto a leading-[1.1] */
  margin-bottom: 24px; /* Equivalente a mb-6 */
  color: white;
  text-align: left;
}
body.light-mode .hero-title { 
  color: white; 
}
.hero-title .text-red {
  color: oklch(63.7% 0.237 25.331);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 670px; /* Ajustado ligeramente para parecerse más al original */
  margin-bottom: 40px;
  line-height: 1.7;
  text-align: left;
}

.hero-ctas { 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: flex-start; 
}

/* ══════════════════════════════════════════
   BARRA DE ESTADÍSTICAS (Ahora usa CSS Grid)
══════════════════════════════════════════ */
.stats-bar {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  z-index: 2;
  width: 100%;
}

.stats-container {
  display: grid; /* NUEVO: Usamos Grid como el código original */
  grid-template-columns: repeat(4, 1fr); /* 4 columnas del mismo ancho */
  gap: 24px; /* Espaciado entre columnas */
  padding: 0;
}

/* Para responsivo en móviles, las estadísticas pasan a 2 columnas */
@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-number {
  font-family: var(--font-main); /* EL CAMBIO CLAVE: Usamos la fuente estándar, no la condensed */
  font-size: clamp(36px, 5vw, 48px); /* Equivalente a text-4xl en móvil y text-5xl en PC */
  font-weight: 800; /* Equivalente a font-extrabold */
  color: #ffffff; /* Equivalente a text-white */
  margin-bottom: 4px; /* Equivalente a mb-1 */
  line-height: 1;
}

.stat-symbol {
  color: #ef4444; /* El tono rojo exacto de text-red-500 de Tailwind */
}
.stat-label {
  font-family: var(--font-main);
  font-size: 14px; /* Equivalente a text-sm */
  font-weight: 500; /* Equivalente a font-500 */
  color: #9ca3af; /* El color gris exacto de text-gray-400 de Tailwind */
  line-height: 1.25; /* Equivalente a leading-tight */
}
.stat-divider {
  display: none; 
}

/* ══════════════════════════════════════════
   CLIENTES
══════════════════════════════════════════ */
.section-clientes { padding: 80px 0; background: var(--surface); }

.clients-track-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track-wrapper::before,
.clients-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.clients-track-wrapper::after { right: 0; background: linear-gradient(to left, var(--surface), transparent); }

.clients-track {
  display: flex;
  align-items: center;
  gap: 48px; 
  padding-right: 48px; 
  width: max-content;
  animation: scroll-clients 35s linear infinite;
}

/* ══════════════════════════════════════════
   ESCALADO ESPECÍFICO (ENAEX/ESSBIO)
══════════════════════════════════════════ */
/* Escalamos la IMAGEN dentro de ese contenedor featured */
.client-logo.featured-scaling .client-img {
  /* Escalamos un 35% el tamaño de la imagen original. 
     Esto compensa el espacio blanco excesivo del archivo fuente. */
  transform: scale(1.35); 
}

.client-logo.featured-scaling {
  padding: 4px;
  overflow: visible;
}

.clients-track:hover {
  animation-play-state: paused; 
}

@keyframes scroll-clients {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  width: 220px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.client-logo:hover {
  border-color: rgba(230, 51, 41, 0.4); 
  box-shadow: 0 4px 12px rgba(230, 51, 41, 0.15);
}

.client-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all var(--transition);
  filter: brightness(0) invert(1); 
  opacity: 0.5; 
}

.client-logo:hover .client-img {
  filter: brightness(0) invert(1);
  opacity: 1; 
}

.atacama-light { display: none; }
.atacama-dark  { display: block; }

body.light-mode .atacama-light { display: block; }
body.light-mode .atacama-dark  { display: none; }

.atacama-dark {
  filter: none !important;
  opacity: 0.5;
}
.client-logo:hover .atacama-dark {
  opacity: 1;
}

body.light-mode .atacama-light {
  filter: grayscale(100%);
  opacity: 0.6;
}
body.light-mode .client-logo:hover .atacama-light {
  filter: grayscale(0%);
  opacity: 1;
}

/* ══════════════════════════════════════════
   COMPORTAMIENTO EN MODO CLARO
══════════════════════════════════════════ */
body.light-mode .client-img {
  filter: grayscale(100%);
  opacity: 0.6; 
}

body.light-mode .client-logo:hover .client-img {
  /* En modo claro revelamos los colores originales */
  filter: grayscale(0%);
  opacity: 1;
}

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.section-nosotros { background: var(--surface); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* Proporción para darle más espacio al texto (estilo lg:grid-cols-5) */
  gap: 64px;
  align-items: start;
}

/* Encabezado con línea vertical */
.nosotros-header {
  display: flex;
  align-items: flex-start;
  gap: 16px; /* Equivalente a gap-4 */
  margin-bottom: 32px; /* Equivalente a mb-8 */
}

.nosotros-line {
  flex-shrink: 0;
  width: 4px; /* Equivalente a w-1 */
  height: 64px; /* Equivalente a h-16 */
  background-color: #dc2626; /* Color exacto de bg-red-600 */
  border-radius: 9999px; /* Equivalente a rounded-full */
  margin-top: 4px; /* Equivalente a mt-1 (baja la línea un poquito para alinearla con el texto) */
}

.nosotros-header .section-eyebrow {
  font-family: var(--font-main); /* Usamos la fuente principal limpia */
  font-size: 12px; /* Equivalente a text-xs */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em; /* Equivalente a tracking-widest */
  color: #dc2626; /* Color exacto de text-red-600 */
  margin-bottom: 0; /* Reseteamos el margen */
  display: block;
  line-height: 1;
}

.nosotros-header h2 {
  margin-top: 8px; /* Equivalente a mt-2 */
  font-size: clamp(30px, 4vw, 36px); /* Tamaño responsivo equivalente a text-3xl a text-4xl */
  font-weight: 800; /* Equivalente a font-extrabold */
  line-height: 1.25; /* Equivalente a leading-tight */
  color: var(--text); /* Usamos tu variable para que cambie de color automáticamente si pasas a modo oscuro/claro */
  margin-bottom: 0;
}
/* Textos Párrafo */
.nosotros-left p { 
  color: var(--muted); 
  font-size: 16px; 
  margin-bottom: 24px; 
  line-height: 1.75; 
}
.nosotros-left p strong { color: var(--text); }

/* Características (Grid 2x2) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
}

.feature-chip:hover {
  background: var(--card);
  border-color: rgba(210, 35, 44, 0.6);
  box-shadow: 0 4px 20px rgba(210, 35, 44, 0.15);
}

.feature-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 51, 41, 0.1); /* bg-red-600/10 */
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--red);
}

.feature-icon-wrap i { width: 18px; height: 18px; }

.feature-chip span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Tarjetas Derecha (Misión / Visión) */
.nosotros-right { 
  display: flex; 
  flex-direction: column; 
  gap: 24px; 
}

.mision-card, .vision-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red); /* Borde rojo característico del diseño */
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mision-card:hover, .vision-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border-color: var(--border); /* Evitamos que el borde completo se ponga rojo al hover para mantener la limpieza */
  border-left-color: var(--red);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.card-icon-wrap {
  width: 40px; 
  height: 40px;
  background: var(--red);
  border-radius: 10px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.card-icon-wrap i { width: 20px; height: 20px; }

.mision-card h3, .vision-card h3 { 
  font-size: 20px; 
  font-weight: 800; 
  margin: 0; 
}

.mision-card p, .vision-card p { 
  color: var(--muted); 
  font-size: 15px; 
  line-height: 1.7; 
}

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.section-servicios { background: var(--bg); }

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

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px; /* rounded-2xl */
  background: var(--card);
  transition: all var(--transition);
  animation-delay: var(--delay);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Línea roja animada superior */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Hover de la tarjeta */
.service-card:hover { 
  border-color: rgba(230,51,41,0.3);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.service-card:hover::before { 
  transform: scaleX(1); 
}

/* Contenedor del icono */
.service-icon {
  width: 56px; 
  height: 56px;
  background: rgba(230, 51, 41, 0.1); /* Fondo rojo transparente */
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 24px;
  color: var(--red);
  transition: transform 0.3s ease;
}

/* Efecto hover en el icono (Escala y Rotación como en el diseño) */
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(3deg);
}

.service-icon i { width: 24px; height: 24px; }

/* Textos */
.service-card h3 { 
  font-size: 20px; 
  font-weight: 800; 
  margin-bottom: 12px; 
}

.service-card p { 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.7; 
  margin-bottom: 24px; 
}

/* Etiquetas (Tags redondos) */
.service-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
}

.service-tags .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: none;
  border-radius: 9999px; /* rounded-full */
  background: rgba(138, 138, 150, 0.1); /* Estilo compatible con claro/oscuro */
  color: var(--muted);
}

/* Enlace "Explorar" dentro de una tarjeta de servicio */
.service-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--red-light);
  transition: gap 0.2s ease, color 0.2s ease;
}
.service-explore i { width: 16px; height: 16px; }
.service-explore:hover { gap: 11px; color: var(--red); }

/* ══════════════════════════════════════════
   SECTORES
══════════════════════════════════════════ */
.section-sectores { background: var(--bg); }

/* Usamos CSS Grid responsivo (equivalente al grid-cols de Tailwind) */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); /* 7 columnas en escritorio */
  gap: 16px;
}

.sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.sector-card:hover {
  background: var(--card); /* hover:bg-white */
  border-color: rgba(230, 51, 41, 0.3); /* hover:border-red-200 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* hover:shadow-md */
}

/* Contenedor del icono */
.sector-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* <- Cambiamos esto a transparente */
  border-radius: 12px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Colores personalizados para cada sector (Fondo suave + Icono vibrante) */
.bg-amber { background: rgba(245, 158, 11, 0.1); }
.bg-amber i, .bg-amber svg { color: #f59e0b; stroke: #f59e0b; }

.bg-yellow { background: rgba(234, 179, 8, 0.1); }
.bg-yellow i, .bg-yellow svg { color: #eab308; stroke: #eab308; }

.bg-green { background: rgba(34, 197, 94, 0.1); }
.bg-green i, .bg-green svg { color: #22c55e; stroke: #22c55e; }

.bg-emerald { background: rgba(16, 185, 129, 0.1); }
.bg-emerald i, .bg-emerald svg { color: #10b981; stroke: #10b981; }

.bg-red { background: rgba(239, 68, 68, 0.1); }
.bg-red i, .bg-red svg { color: #ef4444; stroke: #ef4444; }

.bg-orange { background: rgba(249, 115, 22, 0.1); }
.bg-orange i, .bg-orange svg { color: #f97316; stroke: #f97316; }

.bg-teal { background: rgba(20, 184, 166, 0.1); }
.bg-teal i, .bg-teal svg { color: #14b8a6; stroke: #14b8a6; }

/* ══════════════════════════════════════════
   TOP: STACK TECNOLÓGICO (Diseño UI de la Imagen)
══════════════════════════════════════════ */
.tecnologia-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch; /* Iguala la altura de ambos lados */
  margin-bottom: 80px;
}

/* --- Panel Izquierdo --- */
.tecnologia-info {
  background: var(--surface); /* Tarjeta oscura base */
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  transition: all var(--transition);
}

.tecnologia-info:hover {
  border-color: rgba(230, 51, 41, 0.4);
  box-shadow: 0 12px 32px rgba(230, 51, 41, 0.1);
  transform: translateY(-2px); /* Un pequeño salto sutil */
}

.tecnologia-info h2 { 
  font-size: clamp(32px, 4vw, 44px); 
  font-weight: 900; 
  line-height: 1.1; 
  margin-bottom: 24px; 
}

.tecnologia-info p { 
  color: var(--muted); 
  font-size: 15px; 
  line-height: 1.7; 
  margin-bottom: 20px; 
}

/* Pastillas rojas (Tech Pills) */
.tech-pills { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: auto; 
  padding-top: 16px;
}

.tech-pills span {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  background: rgba(230, 51, 41, 0.1); /* Fondo rojo transparente */
  color: var(--red);
  border: 1px solid rgba(230, 51, 41, 0.2);
  border-radius: 8px; /* Cuadradas con bordes suaves como en la imagen */
  transition: all var(--transition);
  cursor: default;
}

.tecnologia-info:hover .tech-pills span {
  border-color: rgba(230, 51, 41, 0.6);
  background: rgba(230, 51, 41, 0.15); /* Oscurece apenitas el fondo rojo */
}

.tecnologia-info .tech-pills span:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  transform: translateY(-2px); /* Hace que la pastilla salte de forma independiente */
}

/* --- Tarjetas Derecha (Efecto Pantalla Incrustada) --- */
/* --- Tarjetas Derecha (Estilo "Soluciones" replicado) --- */
.tecnologia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tech-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: 16px; /* Mismo radio que servicios */
  background: var(--card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Línea roja animada superior (Igual a Servicios) */
.tech-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

/* Hover de la tarjeta */
.tech-card:hover {
  border-color: rgba(230,51,41,0.3);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.tech-card:hover::before {
  transform: scaleX(1);
}

.tech-header {
  margin-bottom: 20px;
}

/* Contenedor del icono (Igual a Servicios) */
.tech-icon {
  width: 48px; 
  height: 48px;
  background: rgba(230, 51, 41, 0.1); /* Fondo rojo transparente */
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 16px;
  color: var(--red);
  transition: transform 0.3s ease;
}

/* Efecto hover en el icono (Escala y Rotación) */
.tech-card:hover .tech-icon {
  transform: scale(1.1) rotate(3deg);
}

.tech-icon i { width: 22px; height: 22px; }

/* Título de la tarjeta */
.tech-header span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

/* Etiquetas (Tags redondos igual a Servicios) */
.tech-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
}

.tech-tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  /* Reduje 1px el padding para compensar el borde y que no se mueva el diseño */
  padding: 3px 9px; 
  border: 1px solid transparent; /* Borde transparente por defecto */
  border-radius: 9999px; /* Pill shape */
  background: rgba(138, 138, 150, 0.1); 
  color: var(--muted);
  transition: all var(--transition);
}

/* Ligero brillo en las etiquetas al hacer hover en la tarjeta */
.tech-card:hover .tech-tags span {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(230, 51, 41, 0.6); /* Borde rojo al pasar el mouse por la tarjeta */
}

.tech-card .tech-tags span:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.ai-container {
  padding: 100px 24px;
}

.ai-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* El 3D se lleva más espacio */
  gap: 60px;
  align-items: center;
}

.ai-visual {
  height: 500px; /* Tamaño del visor 3D */
  position: relative;
}

/* Las mini cards del orquestador */
.ai-mini-card {
  background: rgba(210, 35, 44, 0.05);
  border-left: 3px solid var(--red);
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.ai-mini-card span {
  font-weight: 800;
  font-size: 20px;
}

/* Animación de pulso para la sección IA */
.section-ai-orquestador {
  background: radial-gradient(circle at 70% 50%, rgba(210, 35, 44, 0.08) 0%, transparent 50%);
}

/* --- Bottom: Arquitectura (Estilo Limpio Integrado) --- */
.arq-dark-card {
  position: relative;
  border-radius: 24px;
  background: var(--surface); /* Se adapta perfectamente: blanco en claro, oscuro en dark */
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  overflow: hidden;
}

.arq-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.arq-content {
  position: relative;
  z-index: 10;
  padding: 48px;
}

.arq-flow-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.arq-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red); 
}

.arq-line-gradient {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(230, 51, 41, 0.4), transparent);
}

.arq-steps-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.arq-dashed-line {
  position: absolute;
  top: 32px;
  left: 12.5%;
  right: 12.5%;
  height: 0;
  border-top: 2px dashed var(--border); /* Usa el borde de tu tema */
  z-index: 0;
}

.arq-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.arq-circle-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

/* Brillo sutil solo detrás del icono redondo */
.arq-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--step-color);
  filter: blur(15px);
  opacity: 0.15;
  z-index: -1;
  transition: opacity var(--transition);
}

.arq-step:hover .arq-glow { opacity: 0.3; }

.arq-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--step-color);
  background: var(--card); /* Fondo blanco/oscuro base */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.arq-step:hover .arq-circle {
  transform: scale(1.05);
  background: var(--step-color); /* Se llena del color de la etapa (Naranja, Rojo, etc) */
  box-shadow: 0 8px 20px color-mix(in srgb, var(--step-color) 35%, transparent);
}

/* Efecto Hover: El icono se vuelve BLANCO para resaltar sobre el fondo de color */
.arq-step:hover .arq-circle i {
  color: white; 
}

.arq-circle i { 
  width: 26px; 
  height: 26px; 
  color: var(--step-color); /* El icono toma el color del borde por defecto */
  transition: all var(--transition); /* Transición suave para el cambio de color */
}

.arq-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--step-color);
  color: white;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* AQUÍ ESTÁ EL CAMBIO PRINCIPAL: 
  Tarjetas limpias, en "blanco" (var--card), con sombra elegante al hacer hover 
*/
.arq-card {
  position: relative;
  flex: 1;
  width: 100%;
  background: var(--card); /* BLANCO LIMPIO en modo claro */
  border: 1px solid var(--border);
  border-top: 3px solid var(--step-color); /* Toque de color de la etapa */
  border-radius: 16px;
  padding: 24px 16px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* El efecto de sombra y elevación que querías */
.arq-step:hover .arq-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08); /* Sombra suave y profesional */
  border-color: var(--border); 
}

.arq-card h4 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.arq-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

.arq-tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px; 
  justify-content: center;
  margin-top: auto; 
}

/* Etiquetas integradas al estilo del resto de la página */
.arq-tags span {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138, 138, 150, 0.1);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all var(--transition);
}

/* Las etiquetas se iluminan sutilmente al hacer hover en la tarjeta */
.arq-step:hover .arq-tags span {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.arq-arrow-down {
  display: none; 
  padding: 16px 0;
  color: var(--muted);
}

/* Footer Arquitectura */
.arq-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.arq-footer span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.arq-footer i { width: 16px; height: 16px; color: var(--red); }
/* ══════════════════════════════════════════
   RESULTADOS
══════════════════════════════════════════ */
.section-resultados {
  background: var(--red);
  padding: 80px 0;
}

/* Forzamos colores blancos para el header dentro de la sección roja */
.section-resultados .section-header { margin-bottom: 48px; }

.section-resultados .section-header h2 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 36px); /* text-3xl a text-4xl */
  font-weight: 800; /* font-extrabold */
  margin-bottom: 12px;
}

.section-resultados .section-header p {
  color: #fee2e2; /* Equivalente al text-red-100 de Tailwind */
  font-size: 16px; 
}

/* Cambiamos de Flex a Grid */
.resultados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px; /* Espaciado entre columnas (gap-8) */
}

/* Diseño responsivo: 2 columnas en móviles */
@media (max-width: 768px) {
  .resultados-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

.resultado-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0; 
  /* Eliminamos los border-right que tenías antes */
}

/* Números Gigantes */
.resultado-num {
  font-family: var(--font-main); /* Usamos la fuente normal, ya no la condesada */
  font-size: clamp(60px, 6vw, 72px); /* Equivalente a text-6xl a text-7xl */
  font-weight: 800; /* font-extrabold */
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px; /* mb-2 */
  font-variant-numeric: tabular-nums; /* IMPORTANTE: Evita que el contenedor tiemble mientras los números cambian en la animación */
}

/* La nueva línea separadora */
.resultado-line {
  width: 48px; /* w-12 */
  height: 2px; /* h-0.5 */
  background-color: rgba(255, 255, 255, 0.4); /* bg-white/40 */
  margin: 0 auto 12px auto; /* mx-auto mb-3 */
}

/* Textos pequeños de abajo */
.resultado-label {
  font-family: var(--font-main);
  font-size: 14px; /* text-sm */
  font-weight: 500; /* font-500 */
  color: #fee2e2; /* text-red-100 */
  line-height: 1.25; /* leading-tight */
  max-width: 180px; /* Un poco más ancho para que el texto fluya mejor */
}

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.section-contacto { background: var(--surface); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr; /* Proporción 2 a 3 (equivale a 5 columnas) */
  gap: 48px;
  align-items: start;
}

/* --- Info Izquierda --- */
.contacto-info { 
  display: flex; 
  flex-direction: column; 
  gap: 16px; 
}

/* Volvemos al borde visible que te gustaba */
.info-card {
  display: flex;
  align-items: center; /* Centra verticalmente la caja roja con el texto */
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--border); /* AQUÍ ESTÁ EL BORDE DE VUELTA */
  border-radius: 14px;
  background: var(--surface);
  transition: all var(--transition);
}

.info-card:hover { 
  border-color: rgba(230,51,41,0.4); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px); 
}

/* Caja roja del icono */
.info-icon {
  width: 48px; 
  height: 48px; 
  background: var(--red); 
  border-radius: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: center; /* Garantiza el centro horizontal y vertical */
  color: white; 
  flex-shrink: 0;
  transition: transform var(--transition);
}

.info-card:hover .info-icon {
  transform: scale(1.05);
}

/* Arreglamos el tamaño y centrado exacto de los iconos (Lucide y Remix) */
.info-icon i, .info-icon svg { 
  font-size: 24px !important; /* Hacemos el icono más grande */
  width: 24px;
  height: 24px;
  line-height: 1; /* Esto evita que el icono de WhatsApp se vea más arriba o abajo */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Textos de la tarjeta */
.info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

a.info-value:hover { color: var(--red); }

.info-sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* --- Formulario Derecha --- */
.contacto-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.contacto-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
  width: 100%;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(230,51,41,0.15);
  background: var(--card);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--card); color: var(--text); }
.char-count { font-size: 12px; color: var(--muted); text-align: right; }

/* Feedback del formulario al enviar */
.form-feedback {
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-feedback.success { background: rgba(37,211,102,0.1); color: #25d366; border: 1px solid rgba(37,211,102,0.3); display: block; }
.form-feedback.error { background: rgba(230,51,41,0.1); color: var(--red); border: 1px solid rgba(230,51,41,0.3); display: block; }
#submitBtn.loading { opacity: 0.7; pointer-events: none; }

/* ══════════════════════════════════════════
   FOOTER PREMIUM
══════════════════════════════════════════ */
.footer-premium {
  position: relative;
  background: #09090b; /* Fondo ultra oscuro casi negro */
  overflow: hidden;
  color: #9ca3af; /* Gris claro para los textos */
}

/* Efectos de fondo (Línea roja arriba y cuadrícula) */
.footer-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(230, 51, 41, 0.8), transparent);
  opacity: 0.8;
}

.footer-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: linear-gradient(white 1px, transparent 1px), linear-gradient(90deg, white 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Contenedor Principal */
.footer-content {
  position: relative;
  z-index: 10;
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Columna 1 más ancha */
  gap: 40px;
  margin-bottom: 48px;
}

/* --- Columna 1: Brand --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 24px;
}

.footer-bio {
  font-size: 14px;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-bio strong {
  color: var(--red);
  font-weight: 600;
}

/* Redes Sociales */
.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: rgba(230, 51, 41, 0.1);
  border-color: rgba(230, 51, 41, 0.5);
  color: white;
}

/* --- Columnas Generales (Títulos y Enlaces) --- */
.footer-title {
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
}

ul { list-style: none; }

/* Navegación con línea que se expande */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover { color: white; }

.link-line {
  display: block;
  width: 12px;
  height: 1px;
  background: rgba(230, 51, 41, 0.5);
  transition: width var(--transition);
}

.footer-links a:hover .link-line { width: 20px; background: var(--red); }

/* Servicios con punto rojo */
.footer-links-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-links-bullets span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(230, 51, 41, 0.6);
}

/* Información de Contacto */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.fc-icon {
  width: 28px;
  height: 28px;
  background: rgba(230, 51, 41, 0.1);
  border: 1px solid rgba(230, 51, 41, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: background var(--transition);
}

.fc-icon i { 
  font-size: 16px;
  color: var(--red); 
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-info a { transition: color var(--transition); }
.footer-contact-info a:hover { color: white; }

.footer-contact-info li:hover .fc-icon { background: rgba(230, 51, 41, 0.2); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.copyright { color: #9ca3af; }
.copyright strong { color: white; }

.footer-legal-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-right a {
  color: #6b7280;
  transition: color var(--transition);
}

.footer-legal-right a:hover {
  color: white;
}

.legal-sep {
  color: #374151;
}

@media (max-width: 768px) {
  .footer-bottom { 
    flex-direction: column; 
    gap: 16px; 
    text-align: center; 
  }
  .footer-legal-right { 
    justify-content: center; 
    flex-wrap: wrap; 
  }
}

@media (max-width: 1024px) {
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  .footer-columns { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
  .footer-status { justify-content: center; }
}
/* Whatsapp flotante */
/* ══════════════════════════════════════════
   FAB flotante (botón "+" con acciones)
══════════════════════════════════════════ */
.fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

/* Botón principal "+" */
.fab-main {
  width: 56px; height: 56px;
  border: none; cursor: pointer;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(210,35,44,0.45);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s ease, background 0.25s ease;
}
.fab-main:hover { box-shadow: 0 6px 28px rgba(210,35,44,0.65); }
.fab-main .fab-plus { width: 26px; height: 26px; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.fab.open .fab-main { background: var(--red-dark); }
.fab.open .fab-main .fab-plus { transform: rotate(135deg); } /* "+" -> "x" */

/* Lista de acciones (aparece hacia arriba) */
.fab-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab.open .fab-actions { opacity: 1; transform: none; pointer-events: auto; }

.fab-action { display: flex; align-items: center; gap: 10px; }
.fab-action .fab-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}
.fab-action:hover .fab-btn { transform: scale(1.08); }
.fab-action .fab-btn svg { width: 24px; height: 24px; }

/* Etiqueta de cada acción */
.fab-label {
  background: #18181c;
  color: #f0f0f4;
  border: 1px solid var(--dark-border);
  font-size: 13px; font-weight: 600;
  padding: 7px 12px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
body:not(.dark-mode) .fab-label { background: #ffffff; color: var(--light-text); border-color: var(--light-border); }

/* WhatsApp */
.fab-wa .fab-btn { background: #25d366; color: white; }
/* Canary (pájaro en blanco) */
.fab-canary .fab-btn { background: linear-gradient(150deg, #FCCC30, #E0A800); }
.fab-canary .fab-bird {
  width: 28px; height: 28px;
  filter: brightness(0) invert(1); /* pájaro amarillo -> blanco */
}

/* Animación */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-fade { transform: translateY(12px); }
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-fade.visible {
  opacity: 1;
  transform: translate(0);
}
.reveal-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .ia-orchestrator-grid { grid-template-columns: 1fr; }
  .ia-orchestrator-card { min-height: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tecnologia-top { grid-template-columns: 1fr; gap: 40px; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .sectores-grid { grid-template-columns: repeat(4, 1fr); }
  .tecnologia-grid { grid-template-columns: repeat(2, 1fr); }
  .ia-heading h2 { font-size: clamp(28px, 4vw, 40px); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(24px, 5vw, 32px); }
  .section-header p { font-size: 15px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(36px, 8vw, 56px); }
  .hero-subtitle { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-text { margin-bottom: 40px; }
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .nosotros-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section-ia-premium { padding: 72px 0; }
  .ia-heading { margin-bottom: 32px; }
  .ia-heading h2 { font-size: clamp(26px, 6vw, 36px); }
  .ia-heading p { font-size: 16px; }
  .ia-orchestrator-grid { grid-template-columns: 1fr; }
  .ia-orchestrator-card { min-height: auto; }
  .orchestrator-header { flex-direction: column; gap: 16px; }
  .agent-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .agent-link {
    width: 2px;
    height: 32px;
    min-width: 0;
    justify-self: center;
    background: linear-gradient(to bottom, rgba(210, 35, 44, 0.85), rgba(249, 115, 22, 0.3));
  }
  .agent-link::after {
    right: auto;
    top: auto;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
  }
  .agent-cluster { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sectores-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sector-card { padding: 20px 12px; }
  .sector-card span { font-size: 13px; }
  .section-clientes { padding: 60px 0; }
  .resultados-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .resultado-num { font-size: clamp(48px, 10vw, 64px); }
  .tecnologia-top { grid-template-columns: 1fr; gap: 32px; }
  .tecnologia-grid { grid-template-columns: 1fr; gap: 16px; }
  .tecnologia-info { padding: 32px 24px; border-radius: 20px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero-title { font-size: clamp(30px, 9vw, 44px); }
  .hero-subtitle { font-size: 15px; }
  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  .stats-container { gap: 24px 16px; }
  .stat-number { font-size: 36px; }
  .stat-label { font-size: 13px; }
  .nosotros-header { gap: 12px; }
  .nosotros-line { height: 52px; }
  .mision-card, .vision-card { padding: 24px 20px; }
  .service-card { padding: 24px 20px; }
  .ia-orchestrator-card { padding: 20px; }
  .agent-cluster { grid-template-columns: 1fr; gap: 8px; }
  .ia-capabilities { gap: 12px; }
  .ia-feature-card { padding: 16px; }
  .sectores-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sector-card { padding: 16px 10px; border-radius: 12px; }
  .sector-card span { font-size: 12px; line-height: 1.3; }
  .sector-icon-wrap { width: 40px; height: 40px; margin-bottom: 8px; }
  .resultados-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .resultado-num { font-size: clamp(40px, 12vw, 56px); }
  .resultado-label { font-size: 13px; max-width: 140px; }
  .tecnologia-info { padding: 24px 20px; border-radius: 16px; }
  .tech-card { padding: 24px 20px; }
  .tech-pills { gap: 8px; }
  .tech-pills span { font-size: 11px; padding: 6px 12px; }
  .footer-columns { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-logo-img { height: 36px; }
  .footer-content { padding-top: 48px; padding-bottom: 24px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 28px; }
  .stat-number { font-size: 30px; }
  .sectores-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sector-card span { font-size: 11px; }
  .resultado-num { font-size: 38px; }
}