/* ============================================================
   Temoche Consulting — rediseño institucional
   Un solo font (Inter). Un solo acento. Cero neón.
   Dos temas: [data-theme="clara"] (default) y [data-theme="oscura"].
   ============================================================ */

:root {
  /* CLARA — instituto / bufete técnico */
  --bg:        #FBFBF9;
  --surface:   #FFFFFF;
  --surface-2: #F4F3EF;
  --line:      #E6E4DE;
  --line-2:    #D8D5CC;
  --text:      #16181D;
  --muted:     #5B6068;
  --faint:     #6A6F77;
  --accent:    #028389;   /* verde teal (marca) */
  --accent-ink:#016B70;
  --seal:      #7A5C2E;   /* bronce, solo sellos */
  --cta-text:  #FFFFFF;
  --logo-ink:  #41545C;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --r: 4px;
  --r-lg: 8px;
}

[data-theme="oscura"] {
  /* OSCURA SOBRIA — autoridad discreta */
  --bg:        #0E1116;
  --surface:   #161A21;
  --surface-2: #12161C;
  --line:      #272C35;
  --line-2:    #333A45;
  --text:      #E8EAED;
  --muted:     #9AA1AB;
  --faint:     #868D97;
  --accent:    #028389;   /* verde de marca (igual que claro) */
  --accent-ink:#0AA8B0;
  --seal:      #C9A86A;   /* dorado mate, solo sellos */
  --cta-text:  #FFFFFF;
  --logo-ink:  #AEBCC2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: var(--cta-text); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

/* ---------- Kicker / labels ---------- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
}
.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  font-size: 15px; font-weight: 600;
  background: var(--accent); color: var(--cta-text);
  border: 1px solid var(--accent); border-radius: var(--r);
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; opacity: .9; }
.btn--secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; font-size: 15px; font-weight: 600;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.btn--secondary:hover { border-color: var(--text); text-decoration: none; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow { font-weight: 600; color: var(--accent-ink); display: inline-flex; gap: 7px; align-items: center; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
/* Logo temático: clara por defecto, oscura cuando data-theme="oscura" */
.brand .logo-oscura { display: none; }
[data-theme="oscura"] .brand .logo-clara { display: none; }
[data-theme="oscura"] .brand .logo-oscura { display: initial; }
.nav { display: flex; align-items: center; gap: 42px; }
.nav a { color: var(--text); font-size: 14.5px; font-weight: 700; }
.nav a:hover { color: var(--text); text-decoration: none; }
.head-cta { display: flex; align-items: center; gap: 18px; }
.head-cta .lang { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 820px) { .nav { display: none; } }

/* ---------- Section rhythm ---------- */
section { padding-block: 92px; }
.sec-head { max-width: 720px; margin-bottom: 52px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 18px 0 0; line-height: 1.55; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 60px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  max-width: 16ch;
}
.hero h1 .hl { color: var(--accent); }
.hero-lead {
  margin: 26px 0 0; max-width: 54ch;
  font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.55;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats band ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 38px 30px 38px 0; }
.stat + .stat { padding-left: 34px; border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .num a { color: inherit; text-decoration: none; }
.stat .num a:hover { color: var(--accent-ink); text-decoration: underline; }
.stat .lbl { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 760px) {
  .stats .wrap { grid-template-columns: 1fr; }
  .stat { padding: 26px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Clients (logos + rubro) ---------- */
.clients { padding-block: 64px; }
.clients .eyebrow { display: block; text-align: center; margin-bottom: 34px; }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 28px; align-items: start;
}
.client { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; min-width: 0; }
.client-logo { height: 78px; display: flex; align-items: center; justify-content: center; max-width: 100%; }
/* logos now use .logo-mask (see feedback batch block below) */
.client-rubro {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); padding-top: 12px; border-top: 1px solid var(--line); width: 100%; max-width: 150px;
  opacity: 1;
}
@media (max-width: 880px) { .client-rubro { display: none; } }
.clients-note { margin-top: 38px; text-align: center; font-size: 12.5px; color: var(--faint); }
@media (max-width: 880px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; } }

/* ---------- Servicios: journey ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 26px; }
.step:first-child { padding-left: 0; }
.step:not(:first-child)::before {
  content: ""; position: absolute; left: 0; top: 13px; bottom: auto;
  width: 1px; height: calc(100% - 13px); background: var(--line);
}
.step .dot {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--accent);
  counter-increment: step; margin-bottom: 20px;
}
.step .dot::after { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.step p { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.flow-line { position: relative; height: 1px; background: var(--line); margin-bottom: 30px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 22px 0 22px 28px; border-left: 1px solid var(--line); }
  .step:first-child { padding-left: 28px; }
  .step:not(:first-child)::before { display: none; }
  .step .dot { position: absolute; left: -13px; top: 22px; margin: 0; background: var(--bg); }
  .flow-line { display: none; }
}

/* ---------- Casos ---------- */
.cases { display: grid; gap: 0; }
.case {
  display: grid; grid-template-columns: 56px 200px 1fr; gap: 34px; align-items: baseline;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.case:last-child { border-bottom: 1px solid var(--line); }
.case .no { font-size: 15px; font-weight: 700; color: var(--faint); }
.case .tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent-ink); }
.case h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 10px; }
.case p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .case .no { display: none; }
}

