﻿/* Grupo Tiento — estilos globales */

/* Tipografías servidas desde el propio sitio (v7). Archivos variables de Google Fonts,
   subconjunto latino; licencias en /assets/fonts/OFL-*.txt. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal; font-weight: 700 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/assets/fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fuentes de respaldo con métricas ajustadas a las de Plus Jakarta Sans y Source Sans 3,
   para que el cambio de fuente (font-display: swap) no mueva el diseño (CLS). */
@font-face {
  font-family: 'Plus Jakarta Sans Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 106.6%; ascent-override: 96%; descent-override: 20.5%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 93.6%; ascent-override: 109.2%; descent-override: 42.4%; line-gap-override: 0%;
}

:root {
  --navy: #14213d;
  --teal: #0f766e;
  --teal-soft: #d8f0ec;
  --paper: #f6f7fa;
  --card: #ffffff;
  --muted: #5b6478;
  --line: #dfe4ed;
  /* Acento de dolor y advertencia. Solo para chips de dolores, puntos ciegos y avisos. No usar en botones, títulos de sección ni enlaces. */
  --pain: #9d174d;
  --pain-soft: #fce7f3;
  --display: 'Plus Jakarta Sans', 'Plus Jakarta Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Source Sans 3', 'Source Sans 3 Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .04);
  --max: 1080px;
  --section-space: clamp(40px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin: 0 0 14px;
}
h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 14px; max-width: 65ch; }
ul, ol { margin: 0 0 14px; padding-left: 1.2em; max-width: 65ch; }
li { margin-bottom: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; color: #fff; }

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

/* Placeholders visibles */
.pendiente {
  display: inline-block;
  background: var(--pain-soft);
  color: var(--pain);
  border: 1px dashed var(--pain);
  border-radius: 6px;
  padding: 1px 8px;
  font-weight: 600;
  font-size: .9em;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.wordmark {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -.01em; color: var(--navy); text-decoration: none;
}
.wordmark span { color: var(--teal); }
.marca-registrada{font-family:var(--body);font-weight:400;font-size:.6em;vertical-align:super;line-height:0;margin-left:.1em;color:inherit}
.brand { display: flex; flex-direction: column; padding: 8px 0; }
.slogan { margin: 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
.footer-slogan { margin: 0 0 4px; font-family: var(--display); font-weight: 700; color: var(--navy); }
.wordmark:hover { color: var(--navy); }
/* max-width: none anula el tope de 65ch de las listas de texto: con él, el botón de WhatsApp se salía de la pantalla entre 961 y 1100 px. */
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; max-width: none; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav .nav-wa { margin-left: 6px; }
.nav .nav-wa .btn { padding: 9px 16px; font-size: 15px; color: #fff; }
/* El hover general de los enlaces del menú (fondo claro) no aplica al botón: mantiene su verde */
.nav .nav-wa .btn:hover { background: var(--teal); color: #fff; }
/* Escritorio (18/11/2026): redondo, solo el ícono de WhatsApp; el texto queda para lectores de pantalla */
.nav .nav-wa .btn svg { width: 24px; height: 24px; flex: none; }
@media (min-width: 961px) {
  .nav .nav-wa .btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .nav-wa-texto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.nav-toggle {
  display: none; font: inherit; font-weight: 600; background: transparent;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 12px; color: var(--navy); cursor: pointer;
}

/* Botón flotante de WhatsApp: solo en móvil */
.wa-float { display: none; }

@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: wrap; }
  /* Sin JS el menú queda visible debajo del logo; con JS se despliega con el botón. */
  .nav { flex-basis: 100%; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 0 0 14px; }
  .nav .nav-wa { margin: 8px 0 0; }
  .nav .nav-wa .btn svg { display: none; }
  .nav a[aria-current] { box-shadow: inset 3px 0 0 var(--teal); }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .nav-toggle { display: block; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); display: none; }
  .js .nav.open { display: block; }
  .js .nav ul { padding: 8px 12px 14px; }
  /* Redondo, solo ícono (18/11/2026), con el relieve del botón secundario */
  .wa-float {
    display: inline-flex; align-items: center; justify-content: center; position: fixed; right: 16px; bottom: 16px; z-index: 15;
    width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(20, 33, 61, .14), 0 4px 14px rgba(20, 33, 61, .18);
    transition: transform .15s, box-shadow .15s;
  }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-float:hover { transform: translateY(-1px); color: #fff; }
  .wa-float:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .20), 0 1px 2px rgba(20, 33, 61, .14); }
  .wa-float:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
  body { padding-bottom: 72px; }
}

/* Secciones */
main { display: block; }
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin-bottom: 8px;
}
.lead { font-size: 21px; color: var(--muted); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 64px 0 48px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.hero-media {
  min-height: 260px; border-radius: var(--radius); border: 1px dashed var(--line);
  background: var(--card); display: grid; place-items: center; padding: 20px;
  position: relative; overflow: hidden;
}
.hero-media::before {
  /* degradado sutil decorativo, sin texto encima */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--teal-soft));
}
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Botones */
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
/* Excepción de diseño aprobada el 18/11/2026: botones con relieve (solo botones).
   .btn = secundario (verde plano con relieve sutil); .btn-primary = CTA principal (3D con gradiente).
   Los dos tonos del gradiente (#2c867f y #0d6861) se usan solo en botones. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-family: var(--display); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 10px; border: 0;
  background: #0f766e; color: #fff; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(20, 33, 61, .14), 0 3px 8px rgba(20, 33, 61, .10);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .20); }
.btn:focus-visible { outline: 2px solid #14213d; outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, #2c867f 0%, #0f766e 55%, #0d6861 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -3px 0 rgba(0, 0, 0, .18),
              0 2px 3px rgba(20, 33, 61, .16), 0 6px 14px rgba(15, 118, 110, .30);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
/* La tarjeta entera es clickeable: al pasar sobre ella, su botón toma el hover del primario */
.btn-primary:hover, .servicio-card:hover .card-btn, .servicio-card:focus-within .card-btn {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -3px 0 rgba(0, 0, 0, .18),
              0 3px 4px rgba(20, 33, 61, .16), 0 10px 20px rgba(15, 118, 110, .34);
}
.btn-primary:active, .servicio-card .card-btn:active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #0d6861, #0f766e);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .25), 0 1px 2px rgba(20, 33, 61, .12);
}
/* Contorno: sin cambios visuales (el borde de 1,5 px ahora es propio y el relleno lo compensa) */
.btn.ghost { padding: 12.5px 22.5px; background: transparent; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn.ghost:hover, .btn.ghost:active, .btn:disabled { transform: none; }
.btn.ghost:active { box-shadow: none; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Tarjetas */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card.soft { background: var(--teal-soft); border-color: transparent; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.steps { counter-reset: paso; list-style: none; padding: 0; max-width: none; }
.steps li { margin: 0; border-top: 4px solid var(--teal); }
.steps .num {
  font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--teal); line-height: 1; margin-bottom: 10px; display: block;
}
.steps p { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0; }

/* ---------- Páginas de servicios (v3) ---------- */
.sv-hero .wrap { display: block; }
.sv-intro { max-width: 760px; }
.sv-intro > p { max-width: 65ch; }
.sv-bajada { color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.35; }
.sv-destacado {
  font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy);
  border-left: 4px solid var(--teal); padding: 4px 0 4px 16px; margin-top: 22px;
}

/* Migas */
.migas { margin-bottom: 18px; font-size: 15px; }
.migas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.migas li { margin: 0; }
.migas li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.migas li[aria-current] { color: var(--navy); font-weight: 600; }

/* Índice de servicios (chips) */
.chips { margin-top: 28px; }
.chips ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.chips li { margin: 0; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.3;
}
.chips a:hover { border-color: var(--teal); color: var(--teal); }
.chip-num { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 14px; }

/* Secciones con aire */
.sv-section { padding: var(--section-space) 0 0; }
.sv-servicios { padding-top: 32px; }
.sv-section:last-child { padding-bottom: 24px; }
@media (max-width: 720px) { .sv-section { padding-top: 40px; } .sv-servicios { padding-top: 16px; } }

/* Tarjeta de servicio */
.sv-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sv-grid { grid-template-columns: repeat(2, 1fr); } }
.sv-stack { display: grid; gap: 20px; }
.sv-card { scroll-margin-top: 96px; }
.sv-card > * { max-width: 65ch; }
/* Cabecera: número y título en la misma línea; el beneficio va como bajada con otra tipografía. */
.sv-card .sv-title {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; color: var(--navy);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid var(--teal-soft);
}
.sv-card .sv-title::before {
  /* El número sale del atributo data-num: se ve, pero no forma parte del texto del encabezado. */
  content: attr(data-num); flex: none;
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums;
}
.sv-benefit { font-family: var(--body); font-weight: 600; font-size: 19px; line-height: 1.45; color: var(--teal); }
@media (max-width: 480px) {
  .sv-card .sv-title { font-size: 21px; gap: 10px; }
  .sv-card .sv-title::before { font-size: 22px; }
}
.sv-label {
  font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 6px;
}
.sv-problem { background: var(--paper); border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.sv-problem .sv-label { color: var(--muted); }
.sv-problem p:last-child, .sv-solution p:last-child { margin-bottom: 0; }
.sv-solution { border-left: 4px solid var(--teal); padding: 4px 0 4px 16px; margin: 18px 0; }
.sv-solution .sv-label { color: var(--teal); }
.sv-recibis { background: var(--teal-soft); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.sv-recibis p { margin: 0; }
.sv-extra { margin-top: 18px; }
.sv-link { margin-top: 18px; }
.sv-link a { font-weight: 600; }
.sv-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }

/* Secuencia de tres pasos */
.flow { list-style: none; padding: 0; margin: 24px 0 0; max-width: none; display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); counter-reset: flujo; }
.flow-step {
  position: relative; margin: 0; counter-increment: flujo;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow);
}
.flow-step::before {
  content: counter(flujo); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff; font-family: var(--display); font-weight: 700; margin-bottom: 10px;
}
.flow-step p { margin: 0; }
.flow-step strong { font-family: var(--display); color: var(--navy); }
.flow-step.empresa { background: transparent; border: 2px dashed #8a93a6; box-shadow: none; }
.flow-step.empresa::before { background: transparent; color: var(--muted); border: 2px dashed #8a93a6; }
/* Flecha entre pasos (decorativa, en CSS) */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -30px; width: 20px; height: 20px;
  border-top: 3px solid var(--teal); border-right: 3px solid var(--teal);
  transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow-step:not(:last-child)::after { top: auto; right: auto; left: 50%; bottom: -28px; transform: translateX(-50%) rotate(135deg); }
}
.flow-note { margin-top: 24px; }

/* Preguntas frecuentes */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }

/* Cierre */
.cierre { background: var(--teal-soft); border-radius: var(--radius); padding: 36px 32px; }
.cierre h2 { margin-bottom: 10px; }
.cierre .btn { margin-top: 8px; }
.cierre-btns { margin-top: 0; }
.cierre .cierre-btns { margin-top: 8px; }
.cierre .cierre-btns .btn { margin-top: 0; }
@media (max-width: 480px) { .cierre-btns .btn { width: 100%; } }
@media (max-width: 480px) { .cierre { padding: 26px 20px; } }

.mv { border-top: 4px solid var(--teal); }

/* Artículos */
.legal h2 { font-size: 22px; margin: 28px 0 6px; }

/* Footer (v10): marca a la izquierda, contacto a la derecha y fila legal abajo */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 40px; color: var(--muted); font-size: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; max-width: none; }
.site-footer li { margin: 0; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; padding-top: 28px; padding-bottom: 28px; }
.site-footer .wordmark { display: inline-block; margin-bottom: 4px; }
.footer-contacto { font-style: normal; display: flex; flex-direction: column; align-items: flex-start; }
.footer-contacto p { margin: 0; }
.footer-dato { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; }
.footer-dato + .footer-nota { margin: 2px 0 0 24px; font-size: 14px; color: var(--muted); }
.footer-nota + .footer-dato { margin-top: 12px; }
.footer-dato a { font-weight: 600; }
.icono-chico { width: 16px; height: 16px; flex: none; color: var(--teal); }
.footer-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn.btn-chico { min-height: 44px; padding: 0 14px; font-size: 14px; gap: 6px; white-space: nowrap; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-legales { margin-top: 16px; font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; }
.footer-legal li { white-space: nowrap; }
.footer-legal li + li::before { content: "·"; margin: 0 10px; color: var(--muted); }
@media (max-width: 560px) {
  .footer-main { flex-direction: column; gap: 20px; }
}
@media (max-width: 359px) {
  .footer-legal { flex-direction: column; gap: 4px; }
  .footer-legal li + li::before { content: none; }
}

/* Animación de entrada */
.reveal { animation: entrar 300ms ease-out both; }
@keyframes entrar { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Test de madurez ---------- */
.test { max-width: 720px; margin: 0 auto; scroll-margin-top: 96px; }
.test .screen[hidden] { display: none; }
.progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0 0 10px; }
.progress > div { height: 100%; width: 0; background: var(--teal); transition: width .3s ease; }
.counter { font-size: 14px; color: var(--muted); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.opts { display: grid; gap: 10px; margin: 18px 0 6px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--navy); font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--teal); }
.opt[aria-checked="true"] { border-color: var(--teal); background: var(--teal-soft); }
.dot { flex: 0 0 18px; height: 18px; margin-top: 3px; border: 2px solid var(--muted); border-radius: 50%; }
.opt[aria-checked="true"] .dot { border-color: var(--teal); background: radial-gradient(circle, var(--teal) 45%, transparent 50%); }
.test .btnrow { justify-content: space-between; }
label.field { display: block; font-weight: 600; margin: 14px 0 6px; }
.test input[type="text"], .test input[type="email"], .test select {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--navy);
}
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 16px; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 15px; color: var(--muted); }
.score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.score .num { font-family: var(--display); font-size: 52px; font-weight: 800; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.level {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14px;
  padding: 5px 12px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); margin-bottom: 12px;
}
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 22px 0 6px; padding: 0; list-style: none; max-width: none; }
.scale li { margin: 0; text-align: center; font-size: 14px; color: var(--muted); padding: 8px 0 0; border-top: 4px solid var(--line); }
.scale li.on { color: var(--navy); font-weight: 700; border-top-color: var(--teal); }
.step-box { background: var(--paper); border-radius: 12px; padding: 16px 18px; margin: 18px 0 0; }
.step-box strong { font-family: var(--display); }
.cta-box { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 10px 10px 0; }
.cta-box p { margin-bottom: 10px; }
.saved { font-size: 15px; color: var(--muted); margin-top: 16px; }

