/* ============================================================================
   AGC Ingeniería Biomédica · sistema de diseño v3 «Casa de tecnología médica»
   ----------------------------------------------------------------------------
   Corporativo internacional, luminoso y fotográfico. La firma visual sale del
   isotipo real (3 brazos chevron: naranja + azul + negro): marcos con esquinas
   chevron, tri-color disciplinado, bandas navy intencionales.
   Tipografía: Bricolage Grotesque (display) + Schibsted Grotesk (cuerpo).
   Self-contained · deploy por upload a DonWeb.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca (del isotipo real) */
  --orange: #E8551F;
  --orange-deep: #C74312;
  --blue: #0E6CB8;
  --blue-deep: #084A82;
  --navy: #0A2A44;
  --navy-2: #0D3557;

  /* Neutrales clínicos (sesgo frío elegido, no gris por default) */
  --ink: #10222F;
  --ink-2: #3C5062;
  --ink-3: #64798B;
  --paper: #FFFFFF;
  --cloud: #F2F6FA;
  --cloud-2: #E8EFF6;
  --line: #DCE6EF;
  --line-navy: rgba(255, 255, 255, 0.14);

  /* Tipografía */
  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --f-body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Ritmo */
  --sec-pad: clamp(60px, 7.5vw, 104px);
  --wrap: 1180px;
  --r-card: 14px;
  --r-btn: 10px;

  --shadow-1: 0 1px 2px rgba(10, 42, 68, 0.06), 0 8px 24px rgba(10, 42, 68, 0.08);
  --shadow-2: 0 2px 4px rgba(10, 42, 68, 0.08), 0 18px 44px rgba(10, 42, 68, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset breve ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 0.5em; text-wrap: balance; color: var(--ink); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

::selection { background: rgba(232, 85, 31, 0.22); }

/* ============================================================================
   Topbar (utilidad · teléfono + mail)
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, 0.85); display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .tb-group { display: flex; gap: 22px; align-items: center; }
.topbar .tb-loc { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 13px; height: 13px; flex: none; }
@media (max-width: 720px) { .topbar .tb-mail { display: none; } .topbar .tb-loc { display: none; } }

/* ============================================================================
   Header + navegación
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(10, 42, 68, 0.07); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand .b-name { font-family: var(--f-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -0.005em; line-height: 1; }
.brand .b-sub { display: block; font-family: var(--f-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

/* Nav con «pills»: hover = fondo suave · activo = acento azul */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  padding: 9px 15px; border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--cloud); }
.nav a:not(.btn).active { color: var(--blue); background: var(--cloud-2); }
.nav .btn { margin-left: 10px; color: #fff; }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }

@media (max-width: 900px) {
  /* El backdrop-filter crea un containing block para position:fixed y rompería
     el overlay del menú · en mobile el header va sólido. */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 70;
    flex-direction: column; justify-content: center; align-items: center; gap: 8px;
    background: var(--navy);
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav a:not(.btn) { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; color: rgba(255,255,255,0.85); padding: 12px; background: transparent; border-radius: 0; }
  .nav a.active, .nav a:not(.btn):hover { color: #fff; background: transparent; }
  .nav .btn { margin: 18px 0 0; }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: relative; z-index: 80; border-color: rgba(255,255,255,0.3); background: transparent; }
  body.nav-open .nav-toggle span { background: #fff; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-btn); border: 0;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1;
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 10px rgba(232, 85, 31, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn:hover { background: var(--orange-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(232, 85, 31, 0.34); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid rgba(16, 34, 47, 0.28); box-shadow: none;
}
.btn--ghost:hover { background: var(--cloud); color: var(--ink); border-color: rgba(16, 34, 47, 0.45); box-shadow: none; transform: translateY(-2px); }

.btn--light { background: #fff; color: var(--navy); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); }
.btn--light:hover { background: var(--cloud); color: var(--navy); }

.btn--wa { background: #1FAF57; box-shadow: 0 2px 10px rgba(31, 175, 87, 0.3); }
.btn--wa:hover { background: #178A44; box-shadow: 0 8px 22px rgba(31, 175, 87, 0.35); }

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

/* Link con flecha */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.22s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================================
   Secciones · cabezales
   ========================================================================== */
.band { padding: var(--sec-pad) 0; }
.band--cloud { background: var(--cloud); }
.band--navy { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.band--navy h2, .band--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 8px; flex: none;
  background: var(--orange);
  clip-path: polygon(0 0, 55% 0, 100% 100%, 45% 100%);
}
.band--navy .eyebrow { color: #7FB8E6; }

.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -0.01em; }
.sec-head .lede { font-size: 1.15rem; color: var(--ink-2); margin: 14px 0 0; }
.band--navy .sec-head .lede { color: rgba(255, 255, 255, 0.72); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ============================================================================
   Hero del home · tipográfico + monitor de paciente en código (sin foto)
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(760px 520px at 84% 6%, rgba(14, 108, 184, 0.10), transparent 62%),
    radial-gradient(620px 460px at 96% 30%, rgba(232, 85, 31, 0.06), transparent 64%),
    linear-gradient(180deg, var(--cloud) 0%, var(--paper) 92%);
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 5.5vw, 76px);
  align-items: center; padding-top: clamp(52px, 6.5vw, 88px); padding-bottom: clamp(60px, 7.5vw, 104px);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.018em; line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--orange); }
.hero .lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

/* Chip de reseñas reales */
.rating { display: inline-flex; align-items: center; gap: 12px; }
.rating .stars { color: var(--orange); letter-spacing: 2px; font-size: 1rem; }
.rating .r-num { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.rating .r-meta { font-size: 0.85rem; color: var(--ink-3); line-height: 1.35; }

/* Esquinas chevron para figuras (se usa en splits con foto) */
.fig-frame { position: relative; }
.fig-frame img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--shadow-2); }
.fig-frame::before, .fig-frame::after { content: ''; position: absolute; width: 46px; height: 46px; z-index: 3; }
.fig-frame::before { top: -13px; left: -13px; border-top: 5px solid var(--orange); border-left: 5px solid var(--orange); border-top-left-radius: 4px; }
.fig-frame::after { bottom: -13px; right: -13px; border-bottom: 5px solid var(--blue); border-right: 5px solid var(--blue); border-bottom-right-radius: 4px; }

/* Chevrones decorativos · SOLO en bandas navy (en claro se leen como manchas) */
.chev { position: absolute; clip-path: polygon(0 100%, 0 34%, 34% 0, 100% 0, 100% 26%, 45% 26%, 26% 45%, 26% 100%); pointer-events: none; }

/* ---------- Isotipo dimensional (pieza central del hero, en código) ---------- */
.hero-vis { position: relative; display: flex; justify-content: center; }
.brandstage {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  perspective: 1100px;
}
/* Aura ambiental tri-color (luz, no orbe: ancha y muy tenue) */
.bs-aura {
  position: absolute; inset: 6%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(46% 46% at 38% 34%, rgba(232, 85, 31, 0.18), transparent 70%),
    radial-gradient(52% 52% at 66% 62%, rgba(14, 108, 184, 0.20), transparent 72%);
  filter: blur(26px);
}
/* Logo AGC vivo (SVG · morph elegante: los brazos se reacomodan fuera de fase +
   giro lento) · sin fondo, sin aros ni puntos */
.bs-spin {
  position: relative; z-index: 2; display: grid; place-items: center;
  animation: bsTurn 52s linear infinite;
}
.bs-logo {
  width: clamp(190px, 25vw, 252px); height: auto; overflow: visible;
  filter: drop-shadow(0 20px 34px rgba(10, 42, 68, 0.20));
  animation: bsAssemble 1.3s var(--ease) both;
}
.bs-arm {
  transform-box: view-box; transform-origin: 60px 60px;
  animation: bsChurn 7s ease-in-out infinite;
}
.bs-arm2 { animation-delay: -2.33s; }
.bs-arm3 { animation-delay: -4.66s; }
@keyframes bsTurn { to { transform: rotate(360deg); } }
@keyframes bsAssemble { 0% { opacity: 0; transform: rotate(-140deg) scale(0.55); } 100% { opacity: 1; transform: none; } }
@keyframes bsChurn {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(12deg) scale(0.93); }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .brandstage { max-width: 360px; margin: 6px auto 0; }
}

/* ============================================================================
   Marquee de marcas (logos reales del catálogo)
   ========================================================================== */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 40px 0 44px; }
.brands .b-label {
  text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 40px;
}
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(60px, 7.5vw, 110px);
  width: max-content; padding: 26px clamp(60px, 7.5vw, 110px) 26px 0;
  animation: marquee 55s linear infinite; /* un poco más lento (pedido user · era 40s) */
}
.marquee:hover .marquee-track { animation-play-state: paused; }
/* Los logos son PNG opacos (fondo blanco), así que NO llevan sombra (encajonaría el
   rectángulo). El hover es limpio: pasan a color y se agrandan, con aire de sobra
   arriba/abajo (padding del track) para que no se recorten. */
.marquee-track img {
  height: 34px; width: auto; flex: none;
  filter: grayscale(1) opacity(0.5);
  transform-origin: center;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.marquee-track img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.4);
  position: relative; z-index: 3;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================================
   Split (texto + figura) · se usa en Sobre / Empresa / Servicios
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split .fig-frame img { border-radius: var(--r-card); box-shadow: var(--shadow-2); width: 100%; }
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.split .lede { color: var(--ink-2); font-size: 1.08rem; }
.split--rev .s-fig { order: 2; }
@media (max-width: 900px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .s-fig { order: 0; }
  .split .s-fig { max-width: 560px; }
}

/* Checklist con tilde de marca */
.checks { display: grid; gap: 12px; margin: 22px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.checks li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 4px;
  background: var(--blue);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 16%, 85% 2%, 40% 70%);
}

/* Sobre AGC (v3.9) · grilla 2×2 de pilares con check + chip de certificación */
.about-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 26px 0 30px; padding: 0; }
.about-grid li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.42; }
.ag-ic { flex: none; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px; position: relative; background: linear-gradient(150deg, var(--orange), var(--blue)); }
.ag-ic::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 4.5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translate(-50%, -62%) rotate(-45deg);
}
.fig-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 11px; background: #fff; box-shadow: var(--shadow-2);
  font-size: 0.8rem; font-weight: 700; color: var(--ink);
}
.fig-badge svg { width: 15px; height: 15px; color: #1AA251; }
@media (max-width: 620px) { .about-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Cards de servicios (sin foto · numeral fantasma + pictograma de marca)
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.svc-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-1);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--cloud-2); }
.svc-card .sc-ghost {
  position: absolute; right: 14px; top: -6px;
  font-family: var(--f-display); font-weight: 800; font-size: 5.4rem; line-height: 1;
  color: var(--cloud); user-select: none; pointer-events: none;
  transition: color 0.3s var(--ease);
}
.svc-card:hover .sc-ghost { color: var(--cloud-2); }
.svc-card .sc-mark {
  width: 30px; height: 10px; margin-bottom: 20px;
  clip-path: polygon(0 0, 55% 0, 100% 100%, 45% 100%);
  background: var(--orange);
}
.svc-card:nth-child(2) .sc-mark { background: var(--blue); }
.svc-card:nth-child(3) .sc-mark { background: var(--ink); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 10px; position: relative; }
.svc-card p { color: var(--ink-2); font-size: 0.98rem; flex: 1; position: relative; }
.svc-card .arrow-link { margin-top: 16px; position: relative; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Carrousel de servicios (index) ---------- */
/* Servicios · CAMINO (journey) · el progreso AVANZA por las 3 etapas del ciclo */
/* Servicios · avance por SCROLL (sticky · v3.9) · al scrollear se ve la etapa 1,
   se sigue → 2, se sigue → 3, y recién ahí pasa a la sección siguiente. El
   contenedor es alto; el contenido queda pegado (sticky) y el scroll dentro de
   ese alto define la etapa activa (JS). Fallback sin JS / reduced-motion: flujo
   normal con navegación por clic. */
/* .svc-section SIN position:relative a propósito · así #jrScroll.offsetTop es
   absoluto (lo usa el click-a-etapa para scrollear) · el sticky no lo necesita. */
.jr-scroll { position: relative; }
.jr-sticky { padding: var(--sec-pad) 0; }
.jr-scroll.is-scroll { height: 280vh; }
.jr-scroll.is-scroll .jr-sticky {
  position: sticky; top: 0; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(50px, 8vh, 90px) 0;
}

.journey { max-width: 860px; margin: 0 auto; }

/* el camino: 3 nodos sobre una línea con un progreso que se llena al avanzar */
.jr-path { position: relative; display: flex; margin-bottom: clamp(28px, 4vw, 40px); }
.jr-rail { position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 3px; background: var(--cloud-2); border-radius: 3px; overflow: hidden; }
.jr-rail-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--orange), var(--blue)); transition: width 0.55s var(--ease); }
.jr-node { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 11px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.jr-dot { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color 0.3s var(--ease), background 0.3s, box-shadow 0.3s, transform 0.3s var(--ease); }
.jr-dot-n { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; color: var(--ink-3); transition: color 0.3s; }
.jr-cap { font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; color: var(--ink-3); transition: color 0.3s; }
.jr-node.is-done .jr-dot { border-color: transparent; background: linear-gradient(150deg, var(--orange), var(--blue)); box-shadow: 0 8px 20px rgba(14, 108, 184, 0.28); }
.jr-node.is-done .jr-dot-n { color: #fff; }
.jr-node.is-active .jr-dot { transform: scale(1.09); }
.jr-node.is-done .jr-cap, .jr-node.is-active .jr-cap { color: var(--ink); }
.jr-node:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 10px; }

/* detalle de la etapa · las 3 cards se apilan en la misma celda y hacen cross-fade */
.jr-stage { display: grid; }
.jr-card {
  grid-area: 1 / 1; display: flex; align-items: center; gap: clamp(16px, 3vw, 34px);
  padding: clamp(26px, 3.6vw, 42px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.jr-card.is-active { opacity: 1; visibility: visible; transform: none; }
.jr-num {
  flex: none; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.2rem, 8vw, 5.6rem);
  line-height: 0.9; color: transparent; background: linear-gradient(150deg, var(--orange), var(--blue));
  -webkit-background-clip: text; background-clip: text;
}
.jr-body h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin: 0 0 8px; }
.jr-body p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; margin: 0 0 12px; max-width: 46em; }

