/* =========================================================
   SELVANET — Sistema de diseño
   Patrón: Enterprise Gateway · Estilo: Trust & Authority
   (generado con ui-ux-pro-max y adaptado a la marca navy+teal)
   Tipografía: Lexend (títulos) + Source Sans 3 (cuerpo)
   Mobile-first · WCAG AA · transiciones 150–300ms
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Marca — navy + teal/cian */
  --navy-950: #060f24;
  --navy-900: #0a1733;
  --navy-800: #0f2147;
  --navy-700: #16305f;
  --navy-600: #1d3f7a;
  --teal-600: #0e9e98;
  --teal-500: #17c7c0;
  --teal-400: #36d6cf;
  --cyan-500: #0ea5e9;
  --cyan-400: #38bdf8;
  --accent:   #17c7c0;

  /* Superficies y texto */
  --bg:        #ffffff;
  --surface:   #ffffff;
  --surface-2: #f3f7fc;   /* secciones alternas */
  --surface-3: #eef3fa;   /* chips, thumbs */
  --text:      #0f1b2d;
  --text-soft: #3a4a63;
  --text-muted:#5b6b85;
  --text-inv:  #eaf2ff;
  --line:      #e2e8f2;
  --line-soft: #eef2f8;

  /* Estado */
  --ok:    #0a7a3f;
  --ok-bg: #e7f9ef;
  --err:    #b3261e;
  --err-bg: #fdecec;

  /* Layout */
  --maxw: 1180px;
  --header-h: 90px;

  /* Radios */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Sombras (escala consistente) */
  --shadow-sm: 0 1px 2px rgba(10,23,51,.06), 0 1px 3px rgba(10,23,51,.04);
  --shadow-md: 0 6px 16px rgba(10,23,51,.08);
  --shadow-lg: 0 16px 40px rgba(10,23,51,.12);
  --shadow-xl: 0 28px 60px rgba(10,23,51,.18);
  --shadow-teal: 0 14px 34px rgba(23,199,192,.35);

  /* Espaciado base 4/8 */
  --space-2xl: 48px;
  --space-3xl: 72px;

  /* Tipografía */
  --font-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (max-width: 767px) { html { scroll-padding-top: var(--header-h); } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-600); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; color: var(--navy-900); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Encabezado de sección reutilizable */
.section-head { max-width: 64ch; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  font-size: .72rem; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.section-head .lead { color: var(--text-soft); font-size: 1.12rem; margin-top: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--r-sm); border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  text-align: center;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { color: #04201f; background: linear-gradient(135deg, var(--teal-400), var(--cyan-400)); box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-2px); color: #04201f; box-shadow: 0 18px 40px rgba(23,199,192,.45); }
.btn-dark { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-md); }
.btn-dark:hover { transform: translateY(-2px); color: #fff; background: var(--navy-800); }
.btn-outline { background: transparent; color: var(--navy-900); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,.04); color: #fff; border: 1.5px solid rgba(255,255,255,.22); }
.btn-outline-light:hover { border-color: var(--teal-400); color: #fff; background: rgba(54,214,207,.12); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-wa { background: #1fae54; color: #fff; box-shadow: 0 12px 28px rgba(31,174,84,.32); }
.btn-wa:hover { background: #17a04b; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Header (oscuro glass, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 17, 38, .55);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0,0,0,.35); background: rgba(7, 14, 32, .9); border-color: rgba(255,255,255,.06); }
/* Al hacer scroll: barra compacta — sin redes y logo más pequeño */
.site-header.is-stuck .header-inner { min-height: 58px; }
.site-header.is-stuck .brand-logo { height: 42px; }
.site-header.is-stuck .header-redes--desktop { opacity: 0; visibility: hidden; height: 0; overflow: hidden; }

.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; align-content: center; column-gap: 20px;
  width: 100%; max-width: 1500px; margin: 0 auto; padding: 8px clamp(18px, 2.2vw, 38px);
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { height: 66px; width: auto; transition: height .25s var(--ease); }

/* Bloque menú + redes — REDES ARRIBA, menú abajo, centrados y juntos */
.header-menu { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; justify-self: center; }
.header-redes--desktop { transition: opacity .2s var(--ease); }
.header-pago { justify-self: end; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.nav-item > a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: 9px 11px; color: #dbe6f7; border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-item > a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item > a.activo { color: var(--teal-400); }
.nav-item > a.activo::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--teal-400); border-radius: 2px;
}
.nav-item.has-mega > a::after,
.nav-item.has-sub > a::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s var(--ease);
}
.has-mega:hover > a::after, .has-sub:hover > a::after { transform: rotate(225deg) translateY(2px); }

/* Submenú simple */
.has-sub { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 12px; color: var(--text); border-radius: var(--r-sm); font-weight: 500; }
.submenu a:hover { background: var(--surface-2); color: var(--navy-900); }

/* Mega-menú */
.has-mega { position: static; }
.mega-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--text); box-shadow: var(--shadow-xl); border-top: 1px solid var(--line-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  padding: 20px 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;   /* nunca pasa del alto de pantalla */
}
.has-mega:hover .mega-menu, .has-mega:focus-within .mega-menu { opacity: 1; visibility: visible; transform: none; }

/* Encabezado del mega-menú (estilo mockup) */
.mega-head { margin-bottom: 16px; }
.mega-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; color: var(--teal-600); }
.mega-eyebrow-line { width: 28px; height: 2px; border-radius: 2px; background: var(--teal-500); position: relative; }
.mega-eyebrow-line::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--teal-500); }
.mega-eyebrow-line--trail { width: 58px; opacity: .8; }
.mega-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.12; color: var(--navy-900); margin: 8px 0 0; }
.mega-title span { color: var(--teal-500); }
.mega-sub { color: var(--text-soft); font-size: .95rem; line-height: 1.45; margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--teal-500); max-width: 56ch; }

/* Diagramación: Internet destacado (izq) + Paneles/Seguridad apilados (der) */
.mega-inner { display: grid; grid-template-columns: minmax(330px, 1fr) 1.32fr; gap: 20px; align-items: stretch; }

