/* ALFA TEK — hoja de estilos del sitio.
   Colores y tipografías según el Manual de marca ALFA TEK. */

/* Fuentes hospedadas en el sitio (Google Fonts, licencia SIL OFL). Subconjuntos latino y latino extendido. */
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/arimo-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Arimo'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/arimo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/questrial-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Questrial'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/questrial-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --azul: #003389;         /* azul oficial */
  --azul-hondo: #00226040; /* sombra de texto sobre azul */
  --azul-700: #002670;
  --azul-claro: #e9eef8;
  --tinta: #0b0e15;        /* negro (azulado neutro) */
  --tinta-suave: #555c69;  /* texto secundario sobre blanco */
  --gris: #999999;         /* gris oficial, solo decorativo */
  --linea: #dde2ea;
  --niebla: #f4f6fa;
  --papel: #ffffff;
  --turquesa: #0099b4;     /* acento de las aplicaciones del manual */

  --f-titulo: "Arimo", Arial, sans-serif;
  --f-texto: "Questrial", "Arimo", Arial, sans-serif;

  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-chico: 6px;
  --r-panel: 14px;
  --borde-suave: #e2e8f0;
  --sombra-tarjeta: 0 4px 20px -2px rgba(11, 14, 21, 0.05);
  --sombra-hover: 0 16px 36px -4px rgba(0, 51, 137, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--azul); color: #fff; padding: 10px 14px; border-radius: var(--r-chico); }
.saltar:focus { top: 12px; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.marca img { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: var(--r-chico);
  color: var(--tinta-suave); font-weight: 500;
}
.nav a:hover { color: var(--azul); }
.nav a[aria-current="page"] { color: var(--azul); box-shadow: inset 0 -2px 0 var(--azul); border-radius: 0; }
.nav .idioma { margin-left: 8px; border: 1px solid var(--linea); color: var(--tinta); font-family: var(--f-titulo); font-weight: 700; font-size: 13px; }
.nav .idioma:hover { border-color: var(--azul); }
.boton-nav {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-titulo); font-weight: 700; font-size: 14px;
  text-decoration: none; padding: 9px 18px; border-radius: var(--r-chico);
  background: var(--azul); color: #fff !important; line-height: 1.2;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  margin-left: 8px; box-shadow: 0 2px 8px rgba(0, 51, 137, 0.2);
}
.boton-nav:hover {
  background: var(--azul-700) !important; color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 51, 137, 0.3);
}