@media (max-width: 620px) {
  .jr-cap { font-size: 0.8rem; }
  .jr-dot { width: 46px; height: 46px; }
  .jr-rail { top: 23px; }
  .jr-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .jr-num { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .jr-rail-fill, .jr-card, .jr-dot { transition: none; } }

/* ============================================================================
   Especialidades (tiles interactivos → WhatsApp)
   ========================================================================== */
.esp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.esp-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  width: 100%; min-height: 168px; padding: 22px 22px 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  text-align: left; color: var(--ink); cursor: pointer;
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s;
}
.esp-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--blue); }
/* Chip del ícono (line-art azul · se vuelve azul con ícono blanco al hover) */
.esp-tile .et-ic {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px;
  background: var(--cloud); transition: background 0.26s var(--ease);
}
.esp-tile .et-ic img { width: 30px; height: 30px; transition: filter 0.26s var(--ease); }
.esp-tile:hover .et-ic { background: var(--blue); }
.esp-tile:hover .et-ic img { filter: brightness(0) invert(1); }
.esp-tile .et-name { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; line-height: 1.22; margin-top: auto; }
/* «Consultar» EN FLUJO (reserva su espacio · no se cruza con el nombre) */
.esp-tile .et-go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 700; color: var(--blue);
  opacity: 0; transform: translateY(3px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.esp-tile .et-go svg { width: 14px; height: 14px; }
.esp-tile:hover .et-go { opacity: 1; transform: none; }

/* Tile CTA (naranja) */
.esp-tile--cta { background: var(--orange); border-color: var(--orange); justify-content: center; gap: 6px; }
.esp-tile--cta:hover { background: var(--orange-deep); border-color: var(--orange-deep); transform: translateY(-6px); }
.esp-tile--cta .et-name { color: #fff; margin-top: 0; }
.esp-tile--cta .et-sub { font-size: 0.86rem; color: rgba(255, 255, 255, 0.88); line-height: 1.3; }
.esp-tile--cta .et-go { color: #fff; opacity: 1; transform: none; margin-top: 6px; }

@media (max-width: 1000px) { .esp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .esp-grid { grid-template-columns: repeat(2, 1fr); } .esp-tile { min-height: 150px; } }

/* ============================================================================
   Banda de números (navy · count-up)
   ========================================================================== */
/* Logo AGC de fondo · movido de la vieja sección Números a Testimonios (v3.9) */
.watermark {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 460px; max-width: 62%; opacity: 0.05; pointer-events: none; z-index: 0;
}
.testi-band > .wrap { position: relative; z-index: 1; }

/* ============================================================================
   Testimonios (reseñas reales de Google)
   ========================================================================== */
/* Testimonios · acordeón (un solo abierto) sobre blanco */
.testi-band { background: var(--paper); position: relative; overflow: hidden; }
.testi-rating {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 22px;
  padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow-1);
}
.testi-rating .tr-score { font-family: var(--f-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.testi-rating .tr-stars { color: var(--orange); letter-spacing: 2px; }
.testi-rating .tr-meta { font-size: 0.85rem; color: var(--ink-3); }

.testi-acc { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.tacc {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tacc:hover { border-color: var(--cloud-2); }
.tacc.is-open { box-shadow: var(--shadow-2); border-color: transparent; }
/* barra de acento con los colores del isotipo en el item abierto */
.tacc.is-open::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--orange), var(--blue));
}
.tacc-head {
  width: 100%; display: flex; align-items: center; gap: 15px; text-align: left;
  padding: 19px clamp(18px, 2.4vw, 26px); background: none; border: 0;
  cursor: pointer; font-family: inherit; color: inherit;
}
.tacc-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: var(--r-card); }
.tacc .t-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 0.98rem; color: #fff;
}
.tacc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tacc .t-name { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.25; }
.tacc .t-role { font-size: 0.8rem; color: var(--ink-3); }
.tacc .t-stars { color: var(--orange); letter-spacing: 2px; font-size: 0.9rem; flex: none; }
/* chevron indicador (rota 180° al abrir) */
.tacc-ic { position: relative; width: 14px; height: 14px; flex: none; margin-left: 2px; transition: transform 0.3s var(--ease); }
.tacc-ic::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-2px) rotate(45deg);
}
.tacc.is-open .tacc-ic { transform: rotate(180deg); }
/* panel: animación de alto por grid-template-rows (0fr → 1fr) */
.tacc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.tacc.is-open .tacc-panel { grid-template-rows: 1fr; }
.tacc-inner { overflow: hidden; }
.tacc blockquote {
  position: relative; margin: 0;
  padding: 2px clamp(18px, 2.4vw, 26px) 24px calc(clamp(18px, 2.4vw, 26px) + 58px);
  font-size: 1.02rem; line-height: 1.62; color: var(--ink-2);
}
.tacc blockquote::before {
  content: "\201C"; position: absolute; left: clamp(18px, 2.4vw, 26px); top: -10px;
  font-family: var(--f-display); font-size: 2.7rem; line-height: 1; color: var(--cloud-2);
}
@media (max-width: 560px) {
  .tacc-head { gap: 12px; }
  .tacc .t-stars { display: none; }
  .tacc blockquote { padding-left: clamp(18px, 2.4vw, 26px); }
  .tacc blockquote::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tacc-panel, .tacc-ic { transition: none; } }

