/* ============================================================
   CoET S.A.S. — Hoja de estilos principal
   Paleta y tipografía según Manual de Identidad MI-01 v1.0
   Navy #1F3864 · Navy Claro #2A5088 · Cian #33C1D6 (solo detalles, máx ~10%)
   Gris Texto #595959 · Gris Claro #F2F2F2 · Gris Borde #BFBFBF
   Tipografía: Carlito (equivalente libre y métrico de Calibri)
   ============================================================ */

/* Carlito autoalojada (subset latino, licencia SIL OFL).
   Sin peticiones a fonts.googleapis.com: menos latencia y CSP más estricta. */
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/carlito-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/carlito-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/carlito-italic.woff2') format('woff2');
}

:root {
  --navy:         #1F3864;
  --navy-light:   #2A5088;
  --navy-deep:    #16294a;
  --cyan:         #33C1D6;   /* SOLO detalles: líneas, nodos, acentos. Nunca en texto. */
  --gray-text:    #595959;
  --gray-light:   #F2F2F2;
  --gray-border:  #BFBFBF;
  --white:        #FFFFFF;
  --ink:          #21262e;

  --font: 'Carlito', Calibri, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --radius: 4px;
  --band-y: 104px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.18; }

/* ---------- Tipografía de sección ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 14px;
}
/* El cian aparece únicamente como barra de acento, nunca como color de texto. */
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--cyan);
  flex: none;
}
.eyebrow-light { color: var(--white); }

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 18px;
  max-width: 20ch;
}
.section-title-light { color: var(--white); }

.section-lead {
  max-width: 62ch;
  font-size: 1.06rem;
  margin-bottom: 52px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--gray-border); }
.btn-outline:hover { border-color: var(--navy); background: var(--gray-light); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(31,56,100,.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo-icon { width: 42px; height: 42px; flex: none; color: var(--navy); }
.logo-icon-lg { width: 56px; height: 56px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-mark {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.logo-sas {
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--gray-text);
  font-weight: 700;
}
.logo-tagline {
  font-size: .68rem;
  font-style: italic;
  color: var(--gray-text);
  letter-spacing: .01em;
}

.nav-list { display: flex; align-items: center; gap: 26px; }
.nav-list > li > a:not(.btn) {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .16s ease;
}
.nav-list > li > a:not(.btn):hover { border-bottom-color: var(--cyan); }
.nav-cta { margin-left: 2px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 120px 0 108px;
}

/* Motivo gráfico de "red de nodos" derivado del símbolo (Manual §5). */
.hero-net {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(51,193,214,.16) 0, transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(42,80,136,.55) 0, transparent 46%),
    radial-gradient(rgba(255,255,255,.14) 1.2px, transparent 1.2px);
  background-size: auto, auto, 34px 34px;
  opacity: .85;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 660px; }

.hero-formula {
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(255,255,255,.9);
  margin-bottom: 22px;
}
.hero-formula .arrow { color: var(--cyan); margin: 0 4px; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 24px;
  max-width: 22ch;
}

.hero-lead {
  color: #cdd7e8;
  font-size: 1.15rem;
  max-width: 60ch;
  margin-bottom: 36px;
}
.hero-lead strong { color: var(--white); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-badge {
  display: inline-block;
  font-size: .9rem;
  line-height: 1.8;
  color: #cdd7e8;
  border-left: 3px solid var(--cyan);
  padding-left: 14px;
}
.hero-badge strong { color: var(--white); }

/* ---------- Diagrama animado del ciclo (motivo de red de nodos, MI-01 §5) ---------- */

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.cycle { width: 100%; max-width: 380px; height: auto; }

.cycle-ring circle {
  fill: none;
  stroke: rgba(255,255,255,.13);
  stroke-width: 2;
}
.cycle-spokes line { stroke: rgba(255,255,255,.10); stroke-width: 2; }

.cycle-core circle { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.20); stroke-width: 2; }

.cycle-node circle {
  fill: var(--navy-deep);
  stroke: rgba(255,255,255,.28);
  stroke-width: 2;
  transition: stroke .3s ease;
}
.cycle-node .glyph {
  fill: none;
  stroke: rgba(255,255,255,.85);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cycle-node .glyph path[fill-rule], .node-2 .glyph path, .node-3 .glyph path { fill: none; }

/* Trazado secuencial: cada arco se dibuja y se apaga formando un ciclo continuo. */
.cycle-trace .seg {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .18;
  animation: cycleTrace 5.2s linear infinite;
}
.cycle-trace .seg-1 { animation-delay: 0s; }
.cycle-trace .seg-2 { animation-delay: 1.3s; }
.cycle-trace .seg-3 { animation-delay: 2.6s; }
.cycle-trace .seg-4 { animation-delay: 3.9s; }

@keyframes cycleTrace {
  0%          { opacity: .18; stroke-dashoffset: 1; }
  18%, 42%    { opacity: 1;   stroke-dashoffset: 0; }
  58%, 100%   { opacity: .18; stroke-dashoffset: 0; }
}

/* El nodo destino se ilumina justo cuando el arco llega. */
.cycle-node circle { animation: nodePulse 5.2s linear infinite; }
.node-1 circle { animation-delay: 3.9s; }
.node-2 circle { animation-delay: 0s; }
.node-3 circle { animation-delay: 1.3s; }
.node-4 circle { animation-delay: 2.6s; }

@keyframes nodePulse {
  0%, 12%   { stroke: rgba(255,255,255,.28); }
  20%, 42%  { stroke: var(--cyan); }
  58%, 100% { stroke: rgba(255,255,255,.28); }
}

.cycle-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  counter-reset: legend;
}
.cycle-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: #cdd7e8;
}
.cycle-legend .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .cycle-trace .seg { animation: none; opacity: .85; stroke-dashoffset: 0; }
  .cycle-node circle { animation: none; }
}