@media (max-width: 480px) {
  .card { padding: 20px 16px; }
  .scale li { font-size: 12px; }
}

/* ---------- Inicio (v4) ---------- */
.home-sec { padding: var(--section-space) 0; }
.home-sec + .home-sec { padding-top: var(--section-space); }
.bg-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-sec h2 { margin-bottom: 14px; }
.home-intro { color: var(--muted); font-size: 19px; margin-bottom: 32px; }
.home-hero { padding-top: 64px; }
.home-hero-in { max-width: 760px; }
.home-hero h1 { font-size: clamp(30px, 4.6vw, 48px); }
.home-hero .lead { color: var(--navy); }
.home-hero p { max-width: 65ch; }
/* Botones del hero (v12): con estos textos no entran juntos en una línea, así que van apilados y con el mismo ancho (el del más largo). */
.home-btns { display: grid; grid-template-columns: 1fr; width: fit-content; max-width: 100%; gap: 12px; }
.home-btns .btn { min-width: 0; }
/* Uno al lado del otro cuando entran (18/11/2026); pueden salir del ancho del texto del hero */
@media (min-width: 840px) { .home-btns { grid-template-columns: repeat(2, max-content); max-width: none; } }
@media (max-width: 720px) {
  .home-sec, .home-sec + .home-sec { padding: 48px 0; }
  .home-hero { padding-top: 16px; padding-bottom: 32px; }
  .home-hero .eyebrow { margin-bottom: 4px; }
  .home-hero h1 { font-size: 27px; margin-bottom: 8px; }
  .home-hero .lead { font-size: 18px; }
  .home-hero p { font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
  .home-btns { width: 100%; gap: 8px; margin-top: 12px; }
  .home-btns .btn { width: 100%; padding: 12px 18px; }
}

/* Tarjetas de servicios: toda la tarjeta es clickeable con un solo enlace real */
.home-cards { align-items: stretch; }
.home-card { position: relative; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.home-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(20, 33, 61, .08); }
.home-card .icono { width: 40px; height: 40px; color: var(--teal); margin-bottom: 14px; }
.home-card h3 { font-size: 22px; }
.home-card p { color: var(--muted); }
.card-link { margin-top: auto; font-family: var(--display); font-weight: 700; color: var(--teal); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { text-decoration: underline; }
.home-card:focus-within { outline: 3px solid var(--teal); outline-offset: 2px; }
.card-link:focus-visible { outline: none; }

/* Tarjetas de servicios (v11): botón a todo el ancho, alineado abajo; toda la tarjeta es clickeable */
.servicio-card h3 { margin-bottom: 12px; }
.dolores { list-style: none; padding: 0; margin: 0 0 16px; max-width: none; display: flex; flex-wrap: wrap; gap: 8px; }
.dolores li { margin: 0; padding: 4px 12px; border-radius: 99px; background: var(--pain-soft); color: var(--pain); font-size: 15px; font-weight: 600; line-height: 1.35; }
.servicio-card .solucion { border-top: 1px solid #dfe4ed; padding-top: 14px; margin: 0 0 18px; color: var(--navy); font-size: 17px; line-height: 1.5; }
.card-btn { margin-top: auto; width: 100%; min-height: 44px; padding: 10px 18px; line-height: 1.3; text-align: center; white-space: normal; }
.card-btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.servicio-card:focus-within { outline: none; }
.servicio-card:hover, .servicio-card:focus-within { border-color: var(--teal); box-shadow: 0 2px 8px rgba(20, 33, 61, .06); }

/* "Cómo trabajamos" (v11): línea de tiempo con tres nodos */
/* Los nodos inactivos se atenúan al 50 % solo en borde y número: el fondo blanco sigue tapando la línea. */
.timeline { --nodo-tenue: rgba(15, 118, 110, .5); }
.timeline { list-style: none; margin: 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(3, 1fr); }
.tl-paso { position: relative; margin: 0; padding: 0 16px; text-align: center; }
.tl-paso::before { content: ""; position: absolute; top: 19px; left: 50%; width: 100%; height: 2px; background: #dfe4ed; transition: background-color .2s, opacity .2s; }
.tl-paso:last-child::before { content: none; }
.tl-nodo {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); background: var(--card);
  color: var(--teal); font-family: var(--display); font-weight: 800; font-size: 17px; margin-bottom: 14px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tl-paso h3 { font-size: 20px; margin-bottom: 8px; transition: color .2s; }
.tl-paso p { color: var(--muted); margin: 0 auto; }
.tl-cierre { margin: 28px 0 0; font-size: 16px; color: var(--muted); }
.tl-cierre a { font-weight: 600; }
/* Estado activo: .activo (scroll en móvil) o :hover (escritorio) */
.tl-paso.activo .tl-nodo { background: var(--teal); color: #fff; }
.tl-paso.activo h3 { color: var(--teal); }
.tl-paso:has(~ .tl-paso.activo)::before { background: var(--teal); }
.timeline:has(.activo) .tl-paso:not(.activo) .tl-nodo { color: var(--nodo-tenue); border-color: var(--nodo-tenue); }
.timeline:has(.activo) .tl-paso.activo::before, .timeline:has(.activo) .tl-paso.activo ~ .tl-paso::before { opacity: .5; }
@media (hover: hover) {
  .tl-paso:hover .tl-nodo { background: var(--teal); color: #fff; }
  .tl-paso:hover h3 { color: var(--teal); }
  .tl-paso:has(~ .tl-paso:hover)::before { background: var(--teal); }
  .timeline:has(.tl-paso:hover) .tl-paso:not(:hover) .tl-nodo { color: var(--nodo-tenue); border-color: var(--nodo-tenue); }
  .timeline:has(.tl-paso:hover) .tl-paso:hover::before, .timeline:has(.tl-paso:hover) .tl-paso:hover ~ .tl-paso::before { opacity: .5; }
}
/* Móvil: línea vertical a la izquierda, nodos sobre ella y texto a la derecha */
@media (max-width: 899px) {
  .timeline { grid-template-columns: 1fr; }
  .tl-paso { text-align: left; padding: 0 0 24px 56px; }
  .tl-paso:last-child { padding-bottom: 0; }
  .tl-paso::before { top: 20px; left: 19px; width: 2px; height: 100%; }
  .tl-nodo { position: absolute; left: 0; top: 0; margin: 0; }
  .tl-paso h3 { padding-top: 8px; }
}

/* Herramientas */
.home-tool { display: flex; flex-direction: column; }
.home-tool .badge, .badge {
  align-self: flex-start; display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); margin-bottom: 14px;
}
.home-tool h3 { font-size: 22px; }
.home-tool p { color: var(--muted); }
.home-tool-cta { margin-top: auto; padding-top: 8px; }

/* CTA final */
.home-cta { background: var(--teal-soft); }
.home-cta p { margin-bottom: 22px; }
.home-cta + * { margin-top: 0; }
body[data-page="inicio"] .site-footer { margin-top: 0; }

/* ---------- Herramientas: listas y textos de presentación ---------- */
.tools-intro { max-width: 760px; }
.tools-intro h3 { font-size: 20px; margin: 28px 0 12px; }
.tools-list { padding-left: 1.2em; }
.tools-list li { margin-bottom: 8px; }
.tools-intro .sv-note { margin-top: 18px; }
body[data-page="herramientas"] .site-footer { margin-top: 0; }
.lid .migas { margin-bottom: 14px; }

/* ---------- Test de liderazgo (mismo aspecto que el artefacto de referencia) ---------- */
.lid { max-width: 680px; padding-top: 32px; padding-bottom: 24px; }
.lid h1 { font-size: clamp(28px, 5vw, 38px); margin-bottom: 14px; font-weight: 800; }
.lid h2 { font-size: 24px; margin-bottom: 10px; font-weight: 700; }
.lid h3 { font-size: 19px; margin-bottom: 12px; font-weight: 700; }
.lid .card { padding: 26px 24px; }
.lid .btnrow { justify-content: space-between; margin-top: 22px; }
.lid .btn { line-height: 1.3; text-align: center; padding: 12px 22px; }
.lid .note { font-size: 15px; color: var(--muted); }
.lid .screen[hidden] { display: none !important; }
.lid .opt { min-width: 0; }
.lid-result { display: grid; gap: 16px; }
.lid .level { margin-bottom: 12px; }
.lid .rname { font-size: clamp(28px, 5vw, 38px); margin-bottom: 14px; font-weight: 800; }
.lid .orig { font-size: 15px; color: var(--muted); margin: -4px 0 14px; }
.lid .rtag { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; margin-bottom: 12px; max-width: 34ch; }
.lid .rule { font-family: var(--display); font-weight: 700; color: var(--teal); margin: 4px 0 0; }
.lid .scores { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.lid .score { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.lid .score .num { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums; }
.lid .score .of { color: var(--muted); font-size: 15px; line-height: 1.3; }

.lid .gridbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; max-width: 320px; margin: 6px auto 0; width: 100%; }
.lid .y-title { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.lid .x-title { grid-column: 2; text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.lid .grid9 { position: relative; display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); }
.lid .grid9 i { border: 1px solid rgba(20, 33, 61, .06); }
.lid .zone { position: absolute; font-size: 11px; font-weight: 600; line-height: 1.2; color: var(--muted); max-width: 36%; pointer-events: none; }
.lid .zone.on { color: var(--teal); }
.lid .pin { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(15, 118, 110, .2); transform: translate(-50%, 50%); border: 2px solid #fff; }
.lid .ticks-x { grid-column: 2; display: grid; grid-template-columns: repeat(9, 1fr); color: var(--muted); font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }

.lid .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.lid .two ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: none; }
.lid .two li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; margin: 0; }
.lid .two li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.lid .two .good li svg, .lid .two .good h3 { color: var(--teal); }
.lid .two .bad li svg, .lid .two .bad h3 { color: var(--pain); }

.lid .actions { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; max-width: none; }
.lid .actions li { margin: 0; }
.lid .actions li button { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.lid .actions li button:hover { border-color: var(--teal); }
.lid .chk { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--teal); display: grid; place-items: center; margin-top: 2px; background: #fff; }
.lid .chk svg { width: 14px; height: 14px; opacity: 0; stroke: #fff; }
.lid .actions li.done button { background: var(--teal-soft); border-color: var(--teal); }
.lid .actions li.done .chk { background: var(--teal); }
.lid .actions li.done .chk svg { opacity: 1; }
.lid .actions .body { display: grid; gap: 6px; min-width: 0; }
.lid .actions .t { font-weight: 600; font-size: 17px; line-height: 1.4; }
.lid .actions li.done .t { color: var(--muted); text-decoration: line-through; }
.lid .actions .tgt { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 600; color: var(--pain); line-height: 1.35; }
.lid .actions .tgt svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.lid .actions .why { font-size: 15px; color: var(--muted); line-height: 1.45; }
.lid .hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* Compartir y copiar (los dos tests) */
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.compartir { margin-top: 22px; }
.compartir .share-links { margin-top: 10px; }
.msg { font-size: 15px; min-height: 1.4em; margin: 10px 0 0; }
.msg.ok { color: var(--teal); }
.msg.err { color: var(--pain); }
.msg:empty { display: none; }

.lid .lid-cta { padding: 22px; border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 0 14px 14px 0; }
.lid .lid-cta h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin-bottom: 10px; max-width: 24ch; }
.lid .lid-cta p { margin-bottom: 16px; }
@media (max-width: 560px) {
  .lid .card { padding: 20px 16px; }
  .lid .two { grid-template-columns: minmax(0, 1fr); }
  .lid .btn { width: 100%; }
  .lid .btnrow .btn { width: auto; flex: 1 1 140px; }
  .lid .zone { font-size: 10px; }
  .lid .lid-cta { padding: 18px 16px; }
}

/* ---------- Herramientas (v6): hub y páginas de test ---------- */
/* Indicadores: lista real, ícono de línea en teal y texto en navy */
.indicadores { list-style: none; padding: 0; margin: 6px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.indicadores li {
  margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--card);
  color: var(--navy); font-weight: 600; font-size: 15px; line-height: 1.2;
}
.indicadores .icono { width: 18px; height: 18px; flex: none; color: var(--teal); }
.indicadores .indicador-gratis { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal); font-family: var(--display); font-weight: 700; }
/* En el hub, indicadores y botón quedan al pie de la tarjeta: alineados entre las dos tarjetas */
.home-tool .indicadores { margin: auto 0 18px; padding-top: 4px; }
.home-tool .indicadores + .home-tool-cta { margin-top: 0; padding-top: 0; }

/* Newsletter: pastilla "Próximamente" al lado del H2 */
.nl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; }
.home-sec .nl-head h2 { margin: 0; }
.nl-head .badge { margin: 0; }

/* Páginas de test: presentación y modo test */
.test-page, .test-page.lid { max-width: 720px; padding-top: 32px; padding-bottom: 56px; }
.test-page h1 { font-size: clamp(28px, 4.6vw, 42px); margin-bottom: 12px; font-weight: 800; }
.test-page h1:focus { outline: none; }
.test-page .lead { color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.35; margin-bottom: 18px; }
.test-page .tp-presentacion h2 { font-size: 24px; margin: 40px 0 12px; }
.test-page .tp-presentacion .sv-note { margin-top: 28px; }
.test-page .tp-iniciar { justify-content: flex-start; margin-top: 8px; }
.test-page .tp-iniciar noscript p { margin: 0; }
html:not(.js) [data-iniciar] { display: none; }
.tp-volver { margin: 0 0 16px; font-weight: 600; }
.tp-volver a { text-decoration: none; }
.tp-volver a:hover { text-decoration: underline; }
.test-page .test { max-width: none; }
.servicio-rel { margin-top: 24px; }
.servicio-rel h3 { font-size: 20px; }
.lid .servicio-rel { margin-top: 0; }
@media (max-width: 560px) {
  .test-page { padding-top: 16px; }
  .test-page .lead { font-size: 19px; }
  .test-page .tp-iniciar .btn { width: 100%; }
}

/* Páginas legales (v7): lectura compacta */
.legal-wrap { max-width: calc(70ch + 48px); padding-top: 20px; padding-bottom: 32px; }
.legal-selector ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; gap: 8px; max-width: none; }
.legal-selector li { margin: 0; }
.legal-selector a {
  display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none;
}
.legal-selector a:hover { border-color: var(--teal); color: var(--teal); }
.legal-selector a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.legal-doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  font-size: 16px; line-height: 1.5;
}
.legal-doc h1 { font-size: 28px; margin: 0 0 4px; }
.legal-doc .legal-fecha { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.legal-doc h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 8px; scroll-margin-top: 96px; letter-spacing: 0; }
.legal-doc h3 { font-size: 16px; margin: 16px 0 6px; letter-spacing: 0; }
.legal-doc p { margin: 0 0 10px; max-width: none; }
.legal-doc ul { padding-left: 1.1em; margin: 0 0 10px; max-width: none; }
.legal-doc li { margin-bottom: 4px; }
.legal-doc a { overflow-wrap: anywhere; }
.legal-indice { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 8px; }
.legal-indice summary { cursor: pointer; font-family: var(--display); font-weight: 700; color: var(--navy); }
.legal-indice ol { list-style: none; padding: 0; margin: 8px 0 4px; }
.legal-indice li { margin-bottom: 2px; }
.legal-indice a { text-decoration: none; }
.legal-indice a:hover { text-decoration: underline; }
.legal-arriba { margin: 24px 0 0 !important; font-size: 14px; }
@media (max-width: 560px) {
  .legal-wrap { padding-top: 14px; }
  .legal-doc { padding: 16px; }
  .legal-doc h1 { font-size: 22px; }
}
@media print {
  .site-header, .site-footer, .legal-selector, .legal-indice, .legal-arriba, .wa-float, .skip { display: none !important; }
  body { background: #fff; }
  .legal-doc { border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* Botones sin desplazamiento (18/11/2026) */
  .btn, .btn:hover, .btn:active, .btn-primary:hover, .btn-primary:active,
  .servicio-card:hover .card-btn, .servicio-card:focus-within .card-btn, .servicio-card .card-btn:active,
  .wa-float, .wa-float:hover, .wa-float:active { transform: none; transition: none; }
}