.menu-boton { display: none; background: none; border: 1px solid var(--linea); border-radius: var(--r-chico); width: 44px; height: 40px; cursor: pointer; padding: 0; }
.menu-boton span { display: block; width: 18px; height: 2px; background: var(--tinta); margin: 4px auto; transition: transform .2s ease, opacity .2s ease; }
.menu-boton[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-boton[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-boton[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-boton { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papel); border-bottom: 1px solid var(--linea);
    padding: 12px var(--gutter) 20px;
    display: none; box-shadow: 0 16px 30px rgba(0,0,0,0.08);
  }
  .nav.abierto { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--linea); border-radius: 0; font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--azul); padding-left: 12px; }
  .nav .boton-nav {
    margin: 14px 0 8px; text-align: center; justify-content: center;
    padding: 14px; font-size: 16px; border-radius: var(--r-chico);
  }
  .nav .idioma { margin: 8px 0 0; text-align: center; border-radius: var(--r-chico); }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-titulo); font-weight: 700; font-size: 16px;
  text-decoration: none; padding: 14px 22px; border-radius: var(--r-chico);
  border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton-blanco { background: #fff; color: var(--azul); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.boton-blanco:hover { background: var(--azul-claro); transform: translateY(-1px); }
.boton-contorno-claro { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.boton-contorno-claro:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.boton-azul { background: var(--azul); color: #fff; box-shadow: 0 4px 14px rgba(0, 51, 137, 0.25); }
.boton-azul:hover { background: var(--azul-700); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 51, 137, 0.35); }
.boton-contorno { color: var(--azul); border-color: var(--azul); }
.boton-contorno:hover { background: var(--azul-claro); }
.boton-wa-hero {
  background: rgba(37, 211, 102, 0.16); color: #fff;
  border-color: rgba(37, 211, 102, 0.5);
}
.boton-wa-hero:hover {
  background: #25d366; color: #fff; border-color: #25d366;
  transform: translateY(-1px);
}

/* ---------- Portada (Hero B2B) ---------- */
.portada {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, #0044b3 0%, var(--azul) 60%, #002260 100%);
  color: #fff; isolation: isolate;
}
.portada::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 30%, transparent 80%);
}
.portada-simple {
  max-width: 860px;
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.portada-simple h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 17ch;
}
.portada-simple .bajada {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 21px);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
}
.portada-simple .lema {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}
.portada-simple .lema::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}
.portada-simple .acciones {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Portada específica de Nosotros */
.portada-about {
  background: radial-gradient(circle at 80% 20%, #0044b3 0%, var(--azul) 60%, #002260 100%);
}
.portada-about .portada-simple {
  padding-top: clamp(56px, 8vw, 92px);
  padding-bottom: clamp(56px, 8vw, 92px);
}
.portada-about .portada-simple h1 {
  font-size: clamp(36px, 4.6vw, 54px);
}
.portada-about .bajada + .bajada {
  margin-top: 14px;
}

.portada-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center; min-height: min(620px, calc(100vh - 68px));
  padding-top: 64px; padding-bottom: 72px;
}
.badge-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--f-titulo); font-size: 13px; font-weight: 700;
  color: #fff; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 22px; backdrop-filter: blur(6px);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.portada h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -0.03em; max-width: 15ch; line-height: 1.12; }
.portada .bajada { margin-top: 20px; font-size: clamp(16px, 1.35vw, 19px); max-width: 52ch; color: rgba(255,255,255,.9); line-height: 1.55; }
.portada .lema {
  margin-top: 24px; display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: rgba(255,255,255,.8);
}
.portada .lema::before { content: ""; width: 28px; height: 1px; background: rgba(255,255,255,.5); }
.portada .acciones { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Mockup visual tecnológico */
.portada-visual { position: relative; }
.visual-card-panel {
  background: linear-gradient(150deg, #091a3a 0%, #031027 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px; padding: 24px 22px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative; isolation: isolate;
}
.visual-card-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: 20px; z-index: -1;
  background: radial-gradient(circle at 100% 0%, rgba(0, 153, 180, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.panel-title { font-family: var(--f-titulo); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; text-transform: uppercase; }
.status-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #34d399; font-family: var(--f-titulo); font-weight: 700;
}
.live-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}
.panel-body { display: grid; gap: 12px; margin-top: 14px; }
.telemetria-item {
  display: flex; gap: 14px; align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px; border-radius: 12px;
}
.telemetria-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: rgba(0, 153, 180, 0.18);
  color: var(--turquesa);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.telemetria-icon svg { width: 22px; height: 22px; }
.telemetria-info { flex: 1; min-width: 0; }
.telemetria-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.telemetria-header strong { font-family: var(--f-titulo); color: #fff; font-size: 14px; }
.badge-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 153, 180, 0.2); color: #38bdf8; font-weight: 700; flex: none; }
.badge-pill.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.telemetria-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 6px 0; }
.telemetria-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--turquesa), #38bdf8); border-radius: 3px; }
.telemetria-sub { font-size: 12px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.96); color: var(--tinta);
  padding: 8px 14px; border-radius: 12px;
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.badge-icon { font-size: 18px; line-height: 1; }
.floating-badge strong { font-family: var(--f-titulo); font-size: 13px; display: block; color: var(--azul); }
.floating-badge small { font-size: 11px; color: var(--tinta-suave); display: block; }
.badge-top-right { top: -14px; right: -12px; }
.badge-bottom-left { bottom: -14px; left: -12px; }

