/* ── Pulso — sitio público (index, nosotros, legal) ────────────────────────────
   Identidad Pulso v2.0 (maqueta "Pulso-Web-Completa", octubre 2026): claro con
   bandas de tinta en puntos clave (hero, portal, pie, CTA), tipografía Geist/
   Geist Mono. Fuente de verdad: output/branding/pulso-referencia-complementada/.
   ─────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('/assets/fonts/Geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('/assets/fonts/Geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('/assets/fonts/Geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-display: swap; src: url('/assets/fonts/Geist-700.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/GeistMono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('/assets/fonts/GeistMono-500.woff2') format('woff2'); }

:root {
  --ink:      #F4F5EE;   /* fondo de página — "papel" */
  --ink-2:    #FFFFFF;   /* superficie elevada — tarjetas */
  --ink-3:    #EEF1EA;   /* superficie suave */
  --sage:     #E5ECE4;   /* banda clara alterna (nosotros/equipo) */
  --line:     #D1D9D2;
  --line-2:   #B7C2B4;
  --fg:       #142A2D;   /* tinta — texto principal, y fondo de las bandas oscuras */
  --fg-dim:   #3C5054;
  --fg-mute:  #516368;
  --azul:     #087F88;   /* petróleo — color de firma único */
  --azul-cl:  #065B63;   /* petróleo oscuro — hover / énfasis */
  --verde:    #087F88;
  --verde-cl: #065B63;
  --mint:     #BCEED8;   /* acento sobre fondo oscuro */
  --clay:     #F0A17F;
  --danger:   #D1453B;

  /* Texto/bordes sobre las bandas oscuras (tinta de fondo) */
  --on-dark:      #F4F5EE;
  --on-dark-dim:  #C0D0CD;
  --on-dark-mute: #9FB3B0;
  --on-dark-line: #24484E;

  --screen:            #0E2024;
  --art-bg:            #EEF1EA;
  --chrome-bg:         #FFFFFF;
  --surface-soft:      rgba(20,42,45,.035);
  --surface-softer:    rgba(20,42,45,.02);
  --nav-bg:            #142A2DF2;
  --nav-mobile-bg:     #142A2D;
  --overlay-bg:        rgba(255,255,255,.97);
  --caption-fade:      #142a2dd9;
  --logo-filter:       brightness(0) opacity(.42);
  --logo-plate-filter: grayscale(1) brightness(.92) contrast(1.05) opacity(.72);
  --shadow-strong:     rgba(20,42,45,.16);

  --max:  1240px;
  --pad:  clamp(20px, 4vw, 48px);
  --font: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(8,127,136,.28); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

/* Etiqueta monoespaciada: "01 / SERVICIOS" */
.kicker {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-mute);
  display: flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex: none;
}
.kicker-n { color: var(--azul-cl); }
.band-dark .kicker-n { color: var(--mint); }

.display {
  font-weight: 600; letter-spacing: -.05em; line-height: .98;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
.title {
  font-weight: 600; letter-spacing: -.045em; line-height: 1.02;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}
.title .hl { color: var(--azul); }
/* Sobre fondo oscuro (hero, portal) o la banda teal del CTA final, el
   petróleo se pierde — ahí la palabra clave usa el menta. */
.band-dark .title .hl, .cta-final .title .hl { color: var(--mint); }
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--fg-dim); line-height: 1.6; max-width: 58ch;
}