/* ---------- Equipo + certs ---------- */
.team-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.team-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.team-points li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.team-points .mk { color: var(--accent-ink); font-weight: 700; line-height: 1.5; }
.team-points strong { display: block; font-weight: 650; font-size: 16px; margin-bottom: 4px; }
.team-points span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.certs-card { position: relative; border: 1px solid color-mix(in srgb, var(--muted) 20%, var(--line-2)); border-radius: var(--r-lg); background: transparent; padding: 44px 30px 34px; }
.certs-card .eyebrow { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 0 16px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-ink); white-space: nowrap; text-align: center; }
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
.cert {
  display: flex; align-items: center; justify-content: center; min-height: 88px; padding: 8px 2px; min-width: 0;
}
/* Certs as theme-aware masks (like client logos): ink in clara, white in oscura,
   exact brand teal on hover. CSP-safe — mask URLs live in classes, never inline. */
.cert-mask { display: block; height: var(--ch, 44px); width: var(--cw); max-width: 100%; background-color: var(--logo-ink); -webkit-mask: var(--cm) center / contain no-repeat; mask: var(--cm) center / contain no-repeat; transition: background-color .2s ease; }
.cert:hover .cert-mask { background-color: var(--accent); }
.cm-cisa { --cm: url(/assets/img/certs/cisa.svg?v=15);        --ch: 54px; --cw: 52.7px;  }
.cm-cism { --cm: url(/assets/img/certs/cism.svg?v=15);        --ch: 54px; --cw: 52.5px;  }
.cm-iso  { --cm: url(/assets/img/certs/iso27001-la.svg?v=15); --ch: 36.1px; --cw: 88.7px; }
.cm-ceh  { --cm: url(/assets/img/certs/ceh.svg?v=15);         --ch: 32.6px; --cw: 70px;  }
.cm-chfi { --cm: url(/assets/img/certs/chfi.svg?v=15);        --ch: 32.5px; --cw: 81.4px; }
.cm-pcip { --cm: url(/assets/img/certs/pcip-clean.svg?v=15);  --ch: 34.4px; --cw: 122.9px; }
.cm-crisc { --cm: url(/assets/img/certs/crisc.svg?v=15);      --ch: 54px; --cw: 52.3px;  }
.cm-aws  { --cm: url(/assets/img/certs/aws-security.svg?v=15); --ch: 78px; --cw: 68px;  }
.cm-prince2 { --cm: url(/assets/img/certs/prince2.svg?v=15);  --ch: 16.5px; --cw: 109px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.promise { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.promise li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.promise li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.promise strong { color: var(--text); font-weight: 600; }
.form { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.form button[type="submit"] { width: 100%; justify-content: center; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px; background: var(--surface-2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-foot p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 460px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 13.5px; }



/* ---- Parche batch (2026): logo marca, slider idioma, flechas journey, cliente en casos, footer ---- */

.lang-toggle { display: inline-flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.lang-toggle .on { background: var(--accent); color: var(--cta-text); padding: 5px 11px; }
.lang-toggle .off { color: var(--muted); padding: 5px 11px; }
.lang-toggle .off:hover { color: var(--text); text-decoration: none; }

.flow-line { display: none; }
.flow .step::before { display: none !important; }
.flow .step:not(:last-child)::after { content: "→"; position: absolute; top: 0; right: 10px; color: var(--accent); font-size: 20px; line-height: 26px; }

.case-client { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 5px; letter-spacing: -0.01em; }

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.foot-brand p { margin: 0 0 6px; }
.foot-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.foot-social { display: flex; gap: 6px; margin-left: -7px; }
.foot-brand .foot-social { margin-top: 24px; }
.foot-social a { color: var(--muted); display: inline-flex; padding: 7px; }
.foot-social a:hover { color: var(--accent); }
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 860px) {
  .flow .step::after { display: none; }
  .foot-right { align-items: flex-start; }
}

.scope-note { max-width: 760px; margin: 44px 0 0; padding: 16px 22px; border-left: 2px solid var(--accent); background: var(--surface-2); color: var(--muted); font-size: 14.5px; line-height: 1.55; border-radius: 0 var(--r) var(--r) 0; }
.scope-note strong { color: var(--text); font-weight: 600; }
[data-theme="oscura"] .scope-note { background: var(--surface); }

.foot-social a svg { width: auto; height: 19px; fill: currentColor; }
.foot-social .ic-indeed svg { height: 18px; }
.foot-social .ic-glassdoor svg { height: 20px; }
.foot-orgs { display: flex; flex-wrap: wrap; gap: 18px 56px; }
.foot-org { display: flex; flex-direction: column; gap: 3px; }
.foot-org > strong { color: var(--text); font-size: 13.5px; font-weight: 700; }
.foot-loc { color: var(--muted); font-size: 12.5px; }
.foot-address { font-size: 12.5px; line-height: 1.5; }
.foot-address a { color: var(--muted); }

.hero-stake { margin-top: 24px; font-size: 14.5px; color: var(--muted); max-width: 50ch; padding-top: 18px; border-top: 1px solid var(--line); }

.client-group + .client-group { margin-top: 40px; }
.group-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--bg); padding: 0 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin: 0; white-space: nowrap; text-align: center; }

/* ---- Menú móvil ---- */
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; margin-left: 2px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.site-head.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-head.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-head.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }
.site-head.menu-open .mobile-menu { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 4px 28px 18px; background: color-mix(in srgb, var(--bg) 96%, transparent); }
.mobile-menu a { padding: 14px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu .mm-lang { color: var(--muted); font-weight: 500; font-size: 13px; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .head-cta .lang-toggle { display: none; }
  .head-cta .btn { padding: 9px 15px; font-size: 14px; }
}

/* ---- Toggle de tema (claro/oscuro) ---- */
.theme-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.theme-toggle button { background: none; border: 0; padding: 7px 11px; cursor: pointer; font-size: 13px; line-height: 1; color: var(--muted); transition: background .15s, color .15s; }
[data-theme="clara"] .theme-toggle button[data-set="clara"], [data-theme="oscura"] .theme-toggle button[data-set="oscura"] { background: var(--accent); color: var(--cta-text); }
[data-theme="oscura"] .theme-toggle button[data-set="oscura"], [data-theme="oscura"] .lang-toggle .on { color: #fff; }
.mm-controls { display: flex; align-items: center; gap: 18px; padding-top: 16px; }
@media (max-width: 820px) { .head-cta .theme-toggle { display: none; } }

/* ---- Producción: skip-link, honeypot, form status, cookie, footer legal ---- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--cta-text); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 16px; }
.form-status { margin: 14px 0 0; font-size: 14px; padding: 10px 12px; border-radius: var(--r); }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgba(2,131,137,.10); color: var(--accent-ink); }
.form-status.err { background: rgba(180,40,40,.10); color: #b42828; }
.form-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.foot-legal { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 28px; }
.foot-legal .wrap { display: block; }
.foot-legal p { margin: 0 0 10px; color: var(--faint); font-size: 12.5px; line-height: 1.6; max-width: none; }
.site-foot .foot-tm { max-width: none; }
.cookie-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 620px; margin-inline: auto; z-index: 120; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px 20px; box-shadow: 0 8px 30px rgba(0,0,0,.12); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; transform: translateY(180%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1 1 280px; }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-essential { background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r); padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cookie-banner-accept, .cookie-banner-ok { background: var(--accent); color: var(--cta-text); border: 1px solid var(--accent); border-radius: var(--r); padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---- Fix overflow móvil: Turnstile 300px fijo + grid ---- */
.contact-grid > * { min-width: 0; }
.form, .field, .field-row { min-width: 0; }
.cf-turnstile { max-width: 100%; overflow-x: auto; }
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .form { padding: 18px; }
  section { padding-block: 60px; }
  .clients { padding-block: 44px; }
  .hero { padding-top: 26px; padding-bottom: 40px; }
  .client-group { padding: 40px 20px 30px; }
}


/* ============ Feedback batch: client-logo recolor + group boxes + wrap ============ */
/* Theme-aware logo silhouettes via CSS mask: exact black (clara) / white (oscura),
   and exact brand teal on hover (filter can't hit a precise color). CSP-safe:
   the mask URLs live here, never in inline style attributes. */
.logo-mask {
  display: block; height: var(--lh, 38px); width: auto; max-width: 100%;
  aspect-ratio: var(--ar, 3 / 1);
  background-color: var(--logo-ink);
  -webkit-mask: var(--lm) center / contain no-repeat;
          mask: var(--lm) center / contain no-repeat;
  transition: background-color .2s ease;
}
.l-alignet     { --lm: url(/assets/img/clientes/alignet.svg?v=10);     --ar: 272/96; }
.l-payme       { --lm: url(/assets/img/clientes/payme.svg?v=10);       --ar: 409/124; }
.l-source2pay  { --lm: url(/assets/img/clientes/source2pay.svg?v=10);  --ar: 280/64;  --lh: 33px; }
.l-bigidea     { --lm: url(/assets/img/clientes/bigidea.svg?v=10);     --ar: 375/84;  --lh: 30px; }
.l-bizlinks    { --lm: url(/assets/img/clientes/bizlinks.svg?v=10);    --ar: 347/96; }
.l-faro        { --lm: url(/assets/img/clientes/farocapital.svg?v=10); --ar: 358/72;  --lh: 30px; }
.l-tandem      { --lm: url(/assets/img/clientes/tandem-hands.svg?v=10);  --ar: 356/36;  --lh: 18px; }
.l-sanfernando { --lm: url(/assets/img/clientes/sanfernando.svg?v=10); --ar: 540/294; --lh: 60px; }
/* hover → brand teal, only on the "Medios de pago" group (per feedback) */
.client:hover .logo-mask { background-color: var(--accent); }

/* Bordered box wrapping each client group */
.client-group { position: relative; border: 1px solid color-mix(in srgb, var(--muted) 20%, var(--line-2)); border-radius: var(--r-lg); background: transparent; padding: 44px 30px 34px; margin-top: 16px; }
.client-group + .client-group { margin-top: 26px; }

/* Wrap: balance lines so prose never breaks mid-phrase regardless of viewport */
.hero h1, .h2, .hero-lead, .hero-stake, .sec-head p, .scope-note, .case h3, .promise li { text-wrap: balance; }
.hero-stake { max-width: 64ch; }

/* ---- refinement: body wrap + always-on rubros ---- */
/* "pretty" (not balance) on body text so lines break at natural points
   (e.g. after the colon) instead of forcing two equal halves. Headings keep balance. */
.hero-lead, .hero-stake, .sec-head p, .scope-note, .case h3, .step p, .promise li { text-wrap: pretty; }
/* Otros-sectores rubros always visible — hover-reveal removed (feedback) */

/* ============ Interior / legal pages (reshelled to new design) ============ */
.legal-page { padding-block: 56px 88px; }
.legal-page .container, .legal-page .container--narrow { width: 100%; max-width: 768px; margin-inline: auto; padding-inline: 28px; }
.legal-back { margin: 0 0 30px; font-size: 14px; }
.legal-back a { color: var(--muted); }
.legal-back a:hover { color: var(--accent); }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 12px; text-wrap: balance; }
.legal-meta { color: var(--faint); font-size: 13.5px; margin: 0 0 38px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-page h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 44px 0 14px; color: var(--text); }
.legal-page h3 { font-size: 16.5px; font-weight: 700; margin: 28px 0 8px; color: var(--text); }
.legal-page p, .legal-page li { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.legal-page p { margin: 0 0 16px; }
.legal-page ul, .legal-page ol { margin: 0 0 18px; padding-left: 22px; }
.legal-page li { margin-bottom: 8px; }
.legal-page li::marker { color: var(--accent); }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { color: var(--accent-ink); }
.legal-page a:hover { color: var(--accent-ink); }
.legal-page .btn { color: var(--cta-text); }
.legal-page .btn:hover { color: var(--cta-text); }
.legal-cta { margin-top: 10px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 14px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--muted); }
.legal-page th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.legal-page hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
@media (max-width: 640px) { .legal-page .container, .legal-page .container--narrow { padding-inline: 18px; } }

.hl { color: var(--accent); }

/* ============ Mensaje / 404 / gracias (centered card, nuevo diseño) ============ */
.thanks-wrap { min-height: 100vh; display: grid; place-items: center; padding: 48px 24px; }
.thanks-card { max-width: 540px; text-align: center; }
.thanks-brand { display: inline-flex; margin-bottom: 34px; }
.thanks-brand img { height: 34px; width: auto; }
.thanks-icon { width: 58px; height: 58px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.thanks-icon svg { width: 28px; height: 28px; }
.thanks-card h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.thanks-card p { color: var(--muted); font-size: 16px; line-height: 1.62; margin: 0 0 14px; text-wrap: pretty; }
.thanks-card p a { color: var(--accent-ink); }
.thanks-card strong { color: var(--text); font-weight: 600; }
.thanks-404-en { color: var(--faint); font-size: 14px; }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--text); opacity: 1; }
.btn--lg { padding: 14px 24px; font-size: 15.5px; }

/* ---- Credenciales: tamaños por cert + alineación inferior ---- */
.certs { align-items: center; }
@media (max-width: 560px) {
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .cert--xtra { display: none; }
  /* 2-col mobile order: CISA·CISM / CEH·CHFI / AWS·PRINCE2 / PCIP·ISO (CRISC oculto) */
  .cert:has(.cm-prince2) { order: 1; }
  .cert:has(.cm-pcip)    { order: 2; }
  .cert:has(.cm-iso)     { order: 3; }
}
/* ---- Nav superior: subrayado de la sección activa (scroll-spy) ---- */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.nav a.is-active::after { transform: scaleX(1); }

/* ---- Accessibility & utility (audit fixes) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.btn--primary { background: var(--accent); color: var(--cta-text); border-color: var(--accent); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
@media (max-width: 700px) { .legal-page .legal-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
@media (max-width: 560px) {
  .rs-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .rs-stack, .rs-stack tbody, .rs-stack tr, .rs-stack td { display: block; width: 100%; }
  .rs-stack tr { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px; }
  .rs-stack td { border: 0; padding: 12px 14px; }
  .rs-stack td + td { border-top: 1px solid var(--line); }
  .rs-stack td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--text); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