/* --- Internet destacado --- */
.mega-feat {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mega-feat:hover { border-color: #d3deee; box-shadow: var(--shadow-md); }
.mega-feat-hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 128px; padding: 16px; color: #fff; text-decoration: none;
}
.mega-feat-ico {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(2px);
}
.mega-feat-ico svg { width: 24px; height: 24px; }
.mega-feat-titulo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #fff; }
.mega-feat-titulo svg { width: 18px; height: 18px; color: var(--teal-400); transition: transform .2s var(--ease); }
.mega-feat-hero:hover .mega-feat-titulo svg { transform: translateX(4px); }

.mega-feat-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.mega-feat-name { display: none; }   /* el título "Internet" va en el hero (solo se usa en móvil) */
.mega-feat-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.45; margin: 0 0 12px; }
.mega-feat-list { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 0; }
.mega-feat-list li + li { border-top: 1px solid var(--line-soft); }
.mega-feat-list a {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: var(--r-sm);
  color: var(--navy-800); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.mega-feat-list a:hover { background: var(--surface-2); color: var(--navy-900); text-decoration: none; }
.mfl-ico {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; background: rgba(23, 199, 192, .12); color: var(--teal-600); flex: none;
}
.mfl-ico svg { width: 18px; height: 18px; }
.mfl-label { flex: 1; }
.mfl-arrow { width: 16px; height: 16px; color: var(--text-muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.mega-feat-list a:hover .mfl-arrow { transform: translateX(3px); color: var(--teal-600); }
.mega-feat-all {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding-top: 12px;
  border-top: 1px solid var(--line-soft); color: var(--teal-600); font-weight: 700; font-size: .92rem;
}
.mega-feat-all svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.mega-feat-all:hover { text-decoration: none; } .mega-feat-all:hover svg { transform: translateX(3px); }

/* --- Paneles / Seguridad (apilados, misma altura que Internet) --- */
.mega-otros { display: flex; flex-direction: column; gap: 18px; }
.mega-svc {
  display: grid; grid-template-columns: 230px 1fr; flex: 1; min-height: 132px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.mega-svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deee; text-decoration: none; }
.mega-svc-img { background: var(--surface-3) center/cover no-repeat; }
.mega-svc-body { display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; }
.mega-svc-titulo {
  position: relative; padding-right: 42px; font-family: var(--font-head); font-weight: 700;
  font-size: 1.18rem; color: var(--navy-900); line-height: 1.2;
}
.mega-svc-arrow {
  position: absolute; top: -2px; right: 0; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-600); transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.mega-svc-arrow svg { width: 16px; height: 16px; }
.mega-svc:hover .mega-svc-arrow { background: var(--teal-500); border-color: var(--teal-500); color: #04201f; }
.mega-svc-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.45; margin: 7px 0 0; }
.mega-svc-link {
  margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  color: var(--teal-600); font-weight: 700; font-size: .88rem;
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.mega-svc:hover .mega-svc-link { border-color: var(--teal-500); }
.mega-svc-link:hover { background: var(--teal-500); border-color: var(--teal-500); color: #04201f; }
.mega-svc-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.mega-svc:hover .mega-svc-link svg { transform: translateX(3px); }

/* Acciones del header (sobre fondo oscuro) — Paga así centrado entre menú y redes */
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: 0; }
.btn-pago {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  background: transparent; color: #fff; border: 1.5px solid rgba(54,214,207,.55);
  padding: 9px 18px; border-radius: var(--r-pill); font-size: .95rem;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.btn-pago:hover { transform: translateY(-1px); color: #fff; border-color: var(--teal-400); background: rgba(54,214,207,.12); }
.btn-pago svg { width: 18px; height: 18px; color: var(--teal-400); }
.header-redes { display: flex; gap: 7px; }
.header-redes a {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-pill);
  background: rgba(255,255,255,.08); color: #dbe6f7; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.header-redes a:hover { background: var(--teal-500); color: #04201f; transform: translateY(-1px); }
.header-redes svg { width: 15px; height: 15px; }
.header-wa {
  display: inline-flex; align-items: center; gap: 7px; color: #fff; font-family: var(--font-head); font-weight: 600;
  background: #1fae54; padding: 10px 16px; border-radius: var(--r-sm); transition: background .2s var(--ease), transform .2s var(--ease);
}
.header-wa:hover { background: #17a04b; color: #fff; transform: translateY(-1px); }
.header-wa svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--text-inv); overflow: hidden;
  margin-top: calc(-1 * var(--header-h));   /* el header transparente va por encima */
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: radial-gradient(1100px 620px at 72% 38%, var(--navy-700), var(--navy-950) 62%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-canvas, .hero-bg-video, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { z-index: 0; }
.hero-bg-video { z-index: 0; }
.hero-canvas { z-index: 1; }
.hero--foto .hero-canvas { mix-blend-mode: screen; opacity: .42; }   /* sutil sobre la foto */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,15,36,.95) 0%, rgba(6,15,36,.72) 42%, rgba(6,15,36,.25) 100%);
}
.hero--foto::after {
  background:
    radial-gradient(80% 64% at 50% 45%, rgba(6,15,36,.62), rgba(6,15,36,.14) 80%),
    linear-gradient(180deg, rgba(6,15,36,.58) 0%, transparent 26%, transparent 70%, rgba(6,15,36,.68) 100%);
}
.hero-inner { position: relative; z-index: 2; flex: 1 1 auto; padding: calc(var(--header-h) + 28px) 22px 28px; display: flex; align-items: center; justify-content: center; }
.hero-copy { max-width: 920px; margin-inline: auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: var(--teal-400);
  background: rgba(54,214,207,.10); border: 1px solid rgba(54,214,207,.32); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.45); line-height: 1.16; margin-bottom: 0;
  font-size: clamp(1.85rem, 4.4vw, 2.85rem); max-width: none; margin-inline: auto; }
.hero h1 .t-line { display: block; }
.hero h1 .grad { background: linear-gradient(120deg, var(--teal-400), var(--cyan-400)); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
/* Palabra rotativa (efecto máquina de escribir) — se centra según su contenido */
.hero h1 .type-word { display: inline-block; }
.hero h1 .type-word::after {
  content: "|"; margin-left: .02em; -webkit-text-fill-color: var(--teal-400); color: var(--teal-400);
  animation: caretBlink 1.05s step-end infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero h1 .type-word::after { animation: none; } }
.hero-copy p { color: #d4dEF2; font-size: 1.18rem; max-width: 56ch; margin-top: 20px; margin-inline: auto; text-shadow: 0 1px 16px rgba(0,0,0,.5); }
.hero-cta { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-cta .btn { padding: 18px 34px; font-size: 1.05rem; }
.hero-cta .btn-ghost { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.20); }
.hero-stats {
  display: grid; grid-auto-flow: column; width: fit-content; margin: 36px auto 0;
  padding: 6px; text-align: left;
  background: rgba(8,16,36,.5); border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  backdrop-filter: blur(8px); box-shadow: 0 14px 38px rgba(0,0,0,.32);
}
.hero-stat { display: flex; align-items: center; gap: 11px; padding: 10px 22px; min-width: 0; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stat .stat-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(54,214,207,.12); color: var(--teal-400); }
.hero-stat .stat-ico svg { width: 18px; height: 18px; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: #fff; display: block; line-height: 1.05; white-space: nowrap; }
.hero-stat .lbl { color: #9fb2d4; font-size: .78rem; display: block; }

@media (max-width: 760px) {
  .hero-stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: auto; max-width: 440px; }
  .hero-stat + .hero-stat { border-left: 0; }
  .hero-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat:nth-child(even) { border-left: 0; }
  .hero-stat:nth-child(n+2) { border-top: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 560px) {
  .hero-cta { gap: 12px; }
  .hero-cta .btn { padding: 16px 22px; font-size: 1rem; flex: 1 1 0; justify-content: center; min-width: 0; }
}
@media (max-width: 430px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Encabezado de página interna ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--text-inv);
  margin-top: calc(-1 * var(--header-h));   /* header transparente por encima */
  background: radial-gradient(820px 420px at 82% -30%, var(--navy-700), var(--navy-950) 62%);
  padding: calc(clamp(40px, 7vw, 72px) + var(--header-h)) 0 clamp(40px, 6vw, 64px);
}
.page-hero::after { content:""; position:absolute; inset:0; background: url('/assets/img/secciones/internet.jpg') right center/cover no-repeat; opacity:.10; mix-blend-mode:luminosity; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7d6f0; max-width: 62ch; font-size: 1.12rem; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--teal-400); }
.page-hero .eyebrow::before { background: var(--teal-400); }
.breadcrumb { font-size: .85rem; color: #9fb2d4; margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: #9fb2d4; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: radial-gradient(900px 480px at 80% -20%, var(--navy-700), var(--navy-950) 64%); color: var(--text-inv); }
.section-dark h2 { color: #fff; }
.section-dark .lead, .section-dark p { color: #c7d6f0; }

/* ---------- Grids de tarjetas ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* Tarjeta base */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-400); }
.card h3 { color: var(--navy-900); }
.card p { color: var(--text-soft); }
.card .card-link { font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--teal-600); }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* Tarjeta de servicio con imagen */
.service-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.service-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-3); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .media::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(6,15,36,.45), transparent 55%); }
.service-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card .body h3 { margin-bottom: 8px; }
.service-card .body p { flex: 1; }

/* Icono dentro de círculo (feature) */
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(23,199,192,.16), rgba(56,189,248,.16)); color: var(--teal-600);
}
.feature-ico svg { width: 26px; height: 26px; }
.section-dark .feature-ico { background: rgba(54,214,207,.14); color: var(--teal-400); }