/* ── Botones ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font: 600 15px/1 var(--font); cursor: pointer; border: 1px solid transparent;
  transition: background .16s, border-color .16s, color .16s, transform .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: #0A949E; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-mute); background: var(--surface-soft); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 14px/1 var(--font); color: var(--fg);
}
.btn-link svg { transition: transform .16s; }
.btn-link:hover svg { transform: translateX(4px); }

/* Sobre bandas oscuras (hero, portal, CTA): botones y bordes claros */
.band-dark .btn-ghost { border-color: var(--on-dark-line); color: var(--on-dark); }
.band-dark .btn-ghost:hover { border-color: var(--mint); color: #fff; }
.band-dark .btn-mint { background: var(--mint); color: var(--fg); }
.band-dark .btn-mint:hover { background: #fff; color: var(--fg); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--on-dark-line);
}
.nav-inner {
  height: 64px; display: flex; align-items: center; gap: 28px;
  max-width: var(--max); margin: 0 auto; padding-inline: var(--pad);
}
.nav-logo { flex: 0 0 auto; display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; max-width: none; flex: none; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.nav-links a {
  font: 500 14px/1 var(--font); color: var(--on-dark-dim);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.on { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 11px; border-radius: 8px;
  background: transparent; border: 1px solid var(--on-dark-line);
  color: var(--on-dark-dim); font: 500 12px/1 var(--mono); letter-spacing: .04em;
  cursor: pointer; transition: border-color .15s, color .15s;
}
.lang-btn:hover { color: #fff; border-color: var(--mint); }
.nav-right .btn-ghost { border-color: var(--on-dark-line); color: var(--on-dark); height: 38px; padding: 0 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav-right .btn-ghost:hover { border-color: var(--mint); color: #fff; }
.nav-right .btn-primary { background: var(--mint); color: var(--fg); height: 38px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.nav-right .btn-primary:hover { background: #fff; color: var(--fg); }
/* Celular y tablet: acceso al portal con ícono (el botón con texto se oculta ≤1000px) */
.nav-portal {
  display: none; width: 40px; height: 38px; border-radius: 8px;
  background: transparent; border: 1px solid var(--on-dark-line); color: var(--mint);
  align-items: center; justify-content: center;
}
.nav-portal:hover { border-color: var(--mint); color: #fff; }
.menu-btn {
  display: none; width: 40px; height: 38px; border-radius: 8px;
  background: transparent; border: 1px solid var(--on-dark-line); color: var(--on-dark);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--fg); color: var(--on-dark); overflow: hidden;
}
/* Motivo de fondo: barras diagonales gruesas, apenas un tono más oscuras
   que el fondo (no un color de acento) — se distinguen de cerca pero se
   funden con la tinta; una máscara radial centrada en la escena las deja
   ver cerca del corazón y las desvanece hacia los bordes. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg,
    rgba(7,15,17,.55) 0px, rgba(7,15,17,.55) 16px,
    transparent 16px, transparent 46px);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, rgba(0,0,0,.45) 40%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, rgba(0,0,0,.45) 40%, transparent 74%);
  opacity: .8;
  animation: heroBarsBreathe 13s ease-in-out infinite;
}
@keyframes heroBarsBreathe {
  0%, 100% { opacity: .55; }
  50% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; opacity: .68; }
}
.hero::after {
  content: ""; position: absolute; pointer-events: none; inset: -15%;
  background: radial-gradient(ellipse at 50% 46%, rgba(63,214,155,.22), transparent 64%);
  filter: blur(40px);
}
.hero-inner {
  position: relative; max-width: 760px; margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--pad) clamp(64px, 8vw, 110px);
  text-align: center;
}
.hero-inner > * + * { margin-top: 26px; }
.hero-inner .kicker { display: inline-flex; }
.hero h1 { margin: 0; }
.hero h1 .hl { color: var(--mint); }
/* Brillo que arranca en el blanco del titular y sigue hasta el énfasis en
   menta y la línea de pulso final — un solo resplandor continuo. */
.hero-glow { text-shadow: 0 0 20px rgba(255,255,255,.4), 0 0 48px rgba(188,238,216,.28); }
.h1-pulse {
  display: inline-flex; align-items: center; height: .4em; width: 1.5em; margin-left: .12em;
  vertical-align: .08em; color: var(--mint);
}
.h1-pulse svg { width: 100%; height: 100%; display: block; animation: pulseBeat 2.4s ease-in-out infinite; }
@keyframes pulseBeat {
  0%, 15%, 100% { filter: drop-shadow(0 0 7px rgba(188,238,216,.4)); }
  5% { filter: drop-shadow(0 0 20px rgba(188,238,216,.9)); }
}
@media (prefers-reduced-motion: reduce) {
  .h1-pulse svg { animation: none; filter: drop-shadow(0 0 13px rgba(188,238,216,.55)); }
}
.hero-lead { color: var(--on-dark-dim); max-width: min(56ch, 100%); margin-inline: auto; }
.hero-lead strong { color: var(--on-dark); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-capas {
  border-top: 1px solid var(--on-dark-line);
}
.hero-capas-inner {
  max-width: var(--max); margin: 0 auto; padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.capa { padding: 26px 26px 30px 0; display: flex; flex-direction: column; gap: 8px; }
.capa span.capa-k { font: 500 11px/1 var(--mono); color: var(--mint); letter-spacing: .1em; }
.capa span.capa-p { font-size: 15px; line-height: 1.55; color: var(--on-dark-dim); }

@media (max-width: 860px) {
  .hero-capas-inner { grid-template-columns: 1fr; }
  .capa { padding: 22px 0; border-top: 1px solid var(--on-dark-line); }
  .capa:first-child { border-top: none; }
}

/* ── Secciones ────────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 24px 64px; align-items: end;
}
.section-head .lead { margin: 0; max-width: 480px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ── Marcas ───────────────────────────────────────────────────────────────── */
.clients-strip { border-bottom: 1px solid var(--line); padding-block: clamp(40px, 5vw, 56px); }
.clients-heading {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 28px;
}
.clients-heading h2 { font-size: 15px; font-weight: 600; }
.clients-heading h2 .hl { color: var(--azul); }
.clients-cta { font-size: 14px; font-weight: 500; color: var(--fg); }
.clients-cta:hover { color: var(--azul-cl); }
.clients-grid {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px; padding: 0; margin: 0;
}
.client-logo {
  height: 76px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2);
  display: flex; justify-content: center; align-items: center; padding: 14px 18px;
  transition: border-color .15s;
}
.client-logo:hover { border-color: var(--azul); }
.client-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: var(--logo-filter);
  transition: filter .25s ease;
}
.client-logo--plate img { filter: var(--logo-plate-filter); }
.client-logo:hover img, .client-logo:focus-visible img { filter: none; }
:is(.client-logo, .pcard):focus-visible { outline: 2px solid var(--azul-cl); outline-offset: 4px; }

/* ── Servicios: grilla, todo visible (antes eran pestañas con 2 de 3 ocultos) ── */
.svc-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.svc-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { border-color: var(--azul); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20,42,45,.1); }
.svc-icon { width: 72px; height: 72px; object-fit: contain; display: block; margin-bottom: 2px; }
.svc-card-t { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.svc-card-p { font-size: 13.5px; line-height: 1.5; color: var(--fg-dim); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── Criterio: "lo que prometemos, lo mostramos" ──────────────────────────── */
.criterio { background: var(--sage); }
.criterio-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.criterio-item { border-top: 2px solid var(--azul); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.criterio-n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--azul-cl); }
.criterio-t { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.criterio-p { font-size: 15px; line-height: 1.55; color: var(--fg-dim); max-width: 36ch; }
.criterio-proof {
  margin-top: 56px; padding: 22px 26px; border-radius: 16px;
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
}
.criterio-proof p { font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; max-width: 62ch; }
.criterio-proof .btn-link { color: var(--azul-cl); }
.criterio-proof .btn-link:hover svg { transform: translateY(3px); }
@media (max-width: 760px) { .criterio-grid { grid-template-columns: 1fr; gap: 28px; } }
.criterio-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1000px) { .criterio-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .criterio-grid.is-4 { grid-template-columns: 1fr; } }

/* Home → servicios.php, bajo la grilla de servicios */
.svc-more {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.svc-more .btn-link { color: var(--azul-cl); }
.svc-more-alt { font-size: 14.5px; font-weight: 500; color: var(--fg-dim); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.svc-more-alt:hover { color: var(--azul-cl); border-color: var(--azul-cl); }

/* ── Página de servicios ──────────────────────────────────────────────────── */
/* Tres caminos bajo el encabezado; el de webs existentes va destacado. */
.srv-paths { position: relative; }
.srv-paths-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.srv-path {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px;
  border: 1px solid var(--on-dark-line); border-radius: 14px; color: var(--on-dark);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.srv-path:hover { border-color: var(--mint); transform: translateY(-2px); }
.srv-path.is-destacado { border-color: rgba(188,238,216,.55); background: rgba(188,238,216,.06); }
.srv-path-n { font: 500 11px/1 var(--mono); letter-spacing: .1em; color: var(--mint); }
.srv-path-t { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.srv-path-p { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-dim); }
.srv-path-go { margin-top: auto; padding-top: 4px; color: var(--mint); font-size: 18px; line-height: 1; }
@media (max-width: 860px) { .srv-paths-inner { grid-template-columns: 1fr; } }

.srv-sub-t {
  margin-top: clamp(64px, 8vw, 96px); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.03em;
}
.srv-sub-t + .proceso-flow { margin-top: 28px; }

/* Webs existentes: banda oscura, texto + "informe" de auditoría, y cuatro pasos */
.srv-exist { background: var(--fg); color: var(--on-dark); position: relative; overflow: hidden; }
.srv-exist::before {
  content: ""; position: absolute; pointer-events: none; inset: -20% -10% auto auto; width: 70%; height: 90%;
  background: radial-gradient(ellipse at 70% 30%, rgba(63,214,155,.16), transparent 62%); filter: blur(40px);
}
.srv-exist-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad); }
.srv-exist-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px 64px; align-items: center; }
.srv-exist-copy { display: flex; flex-direction: column; gap: 22px; }
.srv-exist-copy .lead { color: var(--on-dark-dim); max-width: 52ch; }
.srv-exist-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.srv-exist .srv-sub-t { color: var(--on-dark); }

.audit-card {
  background: var(--ink); color: var(--fg); border-radius: 18px; padding: 24px 28px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.audit-head {
  display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2);
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute);
}
.audit-k { color: var(--azul-cl); }
.audit-t { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 16px 0 14px; }
.audit-list { list-style: none; display: grid; gap: 11px; }
.audit-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.45; color: var(--fg-dim); }
.audit-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23065B63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.audit-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14px; line-height: 1.5; color: var(--fg-mute); }

.srv-steps { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.srv-step { border: 1px solid var(--on-dark-line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.srv-step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.srv-step-ico { width: 28px; height: 28px; color: var(--mint); }
.srv-step-ico svg { width: 100%; height: 100%; display: block; }
.srv-step-n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--on-dark-mute); }
.srv-step-t { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.srv-step-p { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-dim); }
@media (max-width: 1000px) { .srv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .srv-exist-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .srv-steps { grid-template-columns: 1fr; } .audit-card { padding: 22px 20px 20px; } }

/* Soporte mensual: cuatro tarjetas con los íconos 3D del portal */
.srv-support { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.srv-support-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.srv-support-card img { width: 64px; height: 64px; object-fit: contain; }
.srv-support-t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.srv-support-p { font-size: 14px; line-height: 1.5; color: var(--fg-dim); }
.srv-support-foot { margin-top: 28px; }
.srv-support-foot .btn-link { color: var(--azul-cl); }
@media (max-width: 1000px) { .srv-support { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .srv-support { grid-template-columns: 1fr; } }

/* ── Portal de clientes ───────────────────────────────────────────────────── */
.portal-section { background: var(--fg); color: var(--on-dark); }
.portal-grid {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
}
.portal-copy { display: flex; flex-direction: column; gap: 22px; }
.portal-copy .lead { color: var(--on-dark-dim); max-width: 480px; }
.portal-bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.portal-feat {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--on-dark-line); border-radius: 12px; padding: 10px 16px 10px 10px;
  font-size: 15px; line-height: 1.4;
}
.portal-feat img { width: 52px; height: 52px; flex: none; object-fit: contain; }
.portal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.portal-foot span { font-size: 14px; color: var(--on-dark-mute); }
.portal-illustration img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }

/* ── Proyectos ────────────────────────────────────────────────────────────── */
.projects-section { padding-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.projects-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.proj-nav-row { display: flex; gap: 8px; }
.proj-arrow {
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--fg);
  background: transparent; color: var(--fg); display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: background .15s, color .15s, border-color .15s;
}
.proj-arrow.next { background: var(--fg); color: var(--on-dark); }
.proj-arrow:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.proj-arrow:disabled { opacity: .32; cursor: default; background: transparent; color: var(--fg); border-color: var(--line-2); }
.proj-carousel-shell { margin-top: 40px; }
.proj-carousel {
  display: flex; gap: 18px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--pad), calc((100% - 1240px) / 2 + var(--pad))) 24px; margin: 0; scrollbar-width: none;
}
.proj-carousel::-webkit-scrollbar { display: none; }
.proj-slide { flex: none; width: min(78vw, 400px); scroll-snap-align: start; }
.pcard { display: flex; flex-direction: column; gap: 14px; color: var(--fg); }
.pcard:hover { color: var(--azul-cl); }
.pcard-img { position: relative; height: 480px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--sage); }
.pcard-img > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Vista móvil superpuesta: un "teléfono" en la esquina, que al pasar el
   mouse se levanta un poco y suelta una burbuja con un comentario breve
   sobre responsividad — ver includes/showcase.php. */
.pcard-phone-wrap { position: absolute; right: 14px; bottom: 14px; z-index: 1; }
.pcard-phone {
  display: block; width: 72px; aspect-ratio: 320 / 692; border-radius: 13px; overflow: hidden;
  border: 3px solid var(--fg); background: var(--fg); box-shadow: 0 10px 24px rgba(20,42,45,.35);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.pcard-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcard:hover .pcard-phone { transform: translateY(-5px) scale(1.06); }
.pcard-bubble {
  position: absolute; right: calc(100% + 10px); bottom: 16px; width: max-content; max-width: 160px;
  background: var(--azul); color: #fff; font: 600 12.5px/1.3 inherit;
  padding: 9px 13px; border-radius: 13px 13px 3px 13px; box-shadow: 0 10px 22px rgba(20,42,45,.3);
  opacity: 0; transform: translate(6px, 4px) scale(.92); transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.pcard:hover .pcard-bubble { opacity: 1; transform: translate(0, 0) scale(1); }
@media (hover: none) {
  .pcard-bubble { display: none; }
}
.pcard-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard-cap strong { font-size: 19px; font-weight: 600; }
.pcard-cap em { font: 400 12px/1 var(--mono); font-style: normal; color: var(--fg-mute); text-align: right; }
.pcard-note { font-size: 12px; color: var(--fg-mute); margin-top: -8px; }

/* ── Proceso: flujo conectado, no una grilla de tarjetas sueltas ─────────────
   Nodo numerado + ícono por paso, flechas de paso a paso y un leve zigzag
   vertical (los pasos pares bajan un poco) para que se lea como un
   recorrido, no cuatro cajas iguales. */
.proceso-flow { margin-top: 52px; display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 0; }
.proceso-card {
  flex: 1 1 0; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 240px;
}
.proceso-card:nth-of-type(2n) { margin-top: 28px; }
.step-icon { width: 28px; height: 28px; color: var(--azul-cl); }
.step-icon svg { width: 100%; height: 100%; }
.step-node {
  width: 38px; height: 38px; margin-top: 2px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; background: var(--sage); border: 1px solid var(--line-2);
  font: 600 14px/1 var(--mono); color: var(--fg);
}
.proceso-card .step-t { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.proceso-card .step-p { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
.proceso-card.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.proceso-card.on .step-icon { color: var(--mint); }
.proceso-card.on .step-node { background: #fff; border-color: #fff; color: var(--azul); }
.proceso-card.on .step-p { color: #E6FBF2; }
.step-arrow {
  flex: 0 0 auto; align-self: center; width: 30px; margin-top: 50px; display: flex; align-items: center;
  justify-content: center; font: 600 19px/1 var(--mono); color: var(--line-2);
}
@media (max-width: 1000px) {
  .proceso-flow { flex-direction: column; gap: 10px; }
  .proceso-card:nth-of-type(2n) { margin-top: 0; }
  .step-arrow { align-self: flex-start; width: auto; height: 22px; margin: -4px 0 -4px 28px; transform: rotate(90deg); }
}

/* ── Nosotros (resumen en el home) ────────────────────────────────────────── */
.about-teaser { background: var(--sage); }
.about-teaser-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 56px; align-items: center;
}
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-stat { padding: 30px; }
.about-copy .lead { max-width: none; }
.sign {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 20px; border-top: 1px solid var(--line-2);
}
.sign b { display: block; font-size: 16px; font-weight: 600; }
.sign span { font-size: 14px; color: var(--fg-mute); }
.sign a { font-size: 15px; font-weight: 600; }
.sign a:hover { color: var(--azul-cl); }
@media (max-width: 860px) { .about-teaser-inner { grid-template-columns: 1fr; } }

/* ── Equipo (página nosotros) ─────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 40px; }
.member { background: var(--ink-2); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.member-photo { aspect-ratio: 1/1; background: var(--line); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.member-initial {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: 600 46px/1 var(--font); color: rgba(20,42,45,.14);
  background: radial-gradient(circle at 50% 35%, rgba(8,127,136,.12), transparent 60%);
}
.member-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.member h3 { font-size: 18px; font-weight: 600; }
.member-role { font-size: 14px; color: var(--fg-mute); }
.member p { font-size: 13.5px; color: var(--fg-dim); margin-top: 8px; line-height: 1.6; }
.member-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 14px var(--font); color: var(--fg); }
.member-link:hover { color: var(--azul-cl); }
.member-open {
  border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 280px;
}
.member-open .kicker { color: var(--azul-cl); }
.member-open strong { font-size: 18px; font-weight: 600; line-height: 1.3; }

/* ── Nosotros: cómo trabajamos (filas numeradas) ──────────────────────────── */
.bg-sage { background: var(--sage); }
.valores-list { margin-top: 32px; display: flex; flex-direction: column; border-top: 1px solid var(--fg); }
.valor-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px 40px; padding: 32px 0; border-bottom: 1px solid var(--line);
}
.valor-row-head { display: flex; gap: 20px; align-items: baseline; }
.valor-row-head span.n { font: 500 13px/1 var(--mono); color: var(--azul-cl); }
.valor-row-head span.t { font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; }
.valor-row p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fg-dim); }

/* ── Historia (línea de tiempo) ───────────────────────────────────────────── */
.timeline { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--fg); }
.tl-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-year { font: 700 13px/1 var(--mono); letter-spacing: .1em; color: var(--azul-cl); padding-top: 4px; }
.tl-item h4 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.tl-item p { color: var(--fg-dim); margin-top: 8px; max-width: 62ch; }

/* ── Contacto ─────────────────────────────────────────────────────────────── */
.contacto-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px 72px; align-items: start; }
.canal {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%;
  padding: 18px 20px; border-radius: 14px; margin-top: 10px;
  border: 1px solid var(--line); background: var(--ink-2);
  cursor: pointer; text-align: left; font-family: var(--font);
  transition: border-color .15s;
}
.canal:hover { border-color: var(--azul); }
.canal .txt { display: flex; flex-direction: column; gap: 2px; }
.canal .txt b { font-size: 17px; font-weight: 600; color: var(--fg); }
.canal .txt span { font-size: 14px; color: var(--fg-mute); }
.canal .txt span.mono { font: 400 14px var(--mono); }
.canal-arrow { font-size: 16px; color: var(--fg); }

.form { border: 1px solid var(--line); border-radius: 20px; background: var(--ink-2); overflow: hidden; }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.form-tab {
  padding: 18px; background: var(--sage); border: none; cursor: pointer;
  font: 600 15px var(--font); color: var(--fg-mute); transition: background .15s, color .15s;
}
.form-tab.on { background: var(--ink-2); color: var(--fg); }
.form-panel { display: none; padding: 28px; }
.form-panel.on { display: block; }
.form .hint { font-size: 14px; color: var(--fg-mute); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row > div { min-width: 0; }
.mt { margin-top: 16px; }
.form label { display: block; font: 500 13px/1 var(--font); color: var(--fg); margin-bottom: 7px; }
.form input, .form textarea {
  width: 100%; background: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; color: var(--fg);
  font: 400 15px var(--font); outline: none;
  transition: border-color .15s;
}
.form input::placeholder, .form textarea::placeholder { color: #8396A0; }
.form input:focus, .form textarea:focus { border-color: var(--azul); outline: 2px solid var(--azul); outline-offset: 0; }
.form textarea { min-height: 116px; resize: vertical; line-height: 1.6; white-space: pre-wrap; }
.form input[type="date"], .form input[type="time"] { color-scheme: light; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 14px; border-radius: 999px; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line);
  color: var(--fg); font: 500 14px var(--font);
  transition: all .15s;
}
.chip:hover { border-color: var(--line-2); }
.chip.on { background: var(--fg); border-color: var(--fg); color: #fff; }

.check-label {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px;
  font: 400 13.5px/1.45 var(--font) !important; color: var(--fg-dim);
  text-transform: none !important; letter-spacing: 0 !important;
}
.check-label input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--azul); flex: none; }
.check-label a { color: var(--azul-cl); text-decoration: underline; }

.btn-form {
  width: 100%; margin-top: 20px; height: 54px; border: none; border-radius: 12px;
  background: var(--fg); color: #fff; font: 600 16px var(--font); cursor: pointer; transition: background .15s;
}
.btn-form:hover { background: var(--azul); }
.btn-form:disabled { opacity: .55; cursor: not-allowed; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { display: none; padding: 50px 6px 10px; }
.form-ok .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #E3F4EA; color: #1F6B4A; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.form-ok .pill span { width: 7px; height: 7px; border-radius: 50%; background: #2E8B5E; }
.form-ok h4 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.form-ok p { color: var(--fg-dim); font-size: 15px; margin-top: 10px; }

/* ── CTA final ────────────────────────────────────────────────────────────── */
.cta-final { background: var(--azul); color: #fff; }
.cta-final-inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end;
}
.cta-final .kicker { color: #E6FBF2; }
.cta-final .title { margin: 0; }
.cta-final .lead { color: #E6FBF2; max-width: none; }
.cta-final .hero-cta { margin-top: 4px; }
.cta-final .btn-primary { background: var(--fg); color: #fff; }
.cta-final .btn-primary:hover { background: #0B1D1F; }
.cta-final .btn-ghost { background: #fff; color: var(--fg); border-color: #fff; }
.cta-final .btn-ghost:hover { background: var(--mint); }
@media (max-width: 760px) { .cta-final-inner { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer { background: var(--fg); color: var(--on-dark-dim); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 32px; display: flex; flex-direction: column; gap: 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 15px; line-height: 1.55; max-width: 300px; }
.footer h5 { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 12px; }
.footer-links { display: grid; gap: 12px; }
.footer-links a { font-size: 15px; color: var(--on-dark-dim); width: fit-content; }
.footer-links a:hover { color: #fff; }
.footer-links a.mono { font: 400 14px var(--mono); color: var(--mint); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 22px; border-top: 1px solid var(--on-dark-line);
  font: 400 12px var(--mono); color: var(--on-dark-mute);
}

/* ── Cookies + WhatsApp ───────────────────────────────────────────────────── */
.cookies {
  position: fixed; left: 20px; bottom: 20px; transform: translateY(140%);
  visibility: hidden;
  z-index: 200; max-width: min(420px, calc(100vw - 110px));
  background: var(--ink-2);
  border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 20px 50px -20px rgba(20,42,45,.33);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookies.show { transform: translateY(0); visibility: visible; }
.cookies p { font-size: 14px; color: var(--fg-dim); line-height: 1.5; }
.cookies a { color: var(--azul-cl); text-decoration: underline; }
.cookies .row { display: flex; gap: 8px; margin-top: 14px; }
.btn-ck, .btn-ck2 {
  padding: 10px 16px; border-radius: 9px; cursor: pointer;
  font: 600 14px var(--font); border: 1px solid transparent;
}
.btn-ck { background: var(--fg); color: #fff; }
.btn-ck2 { background: transparent; border-color: var(--line); color: var(--fg); font-weight: 500; }
.btn-ck2:hover { border-color: var(--line-2); }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--azul); color: #fff;
  display: grid; place-items: center;
  font: 600 13px var(--mono);
  box-shadow: 0 14px 30px -10px rgba(20,42,45,.6);
  transition: background .18s, transform .18s;
}
.wa-float:hover { background: var(--azul-cl); transform: scale(1.06); }

/* ── Prosa (legal) ────────────────────────────────────────────────────────── */
.prose { max-width: 760px; padding-block: clamp(40px, 6vw, 80px); }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.03em; }
.prose h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1rem; font-weight: 600; margin: 22px 0 8px; }
.prose p, .prose li { color: var(--fg-dim); font-size: 14.5px; line-height: 1.8; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; display: grid; gap: 8px; }
.prose a { color: var(--azul-cl); text-decoration: underline; }
.prose strong { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 13.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--fg-dim); }
.prose th { background: var(--ink-3); color: var(--fg); font-weight: 600; }

/* ── Aparición al hacer scroll ────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].revealed { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
[data-reveal="left"] { opacity: 0; transform: translateX(-34px); }
[data-reveal="left"].revealed { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }

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

/* ── Nosotros (nosotros.php): la marca, la web hoy, el recorrido, el pulso ─── */
/* Cifras con fuente; la del 96,55 % va en tinta (también en el home). */
.nos-stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nos-stat {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.nos-stat-k { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); }
.nos-stat-n { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.nos-stat-p { font-size: 15px; line-height: 1.5; color: var(--fg-dim); }
.nos-stat-src { margin-top: auto; padding-top: 6px; font: 400 11.5px/1.45 var(--mono); color: var(--fg-mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.nos-stat-src:hover { color: var(--azul-cl); }
.nos-stat.is-key { background: var(--fg); border-color: var(--fg); color: var(--on-dark); }
.nos-stat.is-key .nos-stat-k, .nos-stat.is-key .nos-stat-src { color: var(--on-dark-mute); text-decoration-color: var(--on-dark-line); }
.nos-stat.is-key .nos-stat-n { color: var(--mint); text-shadow: 0 0 24px rgba(188,238,216,.3); }
.nos-stat.is-key .nos-stat-p { color: var(--on-dark-dim); }
/* "1 de cada 7": siete puntos, uno encendido */
.nos-dots7 { display: flex; gap: 7px; }
.nos-dots7 i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.nos-dots7 i.on { background: var(--azul); box-shadow: 0 0 0 4px rgba(8,127,136,.16); }
/* "96,55 %": de cada 100 páginas, 3 y media reciben visitas de Google */
.nos-grid100 { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; max-width: 240px; }
.nos-grid100 i { aspect-ratio: 1; border-radius: 2px; background: rgba(244,245,238,.13); }
.nos-grid100 i.on { background: var(--mint); box-shadow: 0 0 8px rgba(188,238,216,.55); }
.nos-grid100 i.half { background: linear-gradient(90deg, var(--mint) 45%, rgba(244,245,238,.13) 45%); }
.nos-close { margin-top: 40px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.25; text-wrap: balance; }
.nos-close .hl { color: var(--azul); }
@media (max-width: 1000px) { .nos-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nos-stats { grid-template-columns: 1fr; } }

/* El recorrido: cuatro etapas; la última ("Funcionar") en petróleo */
.nos-eras { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nos-era {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.nos-era-media {
  aspect-ratio: 1; margin-bottom: 8px; border-radius: 12px; background: var(--ink-3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nos-era-media img { width: 100%; height: 100%; object-fit: contain; }
.nos-era-media svg { width: 34%; height: 34%; color: var(--fg-mute); }
.nos-era-n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--azul-cl); }
.nos-era-t { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.nos-era-p { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
.nos-era.is-now { background: var(--azul); border-color: var(--azul); color: #fff; }
.nos-era.is-now .nos-era-media { background: rgba(255,255,255,.1); }
.nos-era.is-now .nos-era-media svg { color: var(--mint); }
.nos-era.is-now .nos-era-n { color: var(--mint); }
.nos-era.is-now .nos-era-p { color: #E6FBF2; }
@media (max-width: 1000px) { .nos-eras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nos-eras { grid-template-columns: 1fr; } }

/* Por qué Pulso: una línea plana que empieza a latir al entrar en pantalla */
.nos-pulso { background: var(--fg); color: var(--on-dark); position: relative; overflow: hidden; }
.nos-pulso::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, rgba(63,214,155,.16), transparent 60%); filter: blur(40px);
}
.nos-pulso-inner {
  position: relative; max-width: 980px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center;
}
.nos-pulso .lead { color: var(--on-dark-dim); max-width: 60ch; }
.nos-latido { display: block; width: min(100%, 1100px); height: auto; aspect-ratio: 10 / 1; color: var(--mint); overflow: visible; }
.nos-latido path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
/* La línea tenue siempre se ve; la brillante se dibuja encima al entrar en pantalla
   (si la animación no corre, igual queda la forma del latido). */
.nos-latido .base { opacity: .2; }
.nos-latido .trazo {
  stroke-dasharray: 1; stroke-dashoffset: 1;   /* pathLength="1": se dibuja de 0 a 1 */
  filter: drop-shadow(0 0 8px rgba(188,238,216,.5));
}
@media (max-width: 760px) { .nos-latido path { stroke-width: 6; } }
.nos-latido.revealed .trazo { animation: nosTrazo 2.8s cubic-bezier(.55,0,.35,1) .2s forwards; }
@keyframes nosTrazo { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .nos-latido .trazo { stroke-dashoffset: 0; } }
.nos-pulso-key {
  font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.035em; color: var(--mint);
  text-shadow: 0 0 22px rgba(188,238,216,.35);
}
.nos-pilares { width: 100%; margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: left; }
.nos-pilar { border: 1px solid var(--on-dark-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
/* Íconos 3D de Codex (output/branding/nosotros-3d/) a 96 px; el SVG de línea queda de respaldo */
.nos-pilar-ico { width: 96px; height: 96px; display: flex; align-items: center; color: var(--mint); }
.nos-pilar-ico img { width: 100%; height: 100%; object-fit: contain; }
.nos-pilar-ico svg { width: 30px; height: 30px; }
.nos-pilar-t { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.nos-pilar-p { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-dim); }
@media (max-width: 860px) { .nos-pilares { grid-template-columns: 1fr; } }

/* Equipo multidisciplinario: las cuatro disciplinas antes de las tarjetas */
.nos-disc { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nos-disc-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.nos-disc-ico { width: 96px; height: 96px; display: flex; align-items: center; color: var(--azul-cl); }
.nos-disc-ico img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nos-disc-ico svg { width: 30px; height: 30px; display: block; }
.nos-disc-t { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.nos-disc-p { font-size: 14px; line-height: 1.5; color: var(--fg-dim); }
@media (max-width: 1000px) { .nos-disc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .nos-disc { grid-template-columns: 1fr; } }

/* Pulso social: tarjeta cálida (arcilla solo de fondo y borde, nunca como texto) */
.nos-social {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px 40px; align-items: start;
  padding: clamp(28px, 4vw, 52px); border-radius: 22px;
  background: rgba(240,161,127,.13); border: 1px solid rgba(240,161,127,.5);
}
.nos-social-ico {
  width: 96px; height: 96px; border-radius: 22px; background: var(--ink-2); color: var(--azul-cl);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nos-social-ico img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.nos-social-ico svg { width: 46px; height: 46px; }
.nos-social-copy { display: flex; flex-direction: column; gap: 18px; }
.nos-social-t { font-size: clamp(1.8rem, 3.6vw, 2.8rem); text-wrap: balance; }
.nos-social-note {
  align-self: flex-start; padding: 8px 16px; border-radius: 999px;
  background: var(--ink-2); border: 1px dashed rgba(240,161,127,.9); font-size: 15px; color: var(--fg);
}
.nos-social-note strong { font-weight: 600; }
.nos-social-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
@media (max-width: 640px) { .nos-social { grid-template-columns: 1fr; } .nos-social-ico { width: 72px; height: 72px; } }
.nos-social-more { align-self: flex-start; font-size: 14.5px; font-weight: 500; color: var(--azul-cl); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nos-social-more:hover { color: var(--fg); }

/* "Cómo trabajamos": cada compromiso dice de qué valor nace */
.valor-row-body { display: flex; flex-direction: column; gap: 12px; }
.valor-raiz { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--azul-cl); }
.valores-more { margin-top: 28px; }
.valores-more .btn-link { color: var(--azul-cl); }

/* ── Valores y compromiso social (compromiso.php) ─────────────────────────── */
.cs-values { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cs-value {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--azul);
}
.cs-value-n { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--azul-cl); }
.cs-value-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cs-value-r { font: 400 11.5px/1.4 var(--mono); letter-spacing: .04em; color: var(--fg-mute); }
.cs-value-p { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); margin-top: 2px; }
@media (max-width: 1000px) { .cs-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-values { grid-template-columns: 1fr; } }
.cs-refs-link { align-self: flex-start; font-size: 14px; color: var(--fg-mute); border-bottom: 1px solid var(--line-2); }
.cs-refs-link:hover { color: var(--azul-cl); }

.cs-callout {
  margin-top: 28px; padding: 26px 28px; border-radius: 16px; background: var(--fg); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 12px 40px; align-items: baseline;
}
.cs-callout-t { font-size: 21px; font-weight: 600; letter-spacing: -.02em; color: var(--mint); }
.cs-callout p { font-size: 16px; line-height: 1.6; color: var(--on-dark-dim); }
@media (max-width: 760px) { .cs-callout { grid-template-columns: 1fr; } }

.cs-work { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-work-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.cs-work-t { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.03em; }
.cs-work-p { font-size: 14.5px; line-height: 1.55; color: var(--fg-dim); }
@media (max-width: 760px) { .cs-work { grid-template-columns: 1fr; } }

/* Términos: columna angosta, numerados, como una política */
.cs-terms-wrap { max-width: 860px; }
.cs-terms { list-style: none; margin-top: 40px; border-top: 1px solid var(--fg); }
.cs-term { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cs-term-n { font: 600 14px/1.6 var(--mono); color: var(--azul-cl); }
.cs-term-t { font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.cs-term p { font-size: 16px; line-height: 1.65; color: var(--fg-dim); max-width: 68ch; }
.cs-refs { margin-top: 48px; padding: 22px 24px; border-radius: 14px; background: var(--ink-3); border: 1px solid var(--line); }
.cs-refs-t { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); }
.cs-refs-p { margin-top: 12px; font-size: 14px; color: var(--fg-dim); }
.cs-refs ul { margin-top: 10px; padding-left: 18px; display: grid; gap: 6px; }
.cs-refs li { font-size: 14px; line-height: 1.5; color: var(--fg-dim); }

@media (min-width: 761px) and (max-width: 1150px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 1000px) {
  .nav-right .btn-ghost { display: none; }
}
@media (max-width: 760px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}
@media (max-width: 420px) {
  .hero .display { font-size: clamp(2.1rem, 10vw, 4.75rem); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .menu-btn, .nav-portal { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--nav-mobile-bg); border-bottom: 1px solid var(--on-dark-line);
    padding: 8px var(--pad) 20px; display: none;
    box-shadow: 0 24px 50px rgba(0,0,0,.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--on-dark-line); font-size: 16px; }
  .nav-inner { gap: 12px; }
  .nav-right .btn-primary { display: none; }
  .nav-right { gap: 6px; }

  .form-row { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  /* Footer compacto: solo el logo, enlaces en línea por grupo y una línea final.
     El padding derecho del pie deja libre la zona del botón flotante de WhatsApp. */
  .footer-inner { padding: 40px var(--pad) 24px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-brand img { height: 26px; }
  .footer-brand p { display: none; }
  .footer h5 { margin-bottom: 8px; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .footer-links a { font-size: 14px; }
  .footer-links a.mono { font-size: 13px; }
  .footer-bottom { padding-top: 16px; padding-right: 64px; font-size: 11px; }
  .footer-bottom > span:nth-child(2) { display: none; }   /* "Pulso · Desarrollo y Soluciones Web": ya lo dice el logo */
  .cookies { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