@media (max-width: 960px) {
  .portada-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 48px; padding-bottom: 56px; }
  .floating-badge { display: none; }
}

/* ---------- Barra de Métricas (Social Proof) ---------- */
.barra-metricas {
  background: #ffffff; border-bottom: 1px solid var(--linea);
  padding: 36px 0; position: relative; z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}
.metricas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.metrica-caja {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; position: relative;
}
.metrica-caja:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 15%; height: 70%;
  width: 1px; background: var(--linea);
}
.metrica-num {
  font-family: var(--f-titulo); font-weight: 700;
  font-size: clamp(32px, 3.2vw, 44px); color: var(--azul);
  line-height: 1; letter-spacing: -0.03em;
}
.metrica-num small {
  font-size: 16px; font-weight: 400; color: var(--tinta-suave);
  letter-spacing: 0; margin-left: 4px;
}
.metrica-label {
  margin-top: 8px; font-size: 14px; color: var(--tinta-suave);
  font-weight: 500;
}
@media (max-width: 860px) {
  .metricas-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .metrica-caja::after { display: none !important; }
}
@media (max-width: 460px) {
  .metricas-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Secciones ---------- */
.seccion { padding: clamp(64px, 9vw, 112px) 0; }
.seccion-niebla { background: var(--niebla); }
.seccion-pegada { padding-bottom: 0; }
.seccion-tinta { background: var(--tinta); color: #fff; }
.encabezado-seccion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.encabezado-seccion h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 16ch; }
.encabezado-seccion p { color: var(--tinta-suave); max-width: 52ch; }
.seccion-tinta .encabezado-seccion p { color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .encabezado-seccion { grid-template-columns: 1fr; margin-bottom: 32px; } }

/* Cabecera de páginas internas */
.cabeza-pagina { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--linea); position: relative; overflow: hidden; }
.cabeza-pagina h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; max-width: 14ch; }
.cabeza-pagina p { margin-top: 20px; font-size: 19px; color: var(--tinta-suave); max-width: 56ch; }

