/* ============================================================
   MB Soluciones — hoja de estilos
   Dirección: "Global Advisory" — el lenguaje visual de las grandes
   consultoras (Deloitte, KPMG, EY): héroe oscuro a sangre completa,
   tipografía condensada en mayúsculas para navegación/eyebrows,
   botones tipo píldora, barra de acento sólida como separador de
   sección, tarjetas claras con canto de color. Paleta tomada del
   logotipo real (negro casi puro + azul). Sin frameworks, sin
   fuentes de terceros: todo autoalojado en /assets/fonts.
   ============================================================ */

/* ---------- Tipografías autoalojadas ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/BarlowCondensed-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/PublicSans-400-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/PublicSans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/PublicSans-400-latin-ext.woff2') format('woff2-variations'),
       url('/assets/fonts/PublicSans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/JetBrainsMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens (paleta tomada del logotipo real) ---------- */
:root {
  --ink: #101114;       /* negro del logotipo */
  --ink-2: #191b20;
  --navy: #0a1730;      /* azul-negro profundo de fondo, no negro puro: da aire "corporate" */
  --navy-2: #0e2049;
  --surface: #0c1226;   /* secciones oscuras */
  --surface-2: #101a38;

  --paper: #f2f4f7;     /* secciones claras, gris frío como Deloitte/KPMG */
  --paper-2: #e8ebf1;
  --card: #ffffff;

  --line: #232a3d;      /* líneas sobre fondo oscuro */
  --line-light: #dde1ea;/* líneas sobre fondo claro */

  --ink-strong: #10131c;
  --muted: #9aa4bd;     /* texto secundario sobre oscuro */
  --muted-ink: #5b6479; /* texto secundario sobre claro */

  --blue: #0d5fd6;      /* azul principal, muestreado del logotipo */
  --blue-2: #1f7aff;
  --blue-deep: #072155;
  --blue-wash: #e8f0fe;

  --ok: #1f9d63;
  --err: #e04b3f;

  --radius: 4px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(10,15,30,.06), 0 20px 44px -24px rgba(10,15,30,.35);
  --shadow-lift: 0 28px 60px -22px rgba(4,8,20,.55);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --wrap: 1220px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-strong);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink-strong); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

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

.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--blue); color: #fff; padding: 12px 20px;
  z-index: 200; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2.5px solid var(--blue-2); outline-offset: 3px; }

.h2 {
  font-family: var(--display); font-weight: 700; text-transform: none;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--ink-strong); letter-spacing: -.005em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin: 0;
}
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--blue); display: inline-block; }

/* Miga de pan visible en guías y páginas de caso — mismos 2 niveles que el
   BreadcrumbList del JSON-LD (Inicio → página actual), sin inventar un nivel
   intermedio "Guías"/"Casos" que no tiene página propia. */