/* ---------- Tarjetas de servicio (imagen full + texto superpuesto) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.svc-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-lg);
  min-height: 400px; color: #fff; box-shadow: var(--shadow-md); isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); color: #fff; }
.svc-card .svc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .6s var(--ease); }
.svc-card:hover .svc-img { transform: scale(1.06); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,15,36,.94) 4%, rgba(6,15,36,.55) 42%, rgba(6,15,36,.10) 72%);
}
.svc-body { position: relative; z-index: 2; height: 100%; min-height: inherit; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.svc-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(54,214,207,.16); border: 1px solid rgba(54,214,207,.38); color: var(--teal-400);
  backdrop-filter: blur(6px);
}
.svc-ico svg { width: 26px; height: 26px; }
.svc-card h3 { color: #fff; margin-bottom: 8px; }
.svc-card p { color: #cdd9ef; font-size: .96rem; margin-bottom: 16px; }
.svc-link { font-family: var(--font-head); font-weight: 600; color: var(--teal-400); display: inline-flex; align-items: center; gap: 7px; }
.svc-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* ---------- Preguntas frecuentes (FAQ) ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.faq-main h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 12px; }
.faq-main h2 .t-accent { color: var(--teal-400); }
.faq-intro { color: #9fb2d4; max-width: 46ch; margin-bottom: 26px; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq-item.open { border-color: rgba(54,214,207,.40); background: rgba(54,214,207,.05); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  background: none; border: 0; cursor: pointer; text-align: left;
  color: #eaf2ff; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
}
.faq-q-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: rgba(54,214,207,.12); color: var(--teal-400); }
.faq-q-ico svg { width: 18px; height: 18px; }
.faq-q-txt { flex: 1; }
.faq-q-mas { position: relative; width: 20px; height: 20px; flex: none; }
.faq-q-mas::before, .faq-q-mas::after { content: ""; position: absolute; background: var(--teal-400); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.faq-q-mas::before { left: 2px; right: 2px; top: 9px; height: 2px; }
.faq-q-mas::after { top: 2px; bottom: 2px; left: 9px; width: 2px; }
.faq-item.open .faq-q-mas::after { transform: rotate(90deg) scaleX(0); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; min-height: 0; }
.faq-a-in p { color: #b9c8e6; padding: 0 18px 16px 72px; margin: 0; font-size: .95rem; line-height: 1.6; }
.faq-a-in strong { color: #eaf2ff; }

.faq-help {
  display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(54,214,207,.06); border: 1px solid rgba(54,214,207,.22);
}
.faq-help-ico { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(54,214,207,.14); color: var(--teal-400); }
.faq-help-ico svg { width: 22px; height: 22px; }
.faq-help-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.faq-help-txt strong { color: #fff; font-family: var(--font-head); }
.faq-help-txt span { color: #9fb2d4; font-size: .9rem; }
.faq-help .btn { flex: none; }

.faq-media { position: relative; display: flex; align-items: center; gap: 14px; min-height: 540px; }
.faq-points { flex: 0 0 auto; width: 195px; display: grid; gap: 30px; z-index: 2; }
.faq-point { display: flex; gap: 12px; align-items: flex-start; }
.fp-ico { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(8,16,36,.5); border: 1px solid rgba(54,214,207,.30); color: var(--teal-400); }
.fp-ico svg { width: 20px; height: 20px; }
.faq-point strong { color: #fff; display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.faq-point span { color: #9fb2d4; font-size: .86rem; }
.faq-obrero { flex: 1 1 auto; min-width: 0; max-width: 360px; height: auto; margin-left: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }

@media (max-width: 920px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-media { min-height: 0; flex-direction: column-reverse; }
  .faq-points { width: 100%; grid-template-columns: 1fr; gap: 18px; max-width: 460px; margin-inline: auto; }
  .faq-obrero { max-width: 340px; margin-inline: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Quiénes somos (equipo recortado, estilo mockup) ---------- */
.quienes-home {
  background: radial-gradient(120% 120% at 82% 6%, #e8f1fb 0%, #ffffff 55%);
  overflow: hidden;
}
.quienes-grid { display: grid; grid-template-columns: 0.86fr 1.45fr; gap: 28px; align-items: center; }
.quienes-info h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.08; color: var(--navy-900); margin-bottom: 18px;
}
.quienes-info .t-grad {
  background: linear-gradient(100deg, var(--teal-600), var(--cyan-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quienes-info > p { color: var(--text-soft); font-size: 1.08rem; max-width: 48ch; margin-bottom: 28px; }

.quienes-media { position: relative; min-height: 440px; display: flex; align-items: flex-end; justify-content: center; }
/* anillos concéntricos (arriba-derecha) */
.quienes-media::before {
  content: ""; position: absolute; top: -6%; right: -4%; width: 400px; height: 400px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle, transparent 57%, rgba(23,199,192,.16) 58%, transparent 59.4%),
    radial-gradient(circle, transparent 72%, rgba(23,199,192,.12) 73%, transparent 74.4%),
    radial-gradient(circle, transparent 87%, rgba(23,199,192,.09) 88%, transparent 89.4%);
}
/* glow teal en el "piso" bajo el equipo */
.quienes-media::after {
  content: ""; position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  width: 82%; height: 90px; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23,199,192,.30), transparent 68%); filter: blur(16px);
}
/* grilla de puntos decorativa (arriba-izquierda del media) */
.quienes-dots {
  position: absolute; top: 12%; left: 2%; width: 120px; height: 150px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23,199,192,.55) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%);
          mask-image: linear-gradient(160deg, #000, transparent 75%);
}
.quienes-media picture { display: contents; }
.quienes-equipo {
  position: relative; z-index: 1; width: 100%; max-width: 760px; height: auto;
  filter: drop-shadow(0 22px 26px rgba(10,23,51,.18));
}
@media (max-width: 860px) {
  .quienes-grid { grid-template-columns: 1fr; gap: 8px; text-align: center; }
  .quienes-info > p { margin-inline: auto; }
  .quienes-media { min-height: 0; }
  .quienes-media::before { width: 260px; height: 260px; }
}