/* ---------- Cards de Servicios (Inicio) ---------- */
.seccion-servicios-home { padding-top: clamp(64px, 8vw, 100px); }
.mapa {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; border: none;
}
.tarjeta-servicio {
  display: flex; flex-direction: column;
  padding: 28px 24px; border-radius: 14px;
  background: #ffffff; border: 1px solid var(--borde-suave);
  box-shadow: var(--sombra-tarjeta); text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tarjeta-servicio:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-hover);
  border-color: var(--azul);
}
.tarjeta-servicio .caja-icono {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--azul-claro); color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.tarjeta-servicio .caja-icono svg { width: 26px; height: 26px; }
.tarjeta-servicio:hover .caja-icono {
  background: var(--azul); color: #ffffff;
  transform: scale(1.06);
}
.tarjeta-servicio h3 {
  font-size: 20px; font-weight: 700; color: var(--tinta);
  line-height: 1.25; margin-bottom: 10px;
}
.tarjeta-servicio p {
  font-size: 15px; color: var(--tinta-suave); line-height: 1.55;
  margin-bottom: 20px; flex: 1;
}
.enlace-tarjeta {
  font-family: var(--f-titulo); font-weight: 700; font-size: 14px;
  color: var(--azul); display: inline-flex; align-items: center; gap: 4px;
  margin-top: auto; transition: gap .15s ease;
}
.tarjeta-servicio:hover .enlace-tarjeta { gap: 8px; color: var(--azul-700); }
.tarjeta-servicio.destacado {
  border: 1.5px solid var(--azul);
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.badge-destacado {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 700; font-family: var(--f-titulo);
  background: var(--azul); color: #ffffff;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------- Marquee Continuo de Marcas ---------- */
.seccion-marcas-home { overflow: hidden; padding-bottom: clamp(64px, 8vw, 96px); }
.marcas-marquee-wrapper {
  overflow: hidden; position: relative; width: 100%;
  padding: 10px 0 20px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marcas-marquee-track {
  display: flex; gap: 24px; align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marcas-marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marca-item {
  display: flex; align-items: center; justify-content: center;
  height: 80px; min-width: 150px; padding: 14px 28px;
  background: #ffffff; border: 1px solid var(--borde-suave);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.marca-item:hover {
  border-color: var(--azul);
  box-shadow: 0 8px 24px rgba(0, 51, 137, 0.1);
  transform: translateY(-3px);
}
.marca-item img {
  max-height: 38px; width: auto; max-width: 130px; object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.marca-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}
.marca-item .flotatek {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-titulo); font-weight: 700; font-size: 18px; color: var(--azul);
  filter: grayscale(100%) opacity(0.5);
  transition: filter .3s ease, opacity .3s ease;
}
.marca-item:hover .flotatek { filter: grayscale(0%) opacity(1); }
.marca-item .flotatek img { height: 32px; width: 32px; filter: none; }

/* Grid tradicional de marcas (fallback) */
.marcas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-panel); overflow: hidden; }
.marcas li { background: var(--papel); display: flex; align-items: center; justify-content: center; height: 128px; padding: 28px; }
.marcas img { max-height: 44px; width: auto; max-width: 150px; object-fit: contain; }
@media (max-width: 760px) { .marcas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .marcas li { height: 104px; padding: 20px; } .marcas img { max-height: 36px; } }

/* ---------- Sección Contacto Directo (Inicio) ---------- */
.seccion-contacto-home {
  background: linear-gradient(180deg, #f8faff 0%, var(--niebla) 100%);
  border-top: 1px solid var(--linea);
}
.contacto-home-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.badge-contacto {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--azul-claro); color: var(--azul);
  font-family: var(--f-titulo); font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}
.contacto-home-info h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.bajada-contacto { margin-top: 14px; font-size: 17px; color: var(--tinta-suave); line-height: 1.55; }
.canales-home { margin-top: 32px; display: grid; gap: 12px; }
.canales-home h3 { font-size: 17px; color: var(--tinta); }
.canales-intro { font-size: 14px; color: var(--tinta-suave); margin-top: 2px; }
.canal-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--linea);
}
.canal-item svg { width: 22px; height: 22px; color: var(--azul); flex: none; }
.canal-item strong { display: block; font-size: 13px; color: var(--tinta-suave); }
.canal-item a, .canal-item span {
  display: block; font-family: var(--f-titulo); font-weight: 700;
  font-size: 16px; color: var(--tinta); text-decoration: none;
}
.canal-item a:hover { color: var(--azul); text-decoration: underline; }
.garantia-resp {
  margin-top: 24px; font-size: 14px; font-weight: 700;
  color: var(--azul); display: flex; align-items: center; gap: 6px;
}

.contacto-home-card {
  background: #ffffff; border-radius: 16px;
  border: 1px solid var(--borde-suave);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--sombra-tarjeta);
}
.formulario-home { display: grid; gap: 16px; }
.trampa { display: none !important; }
.campo-form label { display: block; font-size: 15px; margin-bottom: 6px; }
.campo-form label .opcional { color: var(--tinta-suave); }
.campo-form input, .campo-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta);
  background: #fff; border: 1px solid #c9d0db; border-radius: var(--r-chico);
  padding: 12px 14px;
}
.campo-form input:focus, .campo-form textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 51, 137, .18); }
.campo-form textarea { resize: vertical; min-height: 130px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.select-form {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta);
  background: #fff; border: 1px solid #c9d0db; border-radius: var(--r-chico);
  padding: 12px 14px; cursor: pointer;
}
.select-form:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(0, 51, 137, .18); }
.boton-submit-home { width: 100%; justify-content: center; padding: 16px; font-size: 16px; margin-top: 4px; }
.form-privacidad { font-size: 12px; color: var(--tinta-suave); text-align: center; margin-top: 6px; }