/* ============================================================================
   Sostenibilidad (banda con foto + overlay navy)
   ========================================================================== */
.sust { position: relative; overflow: hidden; background: var(--navy); }
.sust .sust-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
  opacity: 0.14; filter: saturate(0.5);
}
.sust .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.sust h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sust p { color: rgba(255, 255, 255, 0.75); max-width: 44em; margin: 0; }
.sust .sust-cta { display: flex; justify-content: flex-end; }
@media (max-width: 820px) {
  .sust .wrap { grid-template-columns: 1fr; }
  .sust .sust-cta { justify-content: flex-start; }
}

/* Sostenibilidad · home (v3.10) · rediseño sobre blanco + panel de 3 dimensiones
   (Social/Ambiental/Económico · del propio texto) · reemplaza el bloque básico
   con la foto repetida. Panel con gradiente verde MÍNIMO (temático · sostenible). */
.sostenib { background: var(--paper); }
.sostenib-wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.sostenib-lead h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.sostenib-lead p { color: var(--ink-2); font-size: 1.08rem; line-height: 1.62; margin: 16px 0 28px; max-width: 46em; }
.sostenib-pillars {
  list-style: none; margin: 0; padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 2px;
  background: linear-gradient(160deg, #EEF7F0 0%, #F1F6FB 100%);
  border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1);
}
.sostenib-pillars li { display: flex; gap: 15px; align-items: center; padding: 15px 6px; }
.sostenib-pillars li + li { border-top: 1px solid rgba(10, 42, 68, 0.08); }
.sp-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: #159A4B; box-shadow: var(--shadow-1);
}
.sp-ic svg { width: 22px; height: 22px; }
.sp-t { display: flex; flex-direction: column; gap: 2px; }
.sp-t b { font-family: var(--f-display); font-weight: 700; font-size: 1.04rem; color: var(--ink); line-height: 1.15; }
.sp-t span { font-size: 0.87rem; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 820px) { .sostenib-wrap { grid-template-columns: 1fr; } }