/* ---------- Cobertura (mapa holográfico) ---------- */
.cobertura-grid { display: grid; grid-template-columns: 0.78fr 1.5fr; gap: 32px; align-items: center; }
.cobertura-info h2 { color: #fff; }
.cobertura-info h2 .t-accent { color: var(--teal-400); }
.cobertura-info > p { color: #c7d6f0; }

/* Lista con íconos pequeños en badge circular */
.cob-feats { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 14px; }
.cob-feats li { display: flex; align-items: center; gap: 12px; color: #dbe6f7; font-weight: 500; }
.cob-feats li strong { color: #fff; }
.cob-ico { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(54,214,207,.12); border: 1px solid rgba(54,214,207,.30); color: var(--teal-400); }
.cob-ico svg { width: 17px; height: 17px; }

/* Mapa grande y protagonista (sin caja, con resplandor que sangra) */
.mapa-holo { position: relative; padding: 0; background: none; }
.mapa-holo::before {
  content: ""; position: absolute; inset: -12% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 42% 34%, rgba(23,199,192,.22), transparent 72%);
}
.cobertura-map { display: flex; flex-direction: column; align-items: center; }
.mapa-holo { width: 100%; }
#mapa-canvas { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.mapa-pin-label {
  position: absolute; left: 15.7%; top: 13.8%; transform: translate(16px, -50%); z-index: 2;
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #eafcff;
  background: rgba(8,16,36,.72); border: 1px solid rgba(56,189,248,.45); padding: 4px 11px; border-radius: var(--r-pill);
  white-space: nowrap; pointer-events: none; box-shadow: 0 0 18px rgba(56,189,248,.4);
}
.mapa-cap {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; margin-top: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-md); padding: 10px 18px;
}
.mapa-cap > span:last-child { white-space: nowrap; }
.mapa-cap-ico { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(54,214,207,.14); color: var(--teal-400); }
.mapa-cap-ico svg { width: 18px; height: 18px; }
.mapa-cap span { color: #9fb2d4; font-size: .9rem; line-height: 1.3; }
.mapa-cap strong { color: #fff; }
@media (max-width: 860px) {
  .cobertura-grid { grid-template-columns: 1fr; gap: 28px; }
  .cobertura-map { max-width: 620px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .mapa-cap { text-align: center; }
  .mapa-cap > span:last-child { white-space: normal; }
}

/* ---------- Tira de confianza / métricas ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 24px; text-align: center; }
.trust-strip .metric { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem,4vw,2.6rem); color: var(--navy-900); line-height: 1; }
.section-dark .trust-strip .metric { color: #fff; }
.trust-strip .metric .accent { color: var(--teal-500); }
.trust-strip .metric-lbl { color: var(--text-muted); font-size: .95rem; margin-top: 8px; }
.section-dark .trust-strip .metric-lbl { color: #9fb2d4; }

/* ---------- Tabla de precios / planes ---------- */
.precios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.destacado { border-color: var(--teal-500); box-shadow: var(--shadow-lg); }
.plan.destacado::before {
  content: "Más elegido"; position: absolute; top: -12px; left: 28px; background: linear-gradient(135deg,var(--teal-400),var(--cyan-400));
  color: #04201f; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .04em; padding: 5px 12px; border-radius: var(--r-pill);
}
.plan .plan-nombre { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 1.1rem; }
.plan .plan-vel { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--navy-900); line-height: 1.1; margin: 6px 0; }
.plan .plan-vel small { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.plan .plan-precio { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--teal-600); }
.plan .plan-precio small { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-soft); font-size: .96rem; }
.plan ul li svg { width: 18px; height: 18px; color: var(--teal-500); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* Grilla de 4 planes (estilo prototipo) */
.precios-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .precios-4 { grid-template-columns: repeat(4, 1fr); } }

/* Plan oscuro (sobre section-dark) */
.plan-dark {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); color: var(--text-inv);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.plan-dark:hover { border-color: rgba(54,214,207,.45); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.plan-dark .feature-ico { background: rgba(54,214,207,.14); color: var(--teal-400); }
.plan-dark .plan-nombre { color: #cdd9ef; }
.plan-dark .plan-vel { color: #fff; }
.plan-dark .plan-vel small { color: #9fb2d4; }
.plan-dark .plan-precio { color: var(--teal-400); }
.plan-dark .plan-precio small { color: #9fb2d4; }
.plan-dark ul li { color: #c7d6f0; }
.plan-dark.destacado { border-color: var(--teal-400); background: rgba(54,214,207,.08);
  box-shadow: 0 0 0 1px rgba(54,214,207,.35), 0 26px 60px rgba(0,0,0,.5); }
.plan-dark.destacado::before {
  content: "Más popular"; background: #1fae54; color: #fff; box-shadow: 0 6px 16px rgba(31,174,84,.4);
}

.plan-tabla { width: 100%; border-collapse: collapse; margin-top: 8px; background:#fff; border-radius: var(--r-md); overflow:hidden; box-shadow: var(--shadow-sm); }
.plan-tabla th, .plan-tabla td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.plan-tabla thead th { background: var(--navy-900); color: #fff; font-family: var(--font-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.plan-tabla tbody tr:hover { background: var(--surface-2); }
.plan-tabla td.vel { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); }
.plan-tabla td.precio { font-family: var(--font-head); font-weight: 800; color: var(--teal-600); text-align: right; font-variant-numeric: tabular-nums; }
.nota { color: var(--text-muted); font-size: .9rem; margin-top: 12px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px; }
.tab-btn {
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-family: var(--font-head); font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-pill); cursor: pointer; transition: all .2s var(--ease);
}
.tab-btn:hover { border-color: var(--teal-400); }
.tab-btn[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.tab-panel { display: none; }
.tab-panel.activo { display: block; animation: fadeUp .35s var(--ease); }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.galeria figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; position: relative; }
.galeria img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s var(--ease); }
.galeria figure:hover img { transform: scale(1.07); }
.galeria figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: .88rem; color: #fff; font-weight: 600;
  background: linear-gradient(to top, rgba(6,15,36,.85), transparent); transform: translateY(100%); transition: transform .3s var(--ease);
}
.galeria figure:hover figcaption { transform: none; }

/* ---------- Formulario ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid label { font-family: var(--font-head); font-weight: 600; display: grid; gap: 7px; color: var(--navy-800); font-size: .95rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  font: inherit; font-family: var(--font-body); padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(23,199,192,.18); }
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-check { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-family: var(--font-body, inherit); font-size: .9rem; color: var(--text-soft); line-height: 1.45; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--teal-600); cursor: pointer; }
.form-check a { color: var(--teal-600); font-weight: 600; }
.form-check .req { color: var(--err); }
.form-aviso { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 500; }
.form-aviso.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #9fe3bd; }
.form-aviso.err { background: var(--err-bg); color: var(--err); border: 1px solid #f3b4b0; }
.req { color: var(--err); }

/* ---------- Datos de contacto / pago ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--teal-600); }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list .info-t { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); display: block; }
.info-list a { font-weight: 600; }

.pago-bloque {
  align-self: start; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.pago-bloque:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deee; }
.pago-media { aspect-ratio: 16 / 9; background: var(--navy-900); }
.pago-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pago-body { padding: 24px; }
.pago-bloque h3 { margin: 0 0 10px; font-size: 1.22rem; }
.pago-bloque > .pago-body > p { color: var(--text-soft); line-height: 1.6; margin: 0 0 10px; }
.pago-body .nota { color: var(--text-muted); font-size: .9rem; margin: 4px 0 0; }
.pago-body .btn-wa { margin-top: 4px; }
.pago-wa-num { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); margin-top: 12px !important; }
.banco { display: grid; gap: 5px; padding: 16px; border-radius: var(--r-md); background: var(--surface-2); margin-top: 14px; border: 1px solid var(--line-soft); }
.banco:first-of-type { margin-top: 6px; }
.banco .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.banco .k { color: var(--text-muted); font-size: .9rem; }
.banco .v { font-family: var(--font-head); font-weight: 600; color: var(--navy-800); font-variant-numeric: tabular-nums; text-align: right; }
.mapa { width: 100%; border: 0; border-radius: var(--r-lg); min-height: 360px; box-shadow: var(--shadow-md); }

/* ---------- Políticas internas (Normatividad › Interna) ---------- */
.policy-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .policy-list { grid-template-columns: 1fr; } }
.policy-item {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.policy-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deee; }
.policy-ico {
  flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--teal-600);
}
.policy-ico svg { width: 24px; height: 24px; }
.policy-body { min-width: 0; }
.policy-body h3 { margin: 2px 0 10px; font-size: 1.18rem; color: var(--navy-900); }
.policy-body p { color: var(--text-soft); line-height: 1.6; margin: 0 0 10px; }
.policy-body p:last-of-type { margin-bottom: 0; }
.policy-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--teal-600);
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
}
.policy-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.policy-link:hover { text-decoration: none; } .policy-link:hover svg { transform: translateX(3px); }

/* ---------- Marco regulatorio (Normatividad › Nacional) ---------- */
.norm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.norm-grid > li { display: flex; }
.norm-grid a, .norm-grid .norm-disabled {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  color: var(--navy-800); font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease);
}
.norm-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-400); text-decoration: none; }
.norm-grid .norm-disabled { opacity: .6; }
.norm-ico { display: inline-flex; flex: none; width: 34px; height: 34px; border-radius: 9px; align-items: center; justify-content: center; background: rgba(23,199,192,.12); color: var(--teal-600); }
.norm-ico svg { width: 18px; height: 18px; }
.norm-label { flex: 1; min-width: 0; }
.norm-arrow { width: 16px; height: 16px; color: var(--text-muted); flex: none; transition: transform .2s var(--ease), color .2s var(--ease); }
.norm-grid a:hover .norm-arrow { transform: translateX(3px); color: var(--teal-600); }