@media (max-width: 860px) {
  .contacto-home-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Llamado final ---------- */
.llamado { position: relative; overflow: hidden; }
.llamado .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.llamado h2 { font-size: clamp(30px, 4vw, 50px); max-width: 18ch; }
.llamado p { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 48ch; }
.llamado .acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cierre claro (Nosotros) */
.cierre { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cierre h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cierre p { margin-top: 10px; color: var(--tinta-suave); }

/* Páginas de aviso (404, sin conexión) */
.cabeza-pagina p[lang="en"] { margin-top: 8px; font-size: 16px; }
.acciones-aviso { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Servicios ---------- */
.producto {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px;
  background: var(--azul); color: #fff; border-radius: var(--r-panel);
  padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate;
}
.producto .sello { display: flex; align-items: center; gap: 14px; }
.producto .sello img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.producto .sello span { font-family: var(--f-titulo); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.producto .etiqueta { display: inline-block; margin-top: 22px; font-size: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.producto h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 14px; max-width: 18ch; }
.producto .texto { margin-top: 16px; color: rgba(255,255,255,.82); max-width: 46ch; }
.producto .boton { margin-top: 28px; }
.producto .columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-content: center; }
.producto h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.25); margin-bottom: 4px; }
.producto li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.45; }
@media (max-width: 900px) { .producto { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .producto .columnas { grid-template-columns: 1fr; } }

.servicios { border-top: 1px solid var(--tinta); }
.servicio {
  display: grid; grid-template-columns: 56px minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 8px 32px;
  padding: 36px 0; border-bottom: 1px solid var(--linea); align-items: start;
  scroll-margin-top: 90px;
}
.servicio .icono { width: 40px; height: 40px; color: var(--azul); margin-top: 2px; }
.servicio h3 { font-size: clamp(22px, 2.4vw, 28px); }
.servicio .descripcion { color: var(--tinta-suave); max-width: 58ch; }
.servicio .extra { margin-top: 18px; display: grid; gap: 10px; }
.servicio .extra li { position: relative; padding-left: 22px; font-size: 16px; }
.servicio .extra li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--azul); transform: rotate(45deg); }
.servicio .chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 4px 12px; border: 1px solid var(--linea); border-radius: 999px; color: var(--tinta); background: var(--papel); }
@media (max-width: 760px) {
  .servicio { grid-template-columns: 40px minmax(0, 1fr); }
  .servicio .icono { width: 32px; height: 32px; }
  .servicio > div:last-child { grid-column: 2; }
}

/* Escalera de planes de antivirus */
.proveedores { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.proveedor { border: 1px solid var(--linea); border-radius: var(--r-panel); padding: 28px; background: var(--papel); }
.proveedor header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.proveedor header img { height: 30px; width: auto; }
.proveedor header span { font-size: 14px; color: var(--tinta-suave); }
.escalera { display: grid; gap: 8px; }
.escalera li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-chico); background: var(--niebla); font-family: var(--f-titulo); font-weight: 700; font-size: 16px; }
.escalera .nivel { display: flex; gap: 3px; flex: none; }
.escalera .nivel i { width: 6px; height: 14px; border-radius: 1px; background: var(--linea); }
.escalera .nivel i.on { background: var(--azul); }
.proveedores-nota { margin-top: 16px; font-size: 15px; color: var(--tinta-suave); }
@media (max-width: 760px) { .proveedores { grid-template-columns: 1fr; } }