.breadcrumb { font-size: 13px; color: #8b96b3; margin: 0 0 22px; }
.breadcrumb a { color: var(--blue-2); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 6px; }
.lede { color: var(--muted-ink); font-size: 17.5px; line-height: 1.65; max-width: 62ch; }

/* ---------- Botones (píldora, como en KPMG/Deloitte) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: var(--radius-pill); font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap; font-family: var(--sans);
}
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px -14px rgba(13,95,214,.65); }
.btn--primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn--bright { background: var(--blue-2); color: #fff; box-shadow: 0 14px 28px -14px rgba(31,122,255,.6); }
.btn--bright:hover { background: var(--blue); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink-strong); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--ink-strong); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); transform: translateY(-1px); }
.btn--wa { background: #fff; color: var(--ink-strong); border: 1.5px solid var(--line-light); }
.btn--wa:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 10px 22px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,23,48,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 20px 34px -28px rgba(0,0,0,.7); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-flex; align-items: center; background: #fff; border-radius: 6px;
  padding: 6px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.brand__mark img { height: 22px; width: auto; display: block; }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: transparent; position: relative;
}
.nav__toggle span, .nav__toggle::before, .nav__toggle::after {
  content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span { top: 20px; }
.nav__toggle::before { top: 14px; }
.nav__toggle::after { top: 26px; }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }
.nav__toggle[aria-expanded="true"]::before { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"]::after { top: 20px; transform: rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__link {
  font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: #cdd5e6; position: relative; padding: 4px 0;
}
.nav__link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--blue-2); transition: right .25s var(--ease); }
.nav__link:hover { color: #fff; }
.nav__link:hover::after, .nav__link:focus-visible::after { right: 0; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line); padding: 10px 28px 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 15px 0; border-bottom: 1px solid var(--line); color: #fff; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Barra de acento (separador de sección, como el verde de Deloitte) ---------- */
.divider { height: 7px; background: linear-gradient(90deg, var(--blue-deep), var(--blue) 45%, var(--blue-2)); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 80px 0 96px;
  background: radial-gradient(1100px 620px at 82% -10%, rgba(31,122,255,.35), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(13,95,214,.28), transparent 60%),
              linear-gradient(180deg, var(--navy), var(--surface) 70%);
  color: #fff;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1000px 600px at 70% 0%, #000, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; position: relative; }
.hero__tag {
  font-family: var(--display); font-size: 14.5px; letter-spacing: .1em; color: var(--blue-2); text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; margin: 0 0 26px; font-weight: 700;
}
.hero__tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); display: inline-block; box-shadow: 0 0 0 5px rgba(31,122,255,.22); }
.hero__title {
  font-family: var(--display); font-weight: 700; font-size: clamp(38px, 4.8vw, 60px); line-height: 1.04; letter-spacing: -.01em;
  color: #fff; margin-bottom: 26px;
}
.hero__lede { font-size: 18.5px; color: #c3cbdc; line-height: 1.65; max-width: 54ch; margin-bottom: 32px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero__note { font-size: 13.5px; color: #8b96b3; }

.answer {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin-bottom: 30px;
}
.answer h2 { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.answer p { color: #c3cbdc; font-size: 15.5px; line-height: 1.65; margin: 0; }

.metrics { display: flex; gap: 38px; flex-wrap: wrap; }
.metric__n { font-family: var(--display); font-size: 32px; font-weight: 700; color: #fff; line-height: 1; }
.metric__l { font-size: 12.5px; color: var(--muted); max-width: 15ch; margin-top: 6px; text-transform: uppercase; letter-spacing: .03em; }
.hero__note[style] { color: #7c88a8 !important; font-size: 12.5px !important; max-width: 60ch; }

.hero__grid--single { grid-template-columns: 1fr; }
.hero__grid--single > div { max-width: 720px; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 92px 0; position: relative; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--surface); color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Dolores ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.pain { background: var(--card); border-radius: var(--radius); padding: 30px 26px; border-top: 3px solid var(--blue); box-shadow: var(--shadow-card); }
.pain h3 { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ink-strong); margin-bottom: 10px; letter-spacing: -.003em; }
.pain p { color: var(--muted-ink); font-size: 14.8px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 46px; }
.service {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 36px 34px; position: relative; border-left: 4px solid var(--blue);
}
.service__n { font-family: var(--display); font-size: 34px; color: var(--blue-wash); -webkit-text-stroke: 1.5px var(--blue); color: transparent; font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; line-height: 1; }
.service h3 { font-family: var(--display); font-weight: 700; font-size: 25px; margin-bottom: 14px; color: var(--ink-strong); }
.service p { color: var(--muted-ink); font-size: 15px; line-height: 1.65; }
.services__foot {
  margin-top: 36px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  padding-top: 28px; border-top: 1px solid var(--line-light);
}
.services__foot p { margin: 0; color: var(--muted-ink); font-size: 14px; max-width: 62ch; }
.link-mono { font-family: var(--display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--blue); white-space: nowrap; }
.link-mono span { transition: transform .2s var(--ease); display: inline-block; }
.link-mono:hover span { transform: translateX(4px); }
@media (max-width: 780px) { .services { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.process__grid { max-width: 780px; }
.steps { margin-top: 44px; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 74px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line-light); }
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step__day { font-family: var(--display); font-size: 40px; color: var(--blue); font-weight: 700; line-height: 1; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 8px; color: var(--ink-strong); }
.step p { color: var(--muted-ink); font-size: 15px; margin: 0; line-height: 1.6; }

/* ---------- Casos ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.case {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 28px 26px; border-top: 3px solid var(--blue); display: flex; flex-direction: column;
}
.case__logo { height: 40px; display: flex; align-items: center; margin-bottom: 18px; }
.case__logo img { max-height: 100%; max-width: 150px; width: auto; object-fit: contain; }
.case__sector { font-family: var(--display); font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--blue); margin-bottom: 10px; }
.case__desc { color: var(--muted-ink); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; flex-grow: 1; }
.case__tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.case__tech li {
  font-family: var(--mono); font-size: 11.5px; color: var(--navy); background: var(--blue-wash);
  padding: 5px 10px; border-radius: var(--radius);
}
.case__link { display: inline-block; margin-top: 18px; }
@media (max-width: 980px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Diagnóstico ---------- */
.fact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.fact--single { grid-template-columns: 1fr; max-width: 640px; }
.fact__copy h3 { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink-strong); margin-bottom: 14px; }
.precio__lista { display: flex; flex-direction: column; gap: 11px; }
.precio__lista li { position: relative; padding-left: 26px; font-size: 14.8px; color: var(--muted-ink); line-height: 1.55; }
.precio__lista li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.precio__lista--no li::before { content: '✕'; color: #a8b0c2; }
@media (max-width: 880px) { .fact { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--line-light); }
.faq details { border-bottom: 1px solid var(--line-light); }
.faq summary {
  padding: 24px 4px; font-weight: 700; font-size: 18px; color: var(--ink-strong); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--blue); flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 4px 28px; color: var(--muted-ink); font-size: 15px; line-height: 1.68; max-width: 72ch; }
.faq__body a { text-decoration: underline; color: var(--blue); }

/* ---------- Contacto ---------- */
.contact { padding-bottom: 112px; text-align: center; }
.contact__title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 38px); color: var(--ink-strong); max-width: 22ch; margin: 0 auto 16px; }
.contact__lede { color: var(--muted-ink); font-size: 16px; max-width: 60ch; margin: 0 auto 44px; }

.contact__card {
  text-align: left; max-width: 820px; margin: 0 auto; background: var(--card);
  border-radius: 12px; box-shadow: var(--shadow-card); padding: 48px 52px; position: relative; overflow: hidden;
}
.contact__card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 50%, var(--blue-2));
}