/* ---------- Entidades de contacto (Internet Sano + reguladoras) ---------- */
.entidad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; margin-top: 20px; }
.entidad-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.entidad-card h4 { margin: 0 0 14px; font-family: var(--font-head); font-size: 1.04rem; color: var(--navy-900); line-height: 1.3; }
.entidad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.entidad-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: .92rem; line-height: 1.45; }
.entidad-list svg { width: 17px; height: 17px; flex: none; color: var(--teal-600); margin-top: 2px; }
.entidad-list a { color: var(--teal-600); font-weight: 600; word-break: break-word; }
.entidad-list a:hover { color: var(--teal-700, var(--teal-600)); }
.entidad-logo { display: flex; align-items: center; justify-content: center; height: 56px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.entidad-logo img { height: 44px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.entidad-card--logo h4 { font-size: 1rem; }
#seguridad-web { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- "Ver más" (texto colapsable) ---------- */
.readmore { max-width: 72ch; margin: -6px 0 6px; }
.readmore__extra p { color: var(--text-soft); line-height: 1.7; margin: 0 0 14px; }
.readmore__extra a { color: var(--teal-600); font-weight: 600; }
.readmore__extra a svg { width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px; }
.js .readmore__extra { display: none; }            /* con JS, oculto hasta expandir */
.readmore.is-open .readmore__extra { display: block; }
.readmore__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; margin-top: 2px;
  background: none; border: 0; cursor: pointer;
  color: var(--teal-600); font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.readmore__btn:hover { color: var(--teal-700, var(--navy-900)); }
.readmore__chev { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.readmore.is-open .readmore__chev { transform: rotate(180deg); }
.readmore__intro { max-width: 72ch; color: var(--text-soft); line-height: 1.6; margin: 4px 0 0; }

/* Bloques de Internet Sano (separados del "Ver más") */
.is-bloque { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.is-bloque > h3 { margin: 0 0 10px; }
.is-bloque > p { max-width: 72ch; color: var(--text-soft); line-height: 1.7; margin: 0 0 12px; }
.is-bloque > p a { color: var(--teal-600); font-weight: 600; }
.is-intro { margin-bottom: 18px !important; }
.is-cita { color: var(--text-muted); font-size: .88rem; }

/* Capturas de indicadores de calidad (C-APP-002-COM) */
.cal-cap { margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.cal-cap img { display: block; width: 100%; height: auto; }
#calidad-cobertura { scroll-margin-top: calc(var(--header-h) + 14px); }

/* ---------- Listas con check / chips ---------- */
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lista-check li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-soft); }
.lista-check li svg { width: 21px; height: 21px; color: var(--teal-500); flex: none; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: var(--surface-3); color: var(--navy-700); padding: 7px 14px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; }

/* Normatividad: marco regulatorio y entidades con enlaces a los sitios oficiales */
.norm-links li a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-800); font-weight: 600; }
.norm-links li a:hover { color: var(--teal-600); text-decoration: underline; }
.norm-links li a svg.norm-ext { width: 14px; height: 14px; color: var(--text-muted); flex: none; margin: 0; }
.norm-links li a:hover svg.norm-ext { color: var(--teal-600); }
.norm-links--inline { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.norm-links--inline li { display: flex; gap: 9px; align-items: flex-start; }
.norm-links--inline li svg:first-child { width: 17px; height: 17px; color: var(--teal-500); flex: none; margin-top: 3px; }
.chips--links a { background: var(--surface-3); color: var(--navy-700); padding: 7px 14px; border-radius: var(--r-pill); font-size: .9rem; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease); }
.chips--links a:hover { background: var(--teal-500); color: #04201f; }

/* ---------- Bloque CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--text-inv); border-radius: var(--r-lg); padding: clamp(32px,5vw,56px); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(420px 220px at 85% 10%, rgba(54,214,207,.30), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d6f0; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* Caja "destacada" / aviso pendiente */
.callout { border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 40px; text-align: center; background: var(--surface-2); color: var(--text-muted); }
.callout svg { width: 40px; height: 40px; color: var(--navy-600); opacity: .6; margin: 0 auto 12px; }

/* Texto largo legible */
.prosa { max-width: 70ch; }
.prosa p { color: var(--text-soft); }

/* ---------- Botones flotantes ---------- */
.floating-buttons { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 20px; }
.fab {
  position: relative; width: 64px; height: 64px; border-radius: 50%; aspect-ratio: 1;
  display: grid; place-items: center; padding: 0; color: #fff;
  border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fab svg { width: 27px; height: 27px; flex: none; }
.fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.fab-wa { background: rgba(31,174,84,.92); box-shadow: 0 8px 26px rgba(31,174,84,.5); }
.fab-wa:hover { box-shadow: 0 12px 34px rgba(31,174,84,.65); }
.fab-speed { background: linear-gradient(135deg, rgba(23,199,192,.92), rgba(14,165,233,.92)); box-shadow: 0 8px 26px rgba(23,199,192,.5); }
.fab-speed:hover { box-shadow: 0 12px 34px rgba(23,199,192,.65); }
/* Tooltip al pasar el mouse */
.fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  background: rgba(10,18,38,.92); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  padding: 7px 12px; border-radius: 8px; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
  box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.08);
}
.fab-label::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: rgba(10,18,38,.92); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-inv); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 36px; padding: clamp(40px,6vw,64px) 22px 36px; }
.footer-logo { height: 74px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #9fb2d4; max-width: 34ch; font-size: .96rem; }
.footer-col h3 { color: #fff; font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col a { color: #c0cfe8; }
.footer-col a:hover { color: var(--teal-400); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
/* Columna Contacto: ítems con ícono pequeño del mismo tamaño */
.footer-contact a, .footer-addr { display: flex; align-items: flex-start; gap: 9px; }
.footer-contact svg, .footer-addr svg { width: 16px; height: 16px; flex: none; color: var(--teal-400); margin-top: 2px; }
.footer-addr { color: #9fb2d4; }
.footer-col p { margin: 0 0 10px; color: #c0cfe8; }
.footer-redes { display: flex; gap: 10px; margin-top: 4px; }
.footer-redes a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: rgba(255,255,255,.07); color: #c0cfe8; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.footer-redes a:hover { background: var(--teal-500); color: #04201f; transform: translateY(-2px); }
.footer-redes svg { width: 19px; height: 19px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.10); padding: 18px 0; color: #8095b8; font-size: .86rem; }
.footer-legal .container { display: flex; justify-content: space-between; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.footer-legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-links a { color: #8095b8; }
.footer-legal-links a:hover { color: var(--teal-400); }

/* ---------- Animaciones de entrada (progressive enhancement) ----------
   Solo se ocultan si JS está activo (html.js); sin JS, el contenido es visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .header-inner { display: flex; align-items: center; }         /* en móvil: barra simple */
  .header-menu { display: contents; }                          /* no afecta la barra */
  .header-redes--desktop, .header-pago { display: none; }      /* pago/redes solo en el panel */
  /* Sin backdrop-filter en móvil: el blur del header convertía al header en el
     bloque contenedor del panel fixed y lo recortaba a 66px. */
  /* Fondo SÓLIDO en móvil: evita la "sombra" blanca del fondo de página que se
     veía a través del header semitransparente en la parte superior. */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #070e20; border-bottom-color: transparent; }
  .site-header.is-stuck { background: #060c1c; }
  .nav-toggle {
    position: relative; z-index: 130;
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  body.nav-abierto .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-abierto .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-abierto .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  /* Con el panel abierto, el hamburguesa se oculta: la X grande del panel es la que cierra */
  body.nav-abierto .nav-toggle { opacity: 0; visibility: hidden; pointer-events: none; }

  .nav-principal {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); z-index: 120;
    background: var(--navy-950); padding: calc(var(--header-h) + 12px) 18px 24px; margin: 0;
    overflow-y: auto; box-shadow: var(--shadow-xl);
    border-left: 1px solid rgba(255,255,255,.08);
    display: none;   /* cerrado: fuera del layout → no genera scroll horizontal en móvil */
  }
  body.nav-abierto .nav-principal { display: block; animation: navSlideIn .3s var(--ease); }
  @keyframes navSlideIn { from { transform: translateX(100%); } to { transform: none; } }
  /* X grande para cerrar el panel (esquina superior del panel) */
  .nav-close {
    display: block; width: 46px; height: 46px; padding: 0; margin: 0 0 6px;
    background: none; border: 0; color: #fff; cursor: pointer; line-height: 0;
    transition: color .2s var(--ease);
  }
  .nav-close svg { width: 34px; height: 34px; }
  .nav-close:hover { color: var(--teal-400); }
  .nav-close:active { color: var(--teal-500); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(6,15,36,.6); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 95; }
  body.nav-abierto .nav-backdrop { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-item > a { padding: 12px 12px; font-size: 1rem; justify-content: space-between; color: #eaf2ff; }
  .nav-item > a.activo::before { display: none; }
  .nav-item.has-mega > a::after, .nav-item.has-sub > a::after { margin-left: auto; }
  .nav-item.open.has-mega > a::after, .nav-item.open.has-sub > a::after { transform: rotate(225deg) translateY(2px); }

  /* Submenús COLAPSADOS por defecto (se abren al tocar) + SIN imágenes → cabe en 1 pantalla */
  .mega-menu, .submenu {
    position: static; transform: none; box-shadow: none; border: 0; opacity: 1; visibility: visible;
    background: rgba(255,255,255,.03); margin: 2px 0 6px; border-radius: var(--r-md); display: none;
  }
  .nav-item.open .mega-menu, .nav-item.open .submenu { display: block; padding: 6px; }
  /* Mega-menú en móvil: lista simple para caber en una pantalla */
  .mega-head { display: none; }   /* el encabezado de marketing solo va en escritorio */
  .mega-inner { display: block; }
  .mega-feat { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  .mega-feat-hero, .mega-feat-desc { display: none; }
  .mega-feat-body { padding: 0; }
  /* Título "Internet" visible en móvil (el hero está oculto) */
  .mega-feat-name {
    display: flex; align-items: center; gap: 9px; padding: 9px 10px 6px;
    color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  }
  .mega-feat-name svg { width: 19px; height: 19px; color: var(--teal-400); }
  .mega-feat-name:hover { color: #fff; text-decoration: none; }
  /* Sangría: los planes de Internet quedan anidados bajo el título "Internet" */
  .mega-feat-list { margin: 0 0 0 14px; gap: 0; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.1); }
  .mega-feat-list a { color: #cdd9ef; padding: 9px 10px; font-size: .96rem; }
  .mega-feat-list a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .mega-feat-list .mfl-ico { color: var(--teal-400); }
  .mega-feat-list .mfl-arrow { display: none; }
  .mega-feat-all { color: var(--teal-400); border-top-color: rgba(255,255,255,.1); padding: 10px; margin: 4px 0 0 22px; }

  .mega-otros { display: block; margin-top: 2px; }
  .mega-svc { display: block; background: transparent; border: 0; box-shadow: none; min-height: 0; border-radius: 0; }
  .mega-svc:hover { transform: none; box-shadow: none; }
  .mega-svc-img, .mega-svc-desc, .mega-svc-link { display: none; }
  .mega-svc-body { padding: 9px 10px; }
  .mega-svc-titulo { color: #fff; font-size: .98rem; padding-right: 0; }
  .mega-svc-arrow { display: none; }

  .submenu a { color: #cdd9ef; padding: 10px 12px; }
  .submenu a:hover { background: rgba(255,255,255,.06); color: #fff; }

  /* Acciones dentro del panel móvil */
  .nav-principal .nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .nav-principal .nav-actions .btn-pago, .nav-principal .nav-actions .header-wa { justify-content: center; }
  .nav-principal .header-redes { justify-content: center; margin-top: 4px; }
}
@media (min-width: 881px) { .nav-principal .nav-actions { display: none; } }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .fab-label { display: none; }
  .fab { padding: 14px; }
  .hero-stats { gap: 22px; }
}
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   NOTICIAS (blog automático: Tecnología, Internet y Redes)
   ============================================================ */
.blog { background: var(--surface-2); }

.blog-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.blog-chip {
  font: 600 .92rem/1 "Source Sans 3", system-ui, sans-serif;
  color: var(--text-soft); background: #fff; border: 1.5px solid var(--line);
  padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer;
  transition: all .2s var(--ease, ease);
}
.blog-chip:hover { border-color: var(--teal-500); color: var(--navy-800); }
.blog-chip.is-active {
  color: #04201f; border-color: transparent;
  background: linear-gradient(135deg, var(--teal-400), var(--cyan-400));
  box-shadow: var(--shadow-teal);
}

.blog-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.post { display: flex; }
.post-link {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .22s var(--ease, ease), box-shadow .22s var(--ease, ease), border-color .22s var(--ease, ease);
}
.post-link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d3deee; }

.post-media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
}
.post-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s var(--ease, ease);
}
.post-link:hover .post-media img { transform: scale(1.05); }
.post-media-fallback {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45);
}
.post-media-fallback svg { width: 40px; height: 40px; }
.post-media.no-img img { display: none; }
.post-media.no-img .post-media-fallback { display: flex; }

.post-cat {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font: 700 .72rem/1 "Source Sans 3", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #04201f; background: rgba(54,214,207,.95); padding: 6px 11px; border-radius: var(--r-pill);
  backdrop-filter: blur(2px);
}

.post-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.post-titulo {
  font: 700 1.12rem/1.32 "Lexend", system-ui, sans-serif; color: var(--navy-900); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-resumen {
  font-size: .94rem; color: var(--text-muted); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px;
  font-size: .82rem; color: var(--text-muted);
}
.post-fuente { font-weight: 700; color: var(--teal-600); }
.post-sep { opacity: .5; }
.post-leer {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; color: var(--navy-700);
}
.post-leer svg { width: 15px; height: 15px; transition: transform .2s var(--ease, ease); }
.post-link:hover .post-leer { color: var(--teal-600); }
.post-link:hover .post-leer svg { transform: translateX(3px); }

.blog-nota { margin-top: 30px; text-align: center; font-size: .85rem; color: var(--text-muted); }

.blog-empty { max-width: 460px; margin: 20px auto; text-align: center; }
.blog-empty-ico {
  display: inline-flex; padding: 16px; border-radius: 50%;
  background: var(--surface-3); color: var(--teal-600); margin-bottom: 14px;
}
.blog-empty-ico svg { width: 30px; height: 30px; }
.blog-empty h2 { font-size: 1.3rem; color: var(--navy-900); margin: 0 0 8px; }
.blog-empty p { color: var(--text-muted); margin: 0 0 20px; }

/* ============================================================
   HOY EN NUESTRAS REDES (TikTok + Instagram en el Home)
   ============================================================ */
.redes { background: #fff; }

/* ---------- Nuestros aliados (home, fondo blanco) ---------- */
.aliados { background: #fff; }
.aliados-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.aliados-head .eyebrow { justify-content: center; }
.aliados-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy-900); margin: 6px 0 12px; }
.aliados-head p { color: var(--text-soft); font-size: 1.05rem; margin: 0; }
.aliados-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .aliados-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .aliados-grid { grid-template-columns: repeat(2, 1fr); } }
.aliado {
  display: flex; align-items: center; justify-content: center; min-height: 118px; padding: 22px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.aliado:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deee; }
.aliado img { height: 46px; width: auto; max-width: 78%; object-fit: contain; display: block; }
/* el escudo y logos cuadrados se equilibran algo más altos que los apaisados */
.aliado img[alt*="Colombia"], .aliado img[alt="SENA"], .aliado img[alt="Huawei"] { height: 58px; }

/* Encabezado arriba, centrado */
.redes-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.redes-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--navy-900); margin: 6px 0 12px; }
.redes-head p { color: var(--text-soft); font-size: 1.08rem; margin: 0; }

/* Dos columnas: TikTok + Instagram (misma altura) */
.redes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.redes-col { display: flex; flex-direction: column; }

/* Cabecera de cada columna (icono + handle + "Ver más") */
.redes-col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.redes-col-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: #fff; flex: none;
}
.redes-col-ico svg { width: 22px; height: 22px; }
.redes-col-ico--tt { background: #010101; }
.redes-col-ico--ig { background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); }
.redes-col-id { display: flex; flex-direction: column; line-height: 1.2; }
.redes-col-id strong { color: var(--navy-900); font-size: 1.02rem; }
.redes-col-id span { color: var(--text-muted); font-size: .86rem; }
.redes-col-link { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .9rem; color: var(--teal-600); }
.redes-col-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease, ease); }
.redes-col-link:hover svg { transform: translateX(3px); }

/* TikTok: el widget llena su columna (TikTok le mete max-width propio → lo forzamos) */
.redes-embed {
  width: 100%; margin: 0; display: block;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin; scrollbar-color: var(--teal-500) var(--surface-3);
}
.redes-embed > *,
.redes-embed .tiktok-embed,
.redes-embed .tiktok-embed * { max-width: 100% !important; min-width: 0 !important; }
.redes-embed .tiktok-embed,
.redes-embed iframe { width: 100% !important; margin: 0 !important; }
.redes-embed iframe { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.redes-embed::-webkit-scrollbar { height: 9px; }
.redes-embed::-webkit-scrollbar-track { background: var(--surface-3); border-radius: var(--r-pill); }
.redes-embed::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--teal-400), var(--cyan-400)); border-radius: var(--r-pill); }

/* Instagram: tarjeta con collage de fotos reales (rellena el alto de la columna) */
.ig-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ig-collage { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; flex: 1; min-height: 220px; }
.ig-cell { position: relative; min-height: 0; overflow: hidden; border-radius: 10px; display: block; }
/* Imagen en posición absoluta: NO aporta altura → la tarjeta no crece sola,
   se estira solo lo necesario para igualar la columna de TikTok. */
.ig-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease, ease); }
.ig-cell:hover img { transform: scale(1.08); }
.ig-cell-ov {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(15, 27, 45, 0); opacity: 0; transition: .25s var(--ease, ease);
}
.ig-cell-ov svg { width: 24px; height: 24px; }
.ig-cell:hover .ig-cell-ov { opacity: 1; background: rgba(15, 27, 45, .35); }
.ig-follow {
  width: 100%; justify-content: center; gap: 9px; margin-top: 14px; color: #fff; border: none;
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  box-shadow: 0 12px 26px rgba(214, 41, 118, .32);
}
.ig-follow:hover { transform: translateY(-2px); color: #fff; }
.ig-follow svg { width: 19px; height: 19px; }

@media (max-width: 860px) {
  .redes-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ============================================================
   TEST DE VELOCIDAD (LibreSpeed integrado, branding SELVANET)
   ============================================================ */
.spd {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 65%);
  color: var(--text-inv);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 30px) 0 70px;
}
.spd .breadcrumb { margin-bottom: 20px; }