/* ============================================================================
   CTA final
   ========================================================================== */
.cta-band { background: var(--cloud); position: relative; overflow: hidden; }
.cta-band .chev-a { width: 160px; height: 160px; background: rgba(232, 85, 31, 0.09); top: -40px; right: 6%; transform: rotate(180deg); }
.cta-band .chev-b { width: 90px; height: 90px; background: rgba(14, 108, 184, 0.1); bottom: -22px; right: 16%; }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { color: var(--ink); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 8px; }
.cta-band p { color: var(--ink-2); margin: 0; max-width: 36em; }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================================
   Page hero (subpáginas · Servicios / Empresa / Contacto / legales)
   ========================================================================== */
.page-hero { position: relative; background: linear-gradient(115deg, var(--navy) 30%, var(--navy-2) 100%); overflow: hidden; }
.page-hero .wrap { position: relative; padding-top: clamp(52px, 7vw, 84px); padding-bottom: clamp(52px, 7vw, 84px); }
.page-hero .crumbs { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55); margin-bottom: 18px; }
.page-hero .crumbs a { color: rgba(255, 255, 255, 0.75); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs .sep { color: var(--orange); font-weight: 800; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; max-width: 15em; }
.page-hero .lede { color: rgba(255, 255, 255, 0.74); font-size: 1.12rem; max-width: 40em; margin: 0; }
.page-hero .chev-a { width: 140px; height: 140px; background: rgba(232, 85, 31, 0.13); top: -30px; right: 5%; transform: rotate(180deg); }
.page-hero .chev-b { width: 80px; height: 80px; background: rgba(127, 184, 230, 0.14); bottom: -18px; right: 18%; }

/* ============================================================================
   Servicios en detalle (página servicios)
   ========================================================================== */
.svc-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; padding: clamp(44px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail .sd-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.svc-detail .sd-num {
  font-family: var(--f-display); font-weight: 800; font-size: 0.9rem;
  color: var(--orange); letter-spacing: 0.1em;
}
.svc-detail .sd-rule { height: 2px; width: 44px; background: var(--orange); border-radius: 2px; }
.svc-detail h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-detail p { color: var(--ink-2); }
.svc-detail .s-fig .fig-frame img { border-radius: var(--r-card); box-shadow: var(--shadow-2); width: 100%; }
.svc-detail--rev .s-fig { order: 2; }
@media (max-width: 900px) {
  .svc-detail, .svc-detail--rev { grid-template-columns: 1fr; }
  .svc-detail--rev .s-fig { order: 0; }
  .svc-detail .s-fig { max-width: 540px; }
}

/* Paneles a medida por servicio (reemplazan fotos de baja resolución) */
.panel {
  background: var(--cloud); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
}
.panel .p-head {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.p-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.p-chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-weight: 600; font-size: 0.88rem; color: var(--ink-2);
}
.p-chip--plus { background: var(--navy); color: #fff; border-color: var(--navy); }

.p-steps { display: grid; }
.p-step { position: relative; display: flex; gap: 15px; padding: 13px 0; align-items: flex-start; }
.p-step + .p-step { border-top: 1px dashed var(--line); }
.p-step .ps-dot {
  flex: none; width: 32px; height: 32px; border-radius: 50%; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1.5px solid var(--line);
  font-family: var(--f-display); font-weight: 800; font-size: 0.82rem; color: var(--blue);
}
.p-step .ps-t { font-weight: 700; color: var(--ink); line-height: 1.35; }
.p-step .ps-s { font-size: 0.88rem; color: var(--ink-3); }

.p-status { display: grid; gap: 10px; }
.status-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-weight: 600; color: var(--ink-2); font-size: 0.95rem;
}
.status-pill {
  flex: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.status-pill.ok { background: #E7F7EE; color: #178A44; }
.status-pill.fast { background: #FDEEE6; color: var(--orange-deep); }
.status-pill.info { background: #E8F1FA; color: var(--blue-deep); }

/* Proceso (4 pasos · secuencia real de trabajo) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-navy); border-radius: var(--r-card);
  padding: 26px 24px 28px;
}
.step .st-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--orange); color: #fff;
  font-family: var(--f-display); font-weight: 800; font-size: 1.1rem;
}
.step:nth-child(2) .st-num { background: var(--blue); }
.step:nth-child(3) .st-num { background: #fff; color: var(--navy); }
.step h3 { color: #fff; font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, 0.66); font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================================
   Empresa · valores + misión
   ========================================================================== */
.mision {
  position: relative;
  background: var(--cloud); border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 56px) clamp(28px, 5vw, 64px);
  border-left: 5px solid var(--orange);
}
.mision p {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.45; color: var(--ink); margin: 0; text-wrap: balance;
}
.mision .m-label { font-family: var(--f-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 14px; }

.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.valor {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; font-weight: 600; color: var(--ink-2); font-size: 0.98rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.valor:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.valor::before {
  content: ''; flex: none; width: 14px; height: 14px;
  clip-path: polygon(0 100%, 0 34%, 34% 0, 100% 0, 100% 26%, 45% 26%, 26% 45%, 26% 100%);
  background: var(--orange);
}
.valor:nth-child(3n+2)::before { background: var(--blue); }
.valor:nth-child(3n)::before { background: var(--ink); }
@media (max-width: 900px) { .valores { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .valores { grid-template-columns: 1fr; } }

/* Credencial (DNV) */
.cred {
  display: flex; gap: 22px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 30px; box-shadow: var(--shadow-1);
}
.cred img { width: 84px; flex: none; }
.cred .c-t { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.cred p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }

/* ============================================================================
   Contacto
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.c-cards { display: grid; gap: 14px; }
.c-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px 22px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.c-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); }
.c-card .ci {
  flex: none; width: 44px; height: 44px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cloud); color: var(--blue);
}
.c-card .ci svg { width: 20px; height: 20px; }
.c-card .cc-l { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.c-card .cc-v { font-weight: 600; color: var(--ink); line-height: 1.45; }
.c-card .cc-v a { color: var(--ink); }
.c-card .cc-v a:hover { color: var(--blue); }
.c-card .cc-s { font-size: 0.84rem; color: var(--ink-3); }

/* Formulario */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-1);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .f-sub { color: var(--ink-3); font-size: 0.95rem; margin-bottom: 26px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .f-row { grid-template-columns: 1fr; } }
.f-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.f-field label { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.f-field input, .f-field textarea, .f-field select {
  font: inherit; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.f-field input:focus, .f-field textarea:focus, .f-field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14, 108, 184, 0.12);
}
.f-field textarea { resize: vertical; min-height: 120px; }
.f-hint { font-size: 0.84rem; color: var(--ink-3); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.f-hint svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: #1FAF57; }
.f-msg { display: none; margin-top: 14px; font-weight: 600; color: #178A44; }
.f-msg.ok { display: block; }

.map-frame { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-1); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ============================================================================
   Legales
   ========================================================================== */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.98rem; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; display: block; }
.legal .l-updated { font-size: 0.85rem; color: var(--ink-3); }
.legal-note {
  margin-top: 2.4em;
  background: var(--cloud); border-left: 4px solid var(--orange); border-radius: 10px;
  padding: 16px 20px; font-size: 0.9rem; color: var(--ink-2);
}

/* ============================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer .f-main {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(52px, 6vw, 76px) 0 44px;
}
.footer .f-brand img { width: 150px; margin-bottom: 18px; }
.footer .f-brand p { max-width: 30em; font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--f-body); font-weight: 700; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, 0.72); }
.footer a:hover { color: #fff; }
.footer .f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer .f-contact svg { width: 15px; height: 15px; flex: none; margin-top: 5px; color: var(--orange); }
.f-social { display: flex; gap: 10px; margin-top: 20px; }
.f-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08); color: #fff;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.f-social a:hover { background: var(--orange); transform: translateY(-2px); }
.f-social svg { width: 17px; height: 17px; }
.footer .f-bottom {
  border-top: 1px solid var(--line-navy);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 0.84rem; color: rgba(255, 255, 255, 0.5);
}
.footer .f-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer .f-bottom a:hover { color: #fff; }
.footer .f-bottom .f-legal { display: flex; gap: 20px; }
/* Contacto compacto en el footer de las páginas legales */
.footer .f-mini {
  display: flex; flex-wrap: wrap; gap: 8px 26px; padding-bottom: 20px;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.68);
}
.footer .f-mini a { color: rgba(255, 255, 255, 0.68); }
.footer .f-mini a:hover { color: #fff; }
@media (max-width: 900px) { .footer .f-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer .f-main { grid-template-columns: 1fr; } }

/* ============================================================================
   Vera · asistente / chatbot FAQ (deriva a WhatsApp) · inyectado por main.js
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Launcher (burbuja con la cara de Vera) ---- */
.va-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: linear-gradient(150deg, #EAF1F9, #FFFFFF);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(10, 42, 68, 0.26);
  cursor: pointer; overflow: visible;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.va-launcher:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px rgba(10, 42, 68, 0.32); }
.va-launcher img {
  width: 100%; height: 100%; border-radius: 50%; display: block;
  object-fit: cover; object-position: 50% 12%;
}
.va-launcher::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(14, 108, 184, 0.4); opacity: 0; pointer-events: none;
  animation: vaPulse 2.6s ease-out infinite;
}
@keyframes vaPulse { 0% { opacity: 0.7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.32); } }
.va-online {
  position: absolute; right: 2px; bottom: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: #1FAF57; border: 2.5px solid #fff;
}
/* Globo de saludo (una vez) */
.va-greet {
  position: fixed; right: 96px; bottom: 34px; z-index: 60;
  max-width: 210px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px 14px 4px 14px;
  padding: 11px 34px 11px 14px; font-size: 0.9rem; line-height: 1.4;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(8px) scale(0.96); transform-origin: bottom right;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.va-greet.show { opacity: 1; transform: none; pointer-events: auto; }
.va-greet b { font-weight: 700; }
.va-greet-x {
  position: absolute; top: 5px; right: 6px; width: 22px; height: 22px;
  border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1rem; line-height: 1;
  border-radius: 6px;
}
.va-greet-x:hover { background: var(--cloud); color: var(--ink); }

/* ---- Panel del chat ---- */
.va-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 61;
  width: min(376px, calc(100vw - 28px));
  height: min(596px, calc(100dvh - 36px));
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 30px 74px rgba(10, 42, 68, 0.34);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
}
.va-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.va-head {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff;
}
.va-head .va-ava {
  width: 42px; height: 42px; border-radius: 50%; flex: none; overflow: hidden;
  background: linear-gradient(150deg, #EAF1F9, #fff); border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.va-head .va-ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.va-head .va-id .n { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.va-head .va-id .s { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
.va-head .va-id .s::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4CE08A; }
.va-close {
  margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background 0.2s;
}
.va-close:hover { background: rgba(255, 255, 255, 0.24); }
.va-close svg { width: 17px; height: 17px; }

.va-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px; background: var(--cloud);
  display: flex; flex-direction: column; gap: 11px;
}
.va-msg { display: flex; gap: 8px; max-width: 88%; align-items: flex-end; }
.va-msg .va-mava { width: 28px; height: 28px; border-radius: 50%; flex: none; overflow: hidden; background: linear-gradient(150deg, #EAF1F9, #fff); border: 1px solid var(--line); }
.va-msg .va-mava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.va-bubble {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 4px 15px 15px 15px; padding: 10px 13px;
  font-size: 0.92rem; line-height: 1.5; box-shadow: var(--shadow-1);
}
.va-bubble a { color: var(--blue); font-weight: 600; }
.va-msg.user { align-self: flex-end; }
.va-msg.user .va-bubble { background: var(--blue); color: #fff; border-color: transparent; border-radius: 15px 4px 15px 15px; }
.va-anim { animation: vaIn 0.32s var(--ease) both; }
@keyframes vaIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.va-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.va-chip {
  background: #fff; border: 1px solid var(--line); color: var(--blue);
  border-radius: 999px; padding: 8px 13px; font-size: 0.84rem; font-weight: 600;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s;
}
.va-chip:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-1px); }

.va-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.va-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; animation: vaDot 1.1s infinite ease-in-out; }
.va-typing span:nth-child(2) { animation-delay: 0.18s; }
.va-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes vaDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* label sobre los chips · ordena la lista de temas */
.va-chips-lbl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 -3px 2px; }

.va-foot { padding: 11px 12px; border-top: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 9px; }
/* input de texto = interacción PRIMARIA (se siente chat, no muro de botones) */
.va-input { display: flex; align-items: center; gap: 8px; }
.va-input input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px; font-family: var(--f-body); font-size: 0.92rem; color: var(--ink);
  background: var(--cloud); transition: border-color 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
}
.va-input input::placeholder { color: var(--ink-3); }
.va-input input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(14, 108, 184, 0.13); }
.va-send {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; display: grid; place-items: center;
  transition: background 0.2s var(--ease), transform 0.15s;
}
.va-send:hover { background: var(--blue-deep); transform: translateY(-1px); }
.va-send svg { width: 18px; height: 18px; }
/* WhatsApp = acción SECUNDARIA (derivar a una persona) */
.va-wa {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 9px; border-radius: var(--r-btn); border: 1px solid var(--line); cursor: pointer;
  background: #fff; color: #1AA251; font-family: var(--f-body); font-weight: 700; font-size: 0.85rem;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.va-wa:hover { background: #E9F7EF; border-color: #1FAF57; }
.va-wa svg { width: 17px; height: 17px; }

@media (max-width: 480px) {
  .va-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); height: calc(100dvh - 20px); }
  .va-launcher { right: 16px; bottom: 16px; }
  .va-greet { right: 88px; bottom: 26px; }
}

/* ============================================================================
   Reveals (scroll)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }

/* Entrada del hero (page-load) */
.hero-in { opacity: 0; transform: translateY(26px); animation: heroIn 0.85s var(--ease) forwards; }
.hero-in[data-d="1"] { animation-delay: 0.12s; }
.hero-in[data-d="2"] { animation-delay: 0.24s; }
.hero-in[data-d="3"] { animation-delay: 0.36s; }
.hero-in[data-d="4"] { animation-delay: 0.5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-in { opacity: 1; transform: none; animation: none; transition: none; }
  .marquee-track { animation: none; }
  .chev { animation: none; }
  .bs-spin, .bs-logo, .bs-arm, .va-launcher::before, .va-typing span { animation: none; }
  .bs-logo, .bs-arm { opacity: 1; transform: none; }
}

/* ============================================================================
   Alternancia de tonos (una y una) + color de marca (naranja + azul + navy)
   El home alterna claro/oscuro: hero(claro) · sobre(OSCURO) · servicios(claro) ·
   especialidades(OSCURO) · números(claro) · testimonios(OSCURO) · sostenib(claro) ·
   CTA(OSCURO, cierra hacia el footer). Los modificadores mantienen las subpáginas intactas.
   ========================================================================== */

/* --- Banda oscura con gradiente de marca (navy → azul) --- */
.band--deep {
  position: relative;
  background: linear-gradient(150deg, #0A2A44 0%, #0C426F 54%, #0E6CB8 132%);
  color: rgba(255, 255, 255, 0.82);
}
.band--deep h2, .band--deep h3, .band--deep .split h2 { color: #fff; }
.band--deep p, .band--deep .lede, .band--deep .split .lede, .band--deep .sec-head .lede { color: rgba(255, 255, 255, 0.76); }
.band--deep .eyebrow { color: #8FC3EE; }
.band--deep .checks li { color: rgba(255, 255, 255, 0.84); }
.band--deep .checks li::before { background: #8FC3EE; }
.band--deep .arrow-link { color: #fff; }

/* --- Sostenibilidad en CLARO (solo home · empresa la conserva oscura) --- */
.sust.sust--light { background: var(--cloud); }
.sust.sust--light .sust-bg { opacity: 0.09; filter: saturate(0.65); }
.sust.sust--light h2 { color: var(--ink); }
.sust.sust--light p { color: var(--ink-2); }

/* --- CTA final en OSCURO (solo home · cierra hacia el footer) --- */
.cta-band.cta-band--deep { background: linear-gradient(150deg, #0A2A44 0%, #0C426F 60%, #0E6CB8 134%); }
.cta-band.cta-band--deep h2 { color: #fff; }
.cta-band.cta-band--deep p { color: rgba(255, 255, 255, 0.8); }
.cta-band--deep .chev-a { background: rgba(232, 85, 31, 0.18); }
.cta-band--deep .chev-b { background: rgba(143, 195, 238, 0.2); }
.cta-band--deep .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.cta-band--deep .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: #fff; }

/* ============================================================================
   Foto de «Sobre AGC» · normal, con tilt 3D + zoom al pasar el mouse
   ========================================================================== */
.tiltwrap { perspective: 1000px; width: 100%; }
.tilt-img {
  display: block; width: 100%; height: auto; border-radius: var(--r-card);
  box-shadow: var(--shadow-2);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-origin: center; will-change: transform;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tiltwrap.is-hover .tilt-img { box-shadow: 0 34px 66px rgba(3, 15, 28, 0.5); }
@media (prefers-reduced-motion: reduce) { .tilt-img { transition: none; transform: none; } }