/* ============================================================
   BARRA DE CIFRAS
   ============================================================ */

.stats { background: var(--navy-light); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.18);
  border-left: 1px solid rgba(255,255,255,.18);
  border-right: 1px solid rgba(255,255,255,.18);
}
.stat {
  background: var(--navy-light);
  padding: 34px 26px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.stat-num-sm { font-size: 1.55rem; letter-spacing: -.01em; }
.stat-label {
  display: block;
  font-size: .84rem;
  color: #c6d2e6;
  margin-top: 6px;
}

/* ============================================================
   BANDAS GENÉRICAS
   ============================================================ */

.band { padding: var(--band-y) 0; }
.band-light { background: var(--gray-light); }
.band-navy { background: var(--navy); color: #cdd7e8; }

/* ---------- Qué hacemos ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}
.cap-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: border-top-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cap-card:hover {
  border-top-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(31,56,100,.10);
}
.cap-num {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gray-border);
  margin-bottom: 12px;
}
.cap-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.cap-card p { font-size: .98rem; margin-bottom: 18px; }
.cap-list { border-top: 1px solid var(--gray-border); padding-top: 16px; }
.cap-list li {
  position: relative;
  padding-left: 18px;
  font-size: .92rem;
  margin-bottom: 7px;
}
.cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------- Sectores ---------- */

/* Columnas explícitas: con auto-fit los 4 sectores quedaban 3 + 1 huérfano. */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sector-card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(31,56,100,.10);
}
.sector-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  margin-bottom: 16px;
}
.sector-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sector-card:hover .sector-icon { border-color: var(--cyan); }
.sector-card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.sector-card p { font-size: .95rem; margin-bottom: 16px; }
.sector-list { border-top: 1px solid var(--gray-border); padding-top: 14px; }
.sector-list li {
  position: relative;
  padding-left: 16px;
  font-size: .89rem;
  margin-bottom: 6px;
}
.sector-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.sector-note {
  margin-top: 34px;
  font-size: .96rem;
  text-align: center;
}
.sector-note a { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--cyan); }

/* ---------- Portafolio ---------- */