/* Layout (mockup): arriba 2 tarjetas (intro · test); abajo "Tu conexión" full-width */
.spd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: stretch; }
.spd-net { grid-column: 1 / -1; }

.spd-card {
  position: relative; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}

/* Tarjeta intro */
.spd-intro { display: flex; flex-direction: column; }
.spd-intro .eyebrow { color: var(--teal-400); }
.spd-intro h1 { color: #fff; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.08; margin: 10px 0 14px; }
.spd-intro > p { color: #c7d6f0; font-size: 1.05rem; line-height: 1.6; margin: 0 0 22px; }
.spd-tips { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 13px; }
.spd-tips li { display: flex; align-items: flex-start; gap: 10px; color: #c7d6f0; font-size: .97rem; line-height: 1.4; }
.spd-tips svg { width: 19px; height: 19px; color: var(--teal-400); flex: none; margin-top: 1px; }
.spd-help { gap: 9px; margin-top: auto; }            /* anclado al fondo de la tarjeta */
.spd-help svg { width: 18px; height: 18px; }

.spd-main { display: flex; flex-direction: column; }
.spd-status {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; color: #9fb2d4; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12); padding: 7px 14px; border-radius: var(--r-pill);
}
.spd-led { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 10px var(--teal-400); }

.spd-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 30px; }
.spd-gauge { position: relative; text-align: center; min-width: 0; }
.spd-gauge svg { display: block; width: 100%; max-width: 235px; height: auto; margin-inline: auto; }
.spd-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 14; stroke-linecap: round; }
.spd-fill { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset .25s ease; }
.spd-dl .spd-fill { stroke: var(--teal-400); filter: drop-shadow(0 0 6px rgba(54, 214, 207, .55)); }
.spd-ul .spd-fill { stroke: var(--cyan-400); filter: drop-shadow(0 0 6px rgba(56, 189, 248, .55)); }
/* Lectura centrada en el centro del arco (círculo = centro del SVG) */
.spd-readout {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; pointer-events: none;
}
.spd-glabel {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; color: #9fb2d4;
}
.spd-glabel svg { width: 15px; height: 15px; }
.spd-dl .spd-glabel svg { color: var(--teal-400); }
.spd-ul .spd-glabel svg { color: var(--cyan-400); }
.spd-value { padding: 0 6px; font-family: var(--font-head); font-size: clamp(1.7rem, 2.4vw, 2.5rem); font-weight: 700; line-height: 1; color: #fff; white-space: nowrap; }
.spd-unit { font-size: .8rem; color: #9fb2d4; }

.spd-chips { display: flex; gap: 14px; justify-content: center; margin-top: 10px; }
.spd-chip { flex: 1; max-width: 260px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-md); padding: 14px 16px; text-align: center; }
.spd-chip .spd-k { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: #9fb2d4; text-transform: uppercase; letter-spacing: 1.5px; }
.spd-chip .spd-k svg { width: 14px; height: 14px; }
.spd-chip .spd-v { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; margin-top: 4px; }
.spd-chip .spd-v small { font-size: .7rem; color: #9fb2d4; font-weight: 500; }
.spd-ping .spd-v, .spd-ping .spd-k svg { color: var(--teal-400); }
.spd-jit .spd-v, .spd-jit .spd-k svg { color: var(--cyan-400); }

.spd-actions { text-align: center; margin-top: auto; padding-top: 24px; }
.spd-go { gap: 10px; padding: 16px 44px; font-size: 1.08rem; }
.spd-go svg { width: 19px; height: 19px; }
.spd-go.running { background: linear-gradient(135deg, #ff5d73, #ff8a5b); box-shadow: 0 14px 36px rgba(255, 93, 115, .42); color: #fff; }

/* Tarjeta "Tu conexión" (full-width): info en 4 columnas, fila 2 a doble ancho */
.spd-net h2 { font-family: var(--font-head); margin: 0 0 4px; font-size: 1.25rem; color: #fff; }
.spd-sub { color: #9fb2d4; font-size: .88rem; margin-bottom: 20px; }
.spd-net-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spd-net-grid .spd-info:nth-child(5),
.spd-net-grid .spd-info:nth-child(6) { grid-column: span 2; }
.spd-info { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-md); padding: 16px; }
.spd-info .spd-k { display: flex; align-items: center; gap: 7px; font-size: .7rem; color: #9fb2d4; text-transform: uppercase; letter-spacing: 1.2px; }
.spd-info .spd-k svg { width: 15px; height: 15px; color: var(--teal-400); flex: none; }
.spd-iv { margin-top: 8px; font-size: 1.05rem; font-weight: 600; color: #eaf2ff; word-break: break-word; line-height: 1.3; }
.spd-iv.dim { color: #9fb2d4; font-weight: 500; font-size: .95rem; }
.spd-flag { font-size: 1.3rem; margin-right: 6px; vertical-align: -2px; }
.spd-note { margin-top: 16px; font-size: .78rem; color: #9fb2d4; line-height: 1.5; }
.spd-credit { margin: 22px 0 0; text-align: center; font-size: .82rem; color: #7e8db0; }
.spd-credit a { color: var(--teal-400); }

.spd-warn {
  display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 180, 84, .10);
  border: 1px solid rgba(255, 180, 84, .32); color: #ffe6c2; border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 20px; font-size: .88rem; line-height: 1.5;
}
.spd-warn[hidden] { display: none; }
.spd-warn-ico { color: #ffb454; flex: none; }
.spd-warn-ico svg { width: 22px; height: 22px; }
.spd-warn strong { color: #ffd9a8; }

/* Tablet: "Tu conexión" pasa a 2 columnas */
@media (max-width: 960px) {
  .spd-net-grid { grid-template-columns: repeat(2, 1fr); }
  .spd-net-grid .spd-info:nth-child(5),
  .spd-net-grid .spd-info:nth-child(6) { grid-column: auto; }
}
/* Móvil: las dos tarjetas de arriba se apilan */
@media (max-width: 760px) {
  .spd-grid { grid-template-columns: 1fr; }
  .spd-status { position: static; width: fit-content; margin: 0 auto 2px; }
  .spd-gauges { margin-top: 6px; }
  .spd-help { margin-top: 18px; }
  .spd-actions { margin-top: 22px; }
}
@media (max-width: 460px) {
  .spd-net-grid { grid-template-columns: 1fr; }
  .spd-gauges { grid-template-columns: 1fr; }
  .spd-chip { max-width: none; }
}


/* ============================================================
   PÁGINAS LEGALES (Términos, Tratamiento de datos)
   ============================================================ */
.legal { background: var(--surface-2); }
.legal-wrap { max-width: 840px; margin: 0 auto; }
.legal-updated { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .88rem; margin-bottom: 26px; }
.legal-updated svg { width: 15px; height: 15px; color: var(--teal-600); }

/* Tarjeta de identificación (responsable / empresa) */
.legal-id { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal-500); border-radius: var(--r-md); padding: 20px 24px; margin: 0 0 30px; box-shadow: var(--shadow-sm); }
.legal-id h2 { margin: 0 0 12px; font-size: 1.05rem; }
.legal-id dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.legal-id dt { color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.legal-id dd { margin: 0; color: var(--navy-900); font-weight: 600; font-size: .95rem; }

/* Índice */
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 24px; margin: 0 0 36px; }
.legal-toc strong { display: block; font-family: var(--font-head); color: var(--navy-900); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--text-soft); font-weight: 500; }
.legal-toc a:hover { color: var(--teal-600); }

/* Prosa legal */
.legal-body h2 { font-family: var(--font-head); color: var(--navy-900); font-size: 1.3rem; margin: 40px 0 12px; scroll-margin-top: calc(var(--header-h) + 14px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--font-head); color: var(--navy-800); font-size: 1.05rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: var(--text-soft); line-height: 1.72; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 9px; }
.legal-body a { color: var(--teal-600); font-weight: 600; }
.legal-body strong { color: var(--navy-900); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .95rem; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--navy-900); font-family: var(--font-head); }

.legal-note { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin: 26px 0 0; color: var(--text-muted); font-size: .9rem; }
.legal-note a { color: var(--teal-600); font-weight: 600; }

/* ============================================================
   CONTÁCTENOS (tarjetas + formulario/mapa a igual altura)
   ============================================================ */
.contacto { background: var(--surface-2); }

/* Tarjetas de contacto (fila superior) */
.contacto-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.contacto-card {
  display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.contacto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3deee; text-decoration: none; }
.contacto-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--teal-600); }
.contacto-card .ico svg { width: 22px; height: 22px; }
.contacto-card .info-t { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: .98rem; margin-top: 4px; }
.contacto-card .contacto-card-val { color: var(--text-muted); font-size: .92rem; line-height: 1.4; }
a.contacto-card .contacto-card-val { color: var(--teal-600); font-weight: 600; }

/* Formulario + mapa, misma altura */
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: stretch; }
.contacto-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-md); }
.contacto-form h2 { margin: 0 0 4px; }
.contacto-form-sub { color: var(--text-muted); margin: 0 0 22px; }
.contacto-map { min-height: 100%; }
.contacto-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-md); display: block; }

@media (max-width: 900px) {
  .contacto-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-map iframe { min-height: 360px; }
}
@media (max-width: 460px) {
  .contacto-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   QUIÉNES SOMOS — botón hero + galería con lightbox
   ============================================================ */
.page-hero-cta { margin-top: 26px; }

/* Galería: cada foto es clicable */
.galeria-item { cursor: pointer; border: 0; padding: 0; background: #fff; font: inherit; text-align: left; appearance: none; }
.galeria-item:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; }
.galeria-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(6,15,36,.45); backdrop-filter: blur(2px);
  opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.galeria-zoom svg { width: 18px; height: 18px; }
.galeria-item:hover .galeria-zoom, .galeria-item:focus-visible .galeria-zoom { opacity: 1; transform: scale(1); }

/* Lightbox */
body.glb-open { overflow: hidden; }
.glb { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(5,12,28,.95); }
.glb[hidden] { display: none; }
.glb-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 60px 18px 8px; }
.glb-img { max-width: min(1100px, 92vw); max-height: 70vh; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); background: #0a1733; }
.glb-cap { margin: 0; color: #eaf2ff; font-family: var(--font-head); font-weight: 600; text-align: center; }

.glb-close {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.glb-close:hover { background: rgba(23,199,192,.2); border-color: var(--teal-400); color: var(--teal-400); }
.glb-close svg { width: 26px; height: 26px; }

.glb-nav {
  position: absolute; top: 44%; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.glb-nav:hover { background: rgba(23,199,192,.2); border-color: var(--teal-400); color: var(--teal-400); }
.glb-nav svg { width: 24px; height: 24px; }
.glb-prev { left: 16px; transform: rotate(180deg); }
.glb-next { right: 16px; }

/* Tira de miniaturas con barra de desplazamiento */
.glb-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px clamp(16px, 4vw, 60px) 18px;
  scrollbar-width: thin; scrollbar-color: var(--teal-500) rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}
.glb-thumbs::-webkit-scrollbar { height: 9px; }
.glb-thumbs::-webkit-scrollbar-track { background: rgba(255,255,255,.08); border-radius: var(--r-pill); }
.glb-thumbs::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--teal-400), var(--cyan-400)); border-radius: var(--r-pill); }
.glb-thumb { flex: none; width: 92px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: none; cursor: pointer; opacity: .6; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.glb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.glb-thumb:hover { opacity: 1; }
.glb-thumb.is-active { opacity: 1; border-color: var(--teal-400); }

@media (max-width: 600px) {
  .glb-img { max-height: 60vh; }
  .glb-nav { width: 42px; height: 42px; top: auto; bottom: 96px; }
  .glb-thumb { width: 76px; height: 54px; }
}


/* Misión / Visión — texto recortado con "Ver más" (solo si hay JS) */
.mv-toggle { display: none; }
.js .mv-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.js .mv-text.is-expanded { -webkit-line-clamp: unset; display: block; overflow: visible; }
.js .mv-toggle {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--teal-600);
}
.js .mv-toggle:hover { color: var(--teal-500); }
.mv-chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.mv-toggle[aria-expanded="true"] .mv-chev { transform: rotate(180deg); }

/* Valores — chips con fondo visible (antes se confundían con el fondo de la sección) */
.valores { gap: 10px; }
.valores span {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--navy-800); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.valores span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); flex: none; }