/* ---------- Nosotros (Rediseño B2B) ---------- */
.mapa-pilares {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tarjeta-pilar {
  cursor: default;
}
.tarjeta-pilar:hover {
  transform: translateY(-4px);
  border-color: var(--azul);
}
@media (max-width: 860px) {
  .mapa-pilares { grid-template-columns: 1fr; }
}

/* Clientes Grid */
/* Quiénes somos (inicio) */
.seccion-nosotros { scroll-margin-top: 80px; }
.nosotros-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.nosotros-texto h2 { font-size: clamp(30px, 3.6vw, 46px); }
.nosotros-texto p { margin-top: 16px; color: var(--tinta-suave); max-width: 60ch; }
.pilares-lista { display: grid; gap: 4px; border-top: 1px solid var(--linea); }
.pilares-lista li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.pilares-lista .icono { width: 30px; height: 30px; color: var(--azul); }
.pilares-lista strong { display: block; font-family: var(--f-titulo); font-size: 18px; }
.pilares-lista span { display: block; margin-top: 4px; color: var(--tinta-suave); font-size: 16px; line-height: 1.5; }
.titulo-clientes { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 860px) { .nosotros-grid { grid-template-columns: 1fr; } }

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.cliente-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  background: #ffffff;
  border: 1px solid var(--borde-suave);
  border-radius: 14px;
  box-shadow: var(--sombra-tarjeta);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cliente-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sombra-hover);
  border-color: var(--azul);
}
.cliente-logo-caja {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--linea);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cliente-logo-caja img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 6px;
}
.cliente-avatar-monograma {
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: 16px;
  color: var(--azul);
  background: var(--azul-claro);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cliente-info h3, .cliente-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--tinta);
  margin-bottom: 4px;
  line-height: 1.2;
}
.cliente-info p {
  font-size: 14px;
  color: var(--tinta-suave);
  line-height: 1.45;
}
a.cliente-card:hover .cliente-info h3, .cliente-info h4 {
  color: var(--azul);
}

/* Cierre / CTA Card (Nosotros) */
.seccion-cierre-about {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(64px, 8vw, 100px);
}
.cierre-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 56px);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 10%, #0044b3 0%, var(--azul) 70%, #002260 100%);
  color: #ffffff;
  box-shadow: 0 16px 40px -10px rgba(0, 51, 137, 0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cierre-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cierre-info h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: #ffffff;
  margin-bottom: 10px;
}
.cierre-info p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 48ch;
  line-height: 1.55;
}
.cierre-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: none;
}
.cierre-card .boton-azul {
  background: #ffffff;
  color: var(--azul);
}
.cierre-card .boton-azul:hover {
  background: var(--azul-claro);
  transform: translateY(-2px);
}
@media (max-width: 860px) {
  .cierre-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: rgba(255,255,255,.78); padding: 64px 0 32px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.1); }
.pie .contenedor { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.pie .logo-pie { height: 22px; width: auto; }
.pie .lema-pie { margin-top: 18px; max-width: 30ch; font-size: 17px; color: #fff; }
.pie h2 { font-family: var(--f-texto); font-weight: 400; font-size: 14px; letter-spacing: 0; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.pie li + li { margin-top: 8px; }
.pie a { text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pie .base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 14px; }
@media (max-width: 760px) { .pie .contenedor { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Botón Flotante WhatsApp ---------- */
.flotante-wa-contenedor {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
/* Facebook e Instagram, apilados sobre WhatsApp y alineados con su botón */
.flotante-red {
  width: 52px; height: 52px; margin-right: 2px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.flotante-red:hover { transform: scale(1.08); }
.flotante-red.facebook { background: #1877f2; color: #fff; }
.flotante-red.facebook svg { width: 28px; height: 28px; }
.flotante-red.instagram { border-radius: 15px; }
.flotante-red.instagram img { width: 100%; height: 100%; }
.flotante-wa {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.flotante-wa-pill {
  display: flex; align-items: center; gap: 8px;
  background: #ffffff; color: var(--tinta);
  font-family: var(--f-titulo); font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  border: 1px solid var(--linea);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.flotante-wa-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flotante-wa:hover .flotante-wa-btn {
  transform: scale(1.08);
  box-shadow: 0 14px 34px -4px rgba(37, 211, 102, 0.65);
}
.flotante-wa:hover .flotante-wa-pill {
  transform: translateX(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
@media (max-width: 560px) {
  .flotante-wa-contenedor { right: 16px; bottom: 16px; }
  .flotante-wa-pill { display: none; }
  .flotante-wa-btn { width: 52px; height: 52px; }
  .flotante-wa-contenedor { gap: 10px; }
  .flotante-red { width: 46px; height: 46px; margin-right: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