.port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}
.port-card {
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.port-card:hover { border-color: var(--navy); box-shadow: 0 8px 22px rgba(31,56,100,.09); }
.port-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}
.port-card-featured { grid-column: span 2; background: var(--gray-light); border-color: var(--navy); }
.port-card-featured h3 { border-bottom-color: var(--cyan); }
.port-desc { font-size: .96rem; margin-bottom: 14px; }
.port-tags {
  font-size: .86rem;
  color: var(--navy);
  line-height: 1.8;
}

/* ---------- Metodología ---------- */

.steps { display: grid; gap: 2px; background: var(--gray-border); border: 1px solid var(--gray-border); border-radius: var(--radius); overflow: hidden; }
.step {
  display: flex;
  gap: 26px;
  background: var(--white);
  padding: 34px 32px;
}
.step-num {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.step-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step-body p { font-size: .98rem; margin-bottom: 10px; }
.step-deliv { font-size: .92rem; color: var(--navy); border-left: 3px solid var(--cyan); padding-left: 14px; margin-bottom: 0 !important; }

/* ---------- Fabricantes: logos principales ---------- */

/* 6 columnas × 2 filas para los 12 logos; con auto-fit quedaba 7 + 5. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.logo-grid li {
  background: var(--white);
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 20px 18px;
  transition: background-color .18s ease;
}
.logo-grid li:hover { background: var(--gray-light); }
.logo-grid img {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
  transition: filter .18s ease, opacity .18s ease;
}
/* Algunas marcas solo tienen glifo cuadrado en el CDN (24×24, 512×512) en vez del
   logotipo horizontal completo; a igual altura se ven diminutas frente a los
   logotipos anchos. script.js detecta la proporción y agrega esta clase para
   compensar el peso visual. Debe ser "height" fijo, no "max-height": un SVG
   intrínsecamente pequeño (24×24) nunca crece con max-height, solo se limita
   hacia abajo el que ya es grande (512×512). */
.logo-grid img.is-square { height: 52px; max-height: 52px; width: auto; }
.logo-grid li:hover img { filter: grayscale(0); opacity: 1; }
/* Respaldo cuando el archivo del logo aún no está publicado en el CDN. */
.logo-grid .brand-fallback {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy);
  opacity: .68;
  text-align: center;
}
.logo-grid li:hover .brand-fallback { opacity: 1; }

/* ---------- Fabricantes (marquesina) ---------- */

.marquee {
  margin-top: 46px;
  overflow: hidden;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 90s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  opacity: .62;
  white-space: nowrap;
  transition: opacity .16s ease;
}
.brand:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Empresa ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text { margin-bottom: 16px; font-size: 1.04rem; color: #cdd7e8; }
.about-text strong { color: var(--white); }

.about-facts {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.about-facts h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 18px; }
.about-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .93rem; }
.about-facts dt { color: #93a5c4; }
.about-facts dd { color: var(--white); font-weight: 700; }
.rst-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .84rem;
  color: #93a5c4;
  font-style: italic;
}

/* ---------- Contacto ---------- */

.contact-inner { max-width: 900px; margin: 0 auto; }
.contact .eyebrow, .contact .section-title, .contact .section-lead { text-align: left; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(51,193,214,.25);
}
.field textarea { resize: vertical; }
/* :user-invalid solo marca en rojo tras la interacción del usuario,
   nunca al cargar la página con los campos vacíos. */
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }

/* Honeypot antispam: fuera de pantalla, nunca display:none
   (algunos bots detectan display:none y lo saltan). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

address.contact-item { font-style: normal; }

.field-check {
  margin-top: 4px;
  background: var(--gray-light);
  border: 1px solid var(--gray-border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px 20px;
  gap: 8px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .86rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--gray-text);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--navy);
  cursor: pointer;
}
.check strong { color: var(--navy); }
.check a { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--cyan); }
.check-note { font-size: .78rem; color: var(--gray-text); padding-left: 30px; font-style: italic; }
.field-check:has(input:user-invalid) { border-color: #c0392b; border-left-color: #c0392b; }

.form-actions { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: .9rem; color: var(--gray-text); }
.form-note.error { color: #c0392b; }
.form-note.ok { color: #1e7a4c; }

.btn-wa { display: inline-flex; align-items: center; gap: 9px; }
.btn-wa svg { width: 19px; height: 19px; fill: #25D366; flex: none; }

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(21,36,60,.40);
  animation: waPulse 3s ease-in-out infinite;
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(21,36,60,.40); }
  50%      { box-shadow: 0 4px 24px rgba(37,211,102,.55), 0 0 0 9px rgba(37,211,102,.12); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

.contact-direct {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--gray-border);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-item {
  background: var(--gray-light);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background-color .16s ease;
}
a.contact-item:hover { background: var(--white); }
.contact-item-label {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-text);
  font-weight: 700;
}
.contact-item-value { font-size: 1rem; font-weight: 700; color: var(--navy); }

/* ============================================================
   ANIMACIÓN DE APARICIÓN (scroll reveal, sutil)
   script.js agrega .reveal a las tarjetas y pasos; el observer
   añade .reveal-in cuando entran al viewport. Con JS desactivado
   o prefers-reduced-motion, todo queda visible desde el inicio.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   PÁGINAS LEGALES (garantías, términos y condiciones)
   ============================================================ */

.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #cdd7e8;
  padding: 72px 0 60px;
}
.legal-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; max-width: 24ch; }
.legal-hero .eyebrow { color: var(--white); }
.legal-meta { font-size: .9rem; color: #93a5c4; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  padding: 72px 0 96px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  border-left: 2px solid var(--gray-border);
  padding-left: 18px;
}
.legal-toc h2 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-toc li { margin-bottom: 9px; }
.legal-toc a {
  font-size: .9rem;
  color: var(--gray-text);
  transition: color .16s ease;
}
.legal-toc a:hover { color: var(--navy); }

.legal-body { max-width: 74ch; }
.legal-body h2 {
  font-size: 1.35rem;
  margin: 46px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
  scroll-margin-top: 100px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 0; }
.legal-body ul li, .legal-body ol li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal-body ol { counter-reset: legalol; }
.legal-body ol li { counter-increment: legalol; }
.legal-body ol li::before {
  content: counter(legalol) ".";
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
}
.legal-body strong { color: var(--navy); }
.legal-body a:not(.btn) { color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--cyan); }

.legal-callout {
  background: var(--gray-light);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: .95rem;
}
.legal-callout p:last-child { margin-bottom: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: .92rem;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--gray-border);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.legal-table tbody tr:nth-child(even) { background: var(--gray-light); }
.legal-table-wrap { overflow-x: auto; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--navy-deep); color: #93a5c4; padding: 68px 0 0; font-size: .92rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 44px;
  padding-bottom: 48px;
}
.footer-brand .logo-icon { color: var(--white); margin-bottom: 16px; }
.footer-name { color: var(--white); font-weight: 700; font-size: 1.15rem; }
.footer-tagline { font-style: italic; margin-bottom: 12px; }
.footer-position { font-size: .86rem; line-height: 1.7; }

/* Etiquetas de columna del footer: son rótulos de navegación, no encabezados
   de contenido — por eso van en <p class="footer-col-title">, no en <h4>. */
.footer-col .footer-col-title {
  color: var(--white);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.site-footer address { font-style: normal; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { transition: color .16s ease; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: .84rem;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  .hero-visual { order: 2; }
}

@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .port-card-featured { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  :root { --band-y: 72px; }

  .nav-toggle { display: flex; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
    box-shadow: 0 12px 24px rgba(31,56,100,.12);
    padding: 12px 28px 22px;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a:not(.btn) {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--gray-light);
  }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { display: block; text-align: center; }

  .hero { padding: 78px 0 68px; }
  .hero-formula { font-size: .74rem; letter-spacing: .14em; }
  .contact-form { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .logo-tagline { display: none; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 68px; }
  .legal-toc { position: static; }
  .sector-grid { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
  .form-actions .btn { width: 100%; justify-content: center; text-align: center; }
}