#contactForm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
#contactForm label:not(.check) { font-size: 13.5px; font-weight: 600; color: var(--ink-strong); margin-bottom: 8px; }
#contactForm input:not([type="checkbox"]), #contactForm select, #contactForm textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-light); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-strong); font-size: 15px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
#contactForm input:focus, #contactForm select:focus, #contactForm textarea:focus {
  border-color: var(--blue); background: var(--card); outline: none; box-shadow: 0 0 0 3px var(--blue-wash);
}
#contactForm input.is-invalid, #contactForm select.is-invalid, #contactForm textarea.is-invalid { border-color: var(--err); }
#contactForm textarea { resize: vertical; min-height: 96px; }
#contactForm select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%235b6479' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.8px; color: var(--muted-ink); line-height: 1.5; cursor: pointer; margin-bottom: 12px; }
.check:last-child { margin-bottom: 0; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.check a { text-decoration: underline; }

#formStatus { font-size: 14px; margin-top: 16px; }
#formStatus:not(:empty) { padding: 12px 16px; border-radius: var(--radius); background: var(--blue-wash); color: var(--navy); }

@media (max-width: 640px) {
  .contact__card { padding: 32px 24px; }
  #contactForm { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff;
  padding: 15px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--blue-2); }
.wa-float__txt { font-family: var(--display); font-size: 14.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 560px) { .wa-float__txt { display: none; } .wa-float { padding: 15px; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #cdd5e6; padding: 60px 0 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer .brand { margin-bottom: 16px; }
.footer p { color: #9aa4bd; font-size: 13.8px; max-width: 44ch; }
.footer nav { display: flex; flex-direction: column; gap: 11px; }
.footer nav h3 { font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #7986a6; margin-bottom: 4px; font-weight: 700; }
.footer nav a { font-size: 14.5px; color: #d3daea; font-family: var(--display); font-weight: 600; letter-spacing: .01em; }
.footer nav a:hover { color: var(--blue-2); }
.footer__bottom { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: #6f7b9b; }

/* ---------- Legales (aviso-legal / privacidad / cookies) ---------- */
.legal { padding: 60px 28px 100px; max-width: 760px; }
.legal__back { display: inline-block; margin-bottom: 24px; color: var(--blue); font-size: 14px; font-weight: 600; }
.legal h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }
.legal__meta { color: #8991a3; font-size: 13.5px; margin-bottom: 40px; }
.legal h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 40px 0 14px; color: var(--ink-strong); }
.legal p, .legal li { color: var(--muted-ink); font-size: 15px; line-height: 1.7; }
.legal ul { margin: 12px 0; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal li::before { content: '—'; position: absolute; left: 0; color: #a8b0c2; }
/* Chips de tecnología dentro de una página de caso (.legal): no son una
   lista con guion, son etiquetas — anula el bullet y el padding heredados. */
.legal .case__tech { list-style: none; padding: 0; margin: 16px 0 24px; }
.legal .case__tech li { padding-left: 0; margin-bottom: 0; }
.legal .case__tech li::before { content: none; }
.legal table { margin: 16px 0 24px; border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-light); font-size: 14px; }
.legal th { background: var(--paper-2); color: var(--muted-ink); font-weight: 700; }
/* Solo las tablas clave/valor (Titular · NIF · Domicilio...) fijan el ancho
   de la primera columna. Las tablas de datos (varias th por fila, ej. la
   tabla de tratamientos de privacidad.html) deben repartir el ancho según
   su contenido, o con 5 columnas a 200px cada una se salen de cualquier
   móvil (bug real, detectado por QA). */
.legal table.kv th { width: 200px; }
.legal tr:last-child th, .legal tr:last-child td { border-bottom: 0; }
@media (max-width: 680px) {
  .legal table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
}
.legal__note { background: var(--blue-wash); border-left: 3px solid var(--blue); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 14.5px; color: var(--navy); }
.legal a { color: var(--blue); text-decoration: underline; }

/* Header/footer de las páginas legales viven en fondo claro: el logo en
   chip blanco necesita un contorno sutil para no fundirse con el body. */
.legal ~ .footer .brand__mark, body:has(.legal) .header .brand__mark { box-shadow: 0 0 0 1px var(--line-light), 0 2px 10px rgba(0,0,0,.08); }

/* ---------- Franja de confianza: logos de clientes bajo el hero (2026-09-08) ----------
   Los PNG tienen fondo blanco opaco: mix-blend-mode multiply lo funde con el
   fondo claro sin tener que editar los ficheros. Gris por defecto, color al pasar. */
.trust { background: var(--paper); border-bottom: 1px solid var(--line-light); padding: 26px 0; }
.trust__inner { display: flex; align-items: center; justify-content: center; gap: 18px 44px; flex-wrap: wrap; }
.trust__label { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-ink); font-weight: 700; margin: 0; white-space: nowrap; }
.trust__list { display: flex; align-items: center; justify-content: center; gap: 18px 38px; flex-wrap: wrap; }
.trust__list a { display: inline-flex; align-items: center; }
.trust__list img { height: 32px; width: auto; max-width: 132px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .72; transition: filter .25s var(--ease), opacity .25s var(--ease); }
.trust__list a:hover img, .trust__list a:focus-visible img { filter: none; opacity: 1; }
@media (max-width: 640px) { .trust__list img { height: 24px; max-width: 100px; } .trust__list { gap: 14px 22px; } }

/* ---------- Alternativas al formulario y letra pequeña del botón (2026-09-08) ---------- */
.contact__fine { font-size: 13px; color: var(--muted-ink); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.contact__alt { max-width: 820px; margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 12px 16px; flex-wrap: wrap; color: var(--muted-ink); font-size: 14.5px; }
.contact__alt .btn { gap: 8px; }
.contact__alt svg { width: 18px; height: 18px; }

/* ---------- Índice de guías (2026-09-08) ---------- */
.pain--link { display: block; color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pain--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pain--link .link-mono { display: inline-block; margin-top: 14px; }

/* Botones con texto largo en pantallas estrechas: mejor dos líneas que scroll horizontal */
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.3; } }
/* Logos cuadrados en la franja de confianza: a la misma altura que los horizontales se ven minúsculos */
.trust__list img.trust__logo--square { height: 46px; }
@media (max-width: 640px) { .trust__list img.trust__logo--square { height: 34px; } }
