/* ============================================================
   QUANTIX — Hoja de estilos principal
   Web corporativa estática (HTML5 + CSS3 + JS)
   Compatible con alojamiento estático en IONOS
   ============================================================
   ÍNDICE
   00. Tipografías autoalojadas (@font-face)
   01. Variables de diseño
   02. Reset y base
   03. Utilidades y layout
   04. Botones
   05. Cabecera y navegación
   06. Hero
   07. Franja de experiencia
   08. Doble entrada (empresas / gestorías)
   09. Problemas que resolvemos
   10. Servicios
   11. Recomendador interactivo
   12. Proceso
   13. Simulación del expediente
   14. Tipos de financiación
   15. Seguridad documental
   16. Preguntas frecuentes
   17. CTA final + formulario
   18. Footer
   19. Elementos flotantes (WhatsApp, volver arriba)
   20. (retirado: no hay banner de cookies)
   21. Animaciones de aparición
   22. Accesibilidad y reduced motion
   23. Responsive
   24. Páginas interiores (hero, breadcrumbs y componentes)
   25. Contacto, páginas legales y 404
   26. Pre-diagnóstico (herramienta con resultado parcial)
   ============================================================ */

/* ------------------------------------------------------------
   00. TIPOGRAFÍAS AUTOALOJADAS
   Inter y Manrope se sirven desde /assets/fonts (sin CDN de
   Google Fonts): evita transferir la IP del visitante a
   terceros (RGPD) y elimina peticiones externas bloqueantes.
   Ambas son fuentes variables: un solo archivo cubre todos los
   pesos utilizados. Licencias OFL incluidas en /assets/fonts.
   ------------------------------------------------------------ */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-var.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------
   01. VARIABLES DE DISEÑO
   ------------------------------------------------------------ */
:root {
  /* Colores de marca — paleta QUANTIX v1.0
     Los nombres de variable se mantienen (navy, teal...) para no romper
     las 3.000 referencias del resto de la hoja; lo que cambia es el valor.
     Equivalencia con el manual de marca en cada comentario. */
  --c-navy-900: #080C12;   /* Panel · fondo oscuro obligatorio de marca */
  --c-navy-800: #0E141C;   /* Grafito intermedio (derivado del panel) */
  --c-navy-700: #1B2733;   /* Grafito azulado: enlaces y superficies medias */
  --c-green: #1FC77B;      /* Verde Quantix · color de marca */
  --c-green-dark: #14A362; /* Hover del verde (derivado) */
  --c-green-text: #0A6E43; /* Verde texto · ÚNICO verde válido sobre fondo claro (5,99:1) */
  --c-green-on: #062B1B;   /* Texto sobre botón verde (regla del manual) */
  --c-teal: #2BE894;       /* Verde luz · acento sobre fondo oscuro */
  --c-white: #F7F9FB;      /* Papel */
  --c-grey: #E4E9EE;       /* Gris 200 */
  --c-ink: #0A0E14;        /* Tinta */
  --c-muted: #38424E;      /* Gris 700 · texto secundario */
  --c-copper: #B98A5A;     /* Ámbar del semáforo — color funcional, fuera de paleta */
  --c-line: rgba(10, 14, 20, 0.10);
  --c-line-dark: rgba(247, 249, 251, 0.14);
  --c-text-invert: #F7F9FB;
  --c-text-invert-muted: rgba(247, 249, 251, 0.72);

  /* Tipografías */
  --f-heading: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  /* Radios */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Sombras */
  --sh-sm: 0 2px 10px rgba(8, 12, 18, 0.06);
  --sh-md: 0 10px 30px rgba(8, 12, 18, 0.10);
  --sh-lg: 0 24px 60px rgba(8, 12, 18, 0.16);

  /* Transiciones */
  --t-fast: 160ms ease;
  --t-med: 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-slow: 600ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout */
  --w-max: 1180px;
  --header-h: 76px;
}

/* ------------------------------------------------------------
   02. RESET Y BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink);
  background-color: var(--c-white);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--c-navy-700);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--c-green-text);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
}

h1, h2, h3, h4 {
  font-family: var(--f-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--c-ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--c-muted); }

strong { color: inherit; }

/* Focus visible accesible */
:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--c-teal);
  color: var(--c-navy-900);
}

/* Enlace para saltar al contenido */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--c-navy-900);
  color: var(--c-white);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: 12px;
  color: var(--c-white);
}

/* ------------------------------------------------------------
   03. UTILIDADES Y LAYOUT
   ------------------------------------------------------------ */
.container {
  width: min(100% - 2.5rem, var(--w-max));
  margin-inline: auto;
}

.section {
  padding-block: var(--sp-9);
}

.section--tight { padding-block: var(--sp-8); }

.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 199, 123, 0.12), transparent 60%),
    linear-gradient(180deg, var(--c-navy-900), var(--c-navy-800));
  color: var(--c-text-invert);
}

.section--dark h2,
.section--dark h3 {
  color: var(--c-text-invert);
}

.section--dark p {
  color: var(--c-text-invert-muted);
}

/* Enlaces dentro de texto sobre fondo oscuro: legibles y reconocibles */
.section--dark p a:not(.btn) {
  color: var(--c-white);
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-underline-offset: 3px;
}
.section--dark p a:not(.btn):hover {
  color: var(--c-green);
}

.section--grey { background: var(--c-grey); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-green-text);
  margin-bottom: var(--sp-4);
}

/* Sobre panel oscuro sí puede ir el verde de marca (8,88:1) */
.section--dark .kicker,
.hero .kicker,
.page-hero .kicker { color: var(--c-green); }

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
}

.section-head p {
  margin-top: var(--sp-4);
  font-size: 1.06rem;
}

.note {
  font-size: 0.85rem;
  color: var(--c-muted);
}

.section--dark .note { color: var(--c-text-invert-muted); }

/* ------------------------------------------------------------
   04. BOTONES
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--c-green);
  color: var(--c-green-on);
  box-shadow: 0 8px 22px rgba(31, 199, 123, 0.35);
}

.btn--primary:hover {
  background: var(--c-teal);
  color: var(--c-green-on);
}

.btn--ghost {
  border-color: rgba(247, 249, 251, 0.4);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-teal);
  color: var(--c-teal);
}

.btn--outline {
  border-color: var(--c-navy-700);
  color: var(--c-navy-700);
}

.btn--outline:hover {
  background: var(--c-navy-700);
  color: var(--c-white);
}

.btn--whatsapp {
  background: var(--c-navy-700);
  color: var(--c-white);
}

.btn--whatsapp:hover {
  background: var(--c-navy-900);
  color: var(--c-white);
}

.btn--sm { padding: 0.65rem 1.15rem; font-size: 0.88rem; }

/* ------------------------------------------------------------
   05. CABECERA Y NAVEGACIÓN
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 12, 18, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-med), border-color var(--t-med),
    box-shadow var(--t-med);
}

.header.is-scrolled {
  background: rgba(8, 12, 18, 0.92);
  border-bottom-color: var(--c-line-dark);
  box-shadow: 0 8px 30px rgba(8, 12, 18, 0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.header__logo img { height: 42px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--c-text-invert-muted);
  transition: color var(--t-fast), background-color var(--t-fast);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--c-white);
  background: rgba(247, 249, 251, 0.08);
}

.nav__link[aria-current="page"] {
  color: var(--c-teal);
  font-weight: 600;
}

.nav__link .chev {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

/* Desplegable de servicios */
.nav__item--dropdown { position: relative; }

.nav__item--dropdown.is-open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}

.nav__item--dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--r-sm);
  color: var(--c-ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.dropdown a span {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.dropdown a:hover {
  background: var(--c-grey);
  color: var(--c-navy-700);
}

.header__cta { flex: none; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-med);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ------------------------------------------------------------
   06. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-8);
  background:
    radial-gradient(1000px 600px at 110% 10%, rgba(31, 199, 123, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 90%, rgba(27, 39, 51, 0.65), transparent 65%),
    linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 60%, var(--c-navy-700) 130%);
  color: var(--c-text-invert);
  overflow: hidden;
}

/* Cuadrícula financiera decorativa */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 251, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-7);
  align-items: center;
}

.hero__pre {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: var(--sp-4);
}

.hero__pre::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 5px rgba(31, 199, 123, 0.2);
}

.hero h1 {
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}

.hero h1 .accent { color: var(--c-teal); }

.hero__text {
  font-size: 1.12rem;
  max-width: 540px;
  color: var(--c-text-invert-muted);
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

/* Doble entrada compacta bajo el hero */
.hero__profiles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-dark);
  background: rgba(247, 249, 251, 0.06);
  color: var(--c-white);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

.profile-chip:hover {
  border-color: var(--c-green);
  background: rgba(31, 199, 123, 0.12);
  color: var(--c-white);
  transform: translateY(-2px);
}

.profile-chip svg { width: 18px; height: 18px; color: var(--c-teal); }

/* Composición visual: flujo del expediente */
.hero__visual {
  position: relative;
  min-height: 460px;
}

.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 440px;
  margin-inline: auto;
}

/* Cada paso: número + tarjeta, unidos por una línea vertical */
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  padding-bottom: 0.9rem;
}

.flow__step:last-child { padding-bottom: 0; }

.flow__step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: -4px;
  width: 2px;
  background: rgba(31, 199, 123, 0.35);
}

.flow__step:last-child::before { display: none; }

.flow__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-green);
  color: var(--c-navy-900);
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 0 0 5px rgba(31, 199, 123, 0.16);
}

.flow__stage {
  position: relative;
  background: rgba(247, 249, 251, 0.05);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.flow__stage-title {
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.55rem;
}

.flow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.flow__tag {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: var(--r-pill);
  background: rgba(247, 249, 251, 0.08);
  border: 1px solid var(--c-line-dark);
  color: var(--c-text-invert-muted);
}

.flow__stage--final {
  border-color: rgba(31, 199, 123, 0.45);
  background: rgba(31, 199, 123, 0.08);
}

.flow__stage--final .flow__tag {
  background: rgba(31, 199, 123, 0.16);
  border-color: rgba(31, 199, 123, 0.4);
  color: var(--c-teal);
}

/* Mini gráfico de barras dentro del análisis */
.flow__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin-top: 0.4rem;
}

.flow__bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--c-teal), var(--c-green));
  opacity: 0.85;
  animation: barGrow 1.4s var(--t-slow) both;
  transform-origin: bottom;
}

.flow__bars i:nth-child(1) { height: 40%; animation-delay: 0.10s; }
.flow__bars i:nth-child(2) { height: 62%; animation-delay: 0.18s; }
.flow__bars i:nth-child(3) { height: 48%; animation-delay: 0.26s; }
.flow__bars i:nth-child(4) { height: 78%; animation-delay: 0.34s; }
.flow__bars i:nth-child(5) { height: 58%; animation-delay: 0.42s; }
.flow__bars i:nth-child(6) { height: 92%; animation-delay: 0.50s; }
.flow__bars i:nth-child(7) { height: 70%; animation-delay: 0.58s; }
.flow__bars i:nth-child(8) { height: 100%; animation-delay: 0.66s; }

@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Tarjetas flotantes decorativas */
.float-card {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(14, 20, 28, 0.9);
  border: 1px solid rgba(43, 232, 148, 0.35);
  color: var(--c-teal);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: var(--sh-md);
  animation: floatY 6s ease-in-out infinite;
}

.float-card--1 { top: 6%; right: -2%; animation-delay: 0s; }
.float-card--2 { bottom: 24%; left: -4%; animation-delay: 1.6s; }
.float-card--3 { bottom: -2%; right: 6%; animation-delay: 3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.hero__disclaimer {
  margin-top: var(--sp-5);
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.5);
  text-align: center;
}

/* ------------------------------------------------------------
   07. FRANJA DE EXPERIENCIA
   ------------------------------------------------------------ */
.stats {
  background: var(--c-navy-900);
  border-top: 1px solid var(--c-line-dark);
  padding-block: var(--sp-7);
  color: var(--c-text-invert);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.stat {
  border-left: 2px solid rgba(31, 199, 123, 0.5);
  padding-left: var(--sp-4);
}

.stat__value {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--c-teal);
  line-height: 1.1;
}

.stat__value .unit { font-size: 0.6em; margin-left: 2px; }

.stat__label {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--c-text-invert-muted);
}

.stats__claim {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-dark);
  font-size: 0.88rem;
  color: var(--c-text-invert-muted);
  max-width: 760px;
}

/* ------------------------------------------------------------
   08. DOBLE ENTRADA (EMPRESAS / GESTORÍAS)
   ------------------------------------------------------------ */
.paths {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: var(--sp-5);
}

.path-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.path-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.path-card--empresa {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(31, 199, 123, 0.2), transparent 60%),
    linear-gradient(150deg, var(--c-navy-800), var(--c-navy-700));
  color: var(--c-text-invert);
}

.path-card--empresa h3,
.path-card--empresa .path-card__title { color: var(--c-white); }
.path-card--empresa p { color: var(--c-text-invert-muted); }

.path-card--gestoria {
  background: #fff;
  border: 1px solid var(--c-line);
}

.path-card__badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
}

.path-card--empresa .path-card__badge {
  background: rgba(31, 199, 123, 0.16);
  color: var(--c-teal);
}

.path-card--gestoria .path-card__badge {
  background: var(--c-grey);
  color: var(--c-navy-700);
}

.path-card__title {
  font-family: var(--f-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.path-card ul {
  display: grid;
  gap: 0.55rem;
}

.path-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.path-card--empresa li { color: var(--c-text-invert-muted); }
.path-card--gestoria li { color: var(--c-muted); }

.path-card li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--c-green);
}

.path-card__foot { margin-top: auto; padding-top: var(--sp-4); }

/* ------------------------------------------------------------
   09. PROBLEMAS QUE RESOLVEMOS
   ------------------------------------------------------------ */
.problems {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}

.problem-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(31, 199, 123, 0.45);
}

.problem-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 199, 123, 0.12);
  color: var(--c-green);
}

.problem-card__icon svg { width: 22px; height: 22px; }

.problem-card p {
  font-size: 0.95rem;
  color: var(--c-ink);
  font-weight: 500;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   10. SERVICIOS
   ------------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(31, 199, 123, 0.5);
}

.service-card__step {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  font-family: var(--f-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  opacity: 0.6;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(31, 199, 123, 0.14), rgba(43, 232, 148, 0.2));
  color: var(--c-green);
}

.service-card__icon svg { width: 26px; height: 26px; }

.service-card h3 { font-size: 1.35rem; font-weight: 800; }

.service-card__claim {
  color: var(--c-navy-700);
  font-weight: 600;
  font-size: 0.98rem;
}

.service-card__block h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.3rem;
}

.service-card__block p { font-size: 0.93rem; }

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--c-line);
}

.service-card__price .amount {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-navy-900);
}

.service-card__price .amount--sm { font-size: 1.05rem; }

.service-card__price .from {
  font-size: 0.82rem;
  color: var(--c-muted);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-green-text);
  margin-top: auto;
}

.service-card__link svg {
  width: 17px;
  height: 17px;
  transition: transform var(--t-fast);
}

.service-card__link:hover svg { transform: translateX(4px); }

.services-disclaimer {
  margin-top: var(--sp-6);
  text-align: center;
  font-size: 0.88rem;
  color: var(--c-muted);
}

/* ------------------------------------------------------------
   11. RECOMENDADOR INTERACTIVO
   ------------------------------------------------------------ */
.reco {
  max-width: 780px;
  margin-inline: auto;
  background: rgba(247, 249, 251, 0.04);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reco__progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-5);
}

.reco__progress-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(247, 249, 251, 0.12);
  overflow: hidden;
}

.reco__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-green), var(--c-teal));
  transition: width var(--t-med);
}

.reco__progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-invert-muted);
  min-width: 64px;
  text-align: right;
}

.reco__question {
  font-family: var(--f-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--sp-5);
}

.reco__options {
  display: grid;
  gap: var(--sp-3);
}

.reco__option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-line-dark);
  background: rgba(247, 249, 251, 0.04);
  color: var(--c-white);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

.reco__option:hover,
.reco__option:focus-visible {
  border-color: var(--c-green);
  background: rgba(31, 199, 123, 0.1);
  transform: translateX(4px);
}

.reco__option .idx {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(31, 199, 123, 0.15);
  color: var(--c-teal);
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 0.82rem;
}

.reco__back {
  margin-top: var(--sp-5);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-invert-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.reco__back:hover { color: var(--c-teal); }
.reco__back svg { width: 15px; height: 15px; }

/* Resultado */
.reco__result {
  text-align: center;
}

.reco__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(31, 199, 123, 0.14);
  color: var(--c-teal);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.reco__result h3 {
  color: var(--c-white);
  font-size: 1.6rem;
  margin-bottom: var(--sp-3);
}

.reco__result p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
}

.reco__result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
}

.reco__restart {
  display: block;
  margin: var(--sp-5) auto 0;
  font-size: 0.85rem;
  color: var(--c-text-invert-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reco__restart:hover { color: var(--c-teal); }

.reco__note {
  margin-top: var(--sp-5);
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.5);
}

/* ------------------------------------------------------------
   12. PROCESO
   ------------------------------------------------------------ */
/* Recorrido vertical: número + texto unidos por una línea,
   para que el orden de los pasos se entienda de un vistazo. */
.process {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
}

.process-step:last-child { padding-bottom: 0; }

/* Línea que conecta los pasos */
.process-step::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: -2px;
  width: 2px;
  background: rgba(31, 199, 123, 0.35);
}

.process-step:last-child::before { display: none; }

.process-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-green);
  color: var(--c-navy-900);
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgba(31, 199, 123, 0.14);
}

.process-step__body {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.process-step:hover .process-step__body {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: rgba(31, 199, 123, 0.45);
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.process-step p { font-size: 0.95rem; line-height: 1.55; }

/* ------------------------------------------------------------
   13. SIMULACIÓN DEL EXPEDIENTE
   ------------------------------------------------------------ */
.dossier {
  background: var(--c-navy-800);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

.dossier__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(8, 12, 18, 0.7);
  border-bottom: 1px solid var(--c-line-dark);
}

.dossier__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(247, 249, 251, 0.18);
}

.dossier__bar i:first-child { background: var(--c-green); }

.dossier__bar-title {
  margin-left: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-invert-muted);
}

.dossier__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.9rem 1.2rem 0;
  border-bottom: 1px solid var(--c-line-dark);
}

.dossier__tab {
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c-text-invert-muted);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}

.dossier__tab:hover { color: var(--c-white); background: rgba(247, 249, 251, 0.05); }

.dossier__tab[aria-selected="true"] {
  color: var(--c-teal);
  border-bottom-color: var(--c-green);
  background: rgba(31, 199, 123, 0.08);
}

.dossier__panel {
  display: none;
  padding: var(--sp-6);
}

.dossier__panel.is-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-6);
  align-items: center;
  animation: fadeIn 400ms ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier__panel h3 {
  color: var(--c-white);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.dossier__panel p { font-size: 0.95rem; }

/* Visual de datos simulados */
.dossier__viz {
  background: rgba(8, 12, 18, 0.55);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}

.viz-rows { display: grid; gap: 0.8rem; }

.viz-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  align-items: center;
  gap: 0.7rem;
}

.viz-row__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-text-invert-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viz-row__track {
  height: 8px;
  background: rgba(247, 249, 251, 0.1);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.viz-row__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-green), var(--c-teal));
  transform-origin: left;
  animation: barX 900ms var(--t-slow) both;
}

.viz-row--warn .viz-row__fill { background: var(--c-copper); }

@keyframes barX {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.viz-row__val {
  font-family: var(--f-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-teal);
  text-align: right;
}

.viz-note {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.45);
}

.dossier__footnote {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--c-line-dark);
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.5);
}

/* ------------------------------------------------------------
   14. TIPOS DE FINANCIACIÓN
   ------------------------------------------------------------ */
.fin-types {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}

.fin-type {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.fin-type:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(31, 199, 123, 0.45);
}

.fin-type__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(27, 39, 51, 0.08);
  color: var(--c-navy-700);
}

.fin-type__icon svg { width: 22px; height: 22px; }

.fin-type h3 { font-size: 0.98rem; }

.fin-type p { font-size: 0.8125rem; line-height: 1.45; }

/* ------------------------------------------------------------
   15. SEGURIDAD DOCUMENTAL
   ------------------------------------------------------------ */
.security {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--sp-7);
  align-items: center;
}

.security__list { display: grid; gap: var(--sp-4); }

.security-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.security-item__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 199, 123, 0.14);
  color: var(--c-teal);
}

.security-item__icon svg { width: 22px; height: 22px; }

.security-item h3 { color: var(--c-white); font-size: 1.02rem; margin-bottom: 0.2rem; }

.security-item p { font-size: 0.9rem; }

/* Panel simulado del área documental */
.vault {
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-lg);
}

.vault__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line-dark);
}

.vault__title {
  font-family: var(--f-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-white);
}

.vault__badge {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-teal);
  background: rgba(31, 199, 123, 0.14);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
}

.vault__rows { display: grid; gap: 0.55rem; }

.vault-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-sm);
  background: rgba(247, 249, 251, 0.05);
  border: 1px solid var(--c-line-dark);
}

.vault-row svg { width: 17px; height: 17px; flex: none; color: var(--c-teal); }

.vault-row span {
  font-size: 0.82rem;
  color: var(--c-text-invert-muted);
  flex: 1;
}

.vault-row .state {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
}

.state--ok { background: rgba(31, 199, 123, 0.16); color: var(--c-teal); }
.state--progress { background: rgba(185, 138, 90, 0.18); color: var(--c-copper); }

.vault__note {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.45);
}

/* ------------------------------------------------------------
   16. PREGUNTAS FRECUENTES
   ------------------------------------------------------------ */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: var(--sp-3);
}

.faq-item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.faq-item.is-open {
  border-color: rgba(31, 199, 123, 0.5);
  box-shadow: var(--sh-sm);
}

.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.3rem;
  font-family: var(--f-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-ink);
  transition: color var(--t-fast);
}

.faq-item__btn:hover { color: var(--c-navy-700); }

.faq-item__btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--c-green);
  transition: transform var(--t-med);
}

.faq-item.is-open .faq-item__btn svg { transform: rotate(180deg); }

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med);
}

.faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }

.faq-item__panel > div { overflow: hidden; }

.faq-item__panel p {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   17. CTA FINAL + FORMULARIO
   ------------------------------------------------------------ */
.cta-final { position: relative; overflow: hidden; }

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 251, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 100%);
  pointer-events: none;
}

.cta-final__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.cta-final h2 { color: var(--c-white); margin-bottom: var(--sp-4); }

.cta-final__text { font-size: 1.05rem; margin-bottom: var(--sp-6); max-width: 480px; }

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* Formulario breve */
.form-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-lg);
}

.form-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }

.form-card > p { font-size: 0.9rem; margin-bottom: var(--sp-5); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink);
}

.form-field input,
.form-field select {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(31, 199, 123, 0.18);
}

.form-field input[aria-invalid="true"] {
  border-color: #C0554D;
}

.form-field .error-msg {
  display: none;
  font-size: 0.8125rem;
  color: #C0554D;
}

.form-field.has-error .error-msg { display: block; }

.form-check {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.form-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--c-green);
  flex: none;
}

.form-check.has-error label { color: #C0554D; }

.form-card .btn { width: 100%; margin-top: var(--sp-4); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
}

.form-success.is-visible { display: block; animation: fadeIn 400ms ease both; }

.form-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sp-4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31, 199, 123, 0.15);
  color: var(--c-green);
}

.form-success__icon svg { width: 28px; height: 28px; }

.form-success h3 { margin-bottom: 0.4rem; }

.form-success p { font-size: 0.92rem; }

/* ------------------------------------------------------------
   18. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--c-navy-900);
  color: var(--c-text-invert-muted);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-line-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}

.footer__brand img { height: 38px; width: auto; margin-bottom: var(--sp-4); }

.footer__brand p { font-size: 0.9rem; max-width: 300px; }

.footer h2,
.footer h3 {
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer ul { display: grid; gap: 0.55rem; }

.footer a {
  color: var(--c-text-invert-muted);
  font-size: 0.92rem;
}

.footer a:hover { color: var(--c-teal); }

.footer__contact li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--c-green);
}

.footer__provisional {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: rgba(247, 249, 251, 0.45);
}

.footer__bottom {
  border-top: 1px solid var(--c-line-dark);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__legal a { font-size: 0.82rem; }

/* ------------------------------------------------------------
   19. ELEMENTOS FLOTANTES
   ------------------------------------------------------------ */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: var(--c-navy-900);
  font-family: var(--f-heading);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(31, 199, 123, 0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  background: var(--c-teal);
  color: var(--c-navy-900);
}

.whatsapp-float svg { width: 20px; height: 20px; flex: none; }

.back-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-navy-700);
  color: var(--c-white);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med),
    background-color var(--t-fast);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--c-navy-900); }

.back-top svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------
   21. ANIMACIONES DE APARICIÓN
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 90ms; }
.reveal--delay-2 { transition-delay: 180ms; }
.reveal--delay-3 { transition-delay: 270ms; }

/* ------------------------------------------------------------
   22. ACCESIBILIDAD Y REDUCED MOTION
   ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .float-card { animation: none; }
}

/* ------------------------------------------------------------
   23. RESPONSIVE
   ------------------------------------------------------------ */

/* Portátiles pequeños y tablets grandes */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-7); }

  .hero__visual { min-height: 0; }

  .float-card--1 { right: 2%; }
  .float-card--2 { left: 0; }

  .problems { grid-template-columns: repeat(2, 1fr); }

  .services { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }

  .fin-types { grid-template-columns: repeat(3, 1fr); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .paths { grid-template-columns: 1fr; }

  .security { grid-template-columns: 1fr; }

  .cta-final__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .dossier__panel.is-active { grid-template-columns: 1fr; }
}

/* Navegación móvil */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-5);
    background: var(--c-navy-900);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-med), visibility var(--t-med);
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-radius: var(--r-sm);
  }

  .dropdown {
    position: static;
    min-width: 0;
    box-shadow: none;
    background: rgba(247, 249, 251, 0.05);
    border-radius: var(--r-sm);
    opacity: 1;
    visibility: hidden;
    transform: none;
    display: none;
    padding: 0.4rem;
    margin: 0.2rem 0 0.4rem;
  }

  .nav__item--dropdown.is-open .dropdown {
    display: block;
    visibility: visible;
  }

  .dropdown a { color: var(--c-white); }
  .dropdown a span { color: var(--c-text-invert-muted); }
  .dropdown a:hover { background: rgba(247, 249, 251, 0.08); color: var(--c-teal); }

  .nav__cta-mobile {
    margin-top: var(--sp-5);
    display: grid;
    gap: var(--sp-3);
  }

  .header__cta .btn { display: none; }

  /* Evitar scroll de fondo con menú abierto */
  body.nav-open { overflow: hidden; }
}

@media (min-width: 901px) {
  .nav__cta-mobile { display: none; }
}

/* Móviles */
@media (max-width: 640px) {
  :root { --header-h: 66px; }

  .section { padding-block: var(--sp-8); }

  .hero { padding-top: calc(var(--header-h) + var(--sp-7)); }

  .hero__actions .btn { width: 100%; }

  .float-card { display: none; }

  .problems { grid-template-columns: 1fr; }

  .process-step { grid-template-columns: 40px 1fr; }

  .process-step__num {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  .process-step::before { left: 19px; top: 44px; }

  .fin-types { grid-template-columns: repeat(2, 1fr); }

  .stats__grid { grid-template-columns: 1fr; gap: var(--sp-5); }

  .form-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .reco { padding: var(--sp-5); }

  .dossier__tabs { padding-inline: var(--sp-4); }

  .dossier__panel { padding: var(--sp-5); }

  .whatsapp-float span { display: none; }

  .whatsapp-float { padding: 0.9rem; border-radius: 50%; }

  .back-top { bottom: 78px; }

}

/* Móviles muy pequeños */
@media (max-width: 380px) {
  .fin-types { grid-template-columns: 1fr; }
  .viz-row { grid-template-columns: 84px 1fr 44px; }
}

/* ------------------------------------------------------------
   24. PÁGINAS INTERIORES (hero, breadcrumbs y componentes)
   Estilos compartidos por diagnostico.html, expediente.html,
   financiacion.html, empresas.html, gestorias.html y
   como-trabajamos.html. Reutilizan las variables y componentes
   existentes; aquí solo se añade lo imprescindible.
   ------------------------------------------------------------ */

/* Hero de página interior (versión compacta del hero principal) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--sp-7));
  padding-bottom: var(--sp-8);
  background:
    radial-gradient(900px 500px at 105% 0%, rgba(31, 199, 123, 0.15), transparent 60%),
    radial-gradient(600px 420px at -10% 100%, rgba(27, 39, 51, 0.6), transparent 65%),
    linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 70%, var(--c-navy-700) 140%);
  color: var(--c-text-invert);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247, 249, 251, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 249, 251, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  color: var(--c-white);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 780px;
  margin-bottom: var(--sp-5);
}

.page-hero h1 .accent { color: var(--c-teal); }

.page-hero__text {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--c-text-invert-muted);
  margin-bottom: var(--sp-6);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-dark);
  background: rgba(247, 249, 251, 0.06);
  color: var(--c-text-invert-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.meta-chip svg { width: 15px; height: 15px; flex: none; color: var(--c-teal); }

/* Migas de pan */
.breadcrumbs { margin-bottom: var(--sp-5); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--c-text-invert-muted);
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(247, 249, 251, 0.35);
}

.breadcrumbs a {
  color: var(--c-text-invert-muted);
  font-weight: 500;
}

.breadcrumbs a:hover { color: var(--c-teal); }

.breadcrumbs [aria-current="page"] {
  color: var(--c-teal);
  font-weight: 600;
}

/* Tarjetas informativas genéricas (fondo claro) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }

.tile {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(31, 199, 123, 0.45);
}

.tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(31, 199, 123, 0.12);
  color: var(--c-green);
}

.tile__icon svg { width: 22px; height: 22px; }

.tile h3 { font-size: 1.02rem; }

.tile p { font-size: 0.9rem; line-height: 1.5; }

.tile .tile__tag {
  align-self: flex-start;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-navy-700);
  background: var(--c-grey);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
}

/* Lista de comprobación con iconos */
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem var(--sp-5);
}

.check-list--1col { grid-template-columns: 1fr; }

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.check-list li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--c-green);
}

.check-list li strong { color: var(--c-ink); font-weight: 600; }

.section--dark .check-list li { color: var(--c-text-invert-muted); }
.section--dark .check-list li strong { color: var(--c-white); }

/* Layout de dos columnas texto + panel */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.split .section-head { margin-bottom: var(--sp-5); }

/* Caja de aviso / advertencia honesta */
.callout {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-copper);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}

.callout--green { border-left-color: var(--c-green); }

.callout__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(185, 138, 90, 0.14);
  color: var(--c-copper);
}

.callout--green .callout__icon {
  background: rgba(31, 199, 123, 0.14);
  color: var(--c-green);
}

.callout__icon svg { width: 20px; height: 20px; }

.callout h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }

.callout p { font-size: 0.92rem; }

.section--dark .callout {
  background: rgba(247, 249, 251, 0.05);
  border-color: var(--c-line-dark);
  border-left-color: var(--c-copper);
}

.section--dark .callout h3 { color: var(--c-white); }

/* Semáforo del diagnóstico */
.semaforo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.semaforo-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-grey);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.semaforo-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.semaforo-card--verde { border-top-color: var(--c-green); }
.semaforo-card--ambar { border-top-color: var(--c-copper); }
.semaforo-card--rojo { border-top-color: #C0554D; }

.semaforo-card__light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.semaforo-card__light::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.semaforo-card--verde .semaforo-card__light { color: var(--c-green-text); }
.semaforo-card--verde .semaforo-card__light::before {
  background: var(--c-green);
  box-shadow: 0 0 0 4px rgba(31, 199, 123, 0.18);
}

.semaforo-card--ambar .semaforo-card__light { color: var(--c-copper); }
.semaforo-card--ambar .semaforo-card__light::before {
  background: var(--c-copper);
  box-shadow: 0 0 0 4px rgba(185, 138, 90, 0.18);
}

.semaforo-card--rojo .semaforo-card__light { color: #C0554D; }
.semaforo-card--rojo .semaforo-card__light::before {
  background: #C0554D;
  box-shadow: 0 0 0 4px rgba(192, 85, 77, 0.16);
}

.semaforo-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }

.semaforo-card p { font-size: 0.9rem; }

/* Transformación documental (carpeta desordenada → expediente) */
.doc-transform {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-5);
  align-items: stretch;
}

.doc-panel {
  background: rgba(8, 12, 18, 0.55);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.doc-panel__title {
  font-family: var(--f-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-text-invert-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

/* Chips desordenados */
.doc-panel--messy .doc-chips {
  position: relative;
  flex: 1;
}

.doc-chip {
  position: absolute;
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-sm);
  background: rgba(247, 249, 251, 0.08);
  border: 1px dashed rgba(247, 249, 251, 0.3);
  color: var(--c-text-invert-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.doc-chip:nth-child(1) { top: 4%; left: 6%; transform: rotate(-7deg); }
.doc-chip:nth-child(2) { top: 20%; right: 4%; transform: rotate(5deg); }
.doc-chip:nth-child(3) { top: 40%; left: 14%; transform: rotate(3deg); }
.doc-chip:nth-child(4) { top: 56%; right: 12%; transform: rotate(-5deg); }
.doc-chip:nth-child(5) { top: 74%; left: 4%; transform: rotate(6deg); }
.doc-chip:nth-child(6) { bottom: 2%; right: 6%; transform: rotate(-3deg); }

/* Flecha central */
.doc-transform__arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-navy-900);
  box-shadow: 0 0 0 6px rgba(31, 199, 123, 0.16);
}

.doc-transform__arrow svg { width: 22px; height: 22px; }

/* Expediente ordenado */
.doc-panel--ordered { border-color: rgba(31, 199, 123, 0.45); }

.doc-rows { display: grid; gap: 0.5rem; }

.doc-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  background: rgba(247, 249, 251, 0.05);
  border: 1px solid var(--c-line-dark);
  font-size: 0.8125rem;
  color: var(--c-text-invert-muted);
}

.doc-row svg { width: 15px; height: 15px; flex: none; color: var(--c-teal); }

.doc-row .idx {
  flex: none;
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--c-teal);
  width: 22px;
}

/* Tabla comparativa (gestorías) */
.compare-wrap { max-width: 860px; margin-inline: auto; }

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.compare th,
.compare td {
  padding: 0.95rem 1.2rem;
  text-align: left;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--c-line);
}

.compare tr:last-child th,
.compare tr:last-child td { border-bottom: none; }

.compare thead th {
  font-family: var(--f-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare thead th:first-child {
  background: var(--c-grey);
  color: var(--c-muted);
  width: 50%;
}

.compare thead th:last-child {
  background: var(--c-navy-800);
  color: var(--c-teal);
}

.compare td:first-child { color: var(--c-muted); }

.compare td:last-child {
  color: var(--c-ink);
  font-weight: 600;
  background: rgba(31, 199, 123, 0.06);
}

.compare td svg {
  width: 15px;
  height: 15px;
  margin-right: 0.45rem;
  vertical-align: -2px;
}

.compare td:first-child svg { color: #C0554D; }
.compare td:last-child svg { color: var(--c-green); }

/* Selector visual de necesidades (empresas) */
.needs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.need-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  color: var(--c-ink);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}

.need-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(31, 199, 123, 0.5);
  color: var(--c-ink);
}

.need-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(27, 39, 51, 0.08);
  color: var(--c-navy-700);
}

.need-card__icon svg { width: 22px; height: 22px; }

.need-card h3 { font-size: 1rem; }

.need-card p { font-size: 0.88rem; }

.need-card__go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-green-text);
}

.need-card__go svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast);
}

.need-card:hover .need-card__go svg { transform: translateX(4px); }

/* Lista de precios / modelo económico */
.price-lines {
  display: grid;
  gap: var(--sp-3);
  max-width: 720px;
  margin-inline: auto;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}

.price-line__name {
  font-family: var(--f-heading);
  font-weight: 700;
  color: var(--c-ink);
}

.price-line__name small {
  display: block;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.price-line__value {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-navy-900);
  white-space: nowrap;
}

.section--dark .price-line {
  background: rgba(247, 249, 251, 0.05);
  border-color: var(--c-line-dark);
}

.section--dark .price-line__name { color: var(--c-white); }
.section--dark .price-line__name small { color: var(--c-text-invert-muted); }
.section--dark .price-line__value { color: var(--c-teal); }

/* CTA final simple (sin formulario) para páginas interiores */
.cta-simple {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  position: relative;
}

.cta-simple h2 { color: var(--c-white); margin-bottom: var(--sp-4); }

.cta-simple p { margin-bottom: var(--sp-6); }

.cta-simple__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}

/* Responsive de los componentes interiores */
@media (max-width: 1024px) {
  .tiles,
  .tiles--4 { grid-template-columns: repeat(2, 1fr); }

  .needs { grid-template-columns: repeat(2, 1fr); }

  .semaforo { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tiles,
  .tiles--2,
  .tiles--4 { grid-template-columns: 1fr; }

  .needs { grid-template-columns: 1fr; }

  .check-list { grid-template-columns: 1fr; }

  .doc-transform { grid-template-columns: 1fr; }

  .doc-transform__arrow { transform: rotate(90deg); margin-inline: auto; }

  .doc-panel--messy { min-height: 230px; }

  /* La tabla comparativa se apila en móvil */
  .compare thead { display: none; }

  .compare,
  .compare tbody,
  .compare tr,
  .compare td { display: block; width: 100%; }

  .compare tr { border-bottom: 1px solid var(--c-line); }

  .compare tr:last-child { border-bottom: none; }

  .compare td { border-bottom: none; padding: 0.7rem 1.1rem; }

  .compare td:first-child { padding-bottom: 0.2rem; }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--f-heading);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 0.15rem;
  }

  .compare td:last-child::before { color: var(--c-green-text); }

  .page-hero__actions .btn { width: 100%; }
}

/* ------------------------------------------------------------
   25. CONTACTO, PÁGINAS LEGALES Y 404
   Estilos de contacto.html, aviso-legal.html, privacidad.html,
   cookies.html y 404.html. Reutilizan las variables y los
   componentes de formulario existentes (sección 17) y el hero
   de página interior (sección 24).
   ------------------------------------------------------------ */

/* ---------- Contacto: disposición general ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: var(--sp-6);
  align-items: start;
}

/* Tarjeta de datos de contacto (columna oscura) */
.contact-card {
  background: linear-gradient(165deg, var(--c-navy-900) 0%, var(--c-navy-800) 100%);
  color: var(--c-text-invert-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-md);
}

.contact-card h2 {
  color: var(--c-white);
  font-size: 1.25rem;
  margin-bottom: var(--sp-5);
}

.contact-card ul {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.contact-card li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-card li strong {
  display: block;
  color: var(--c-white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.15rem;
}

.contact-card li a { color: var(--c-teal); }
.contact-card li a:hover { color: var(--c-white); }

.contact-card__icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: rgba(31, 199, 123, 0.14);
  color: var(--c-teal);
}

.contact-card__icon svg { width: 18px; height: 18px; }

.contact-card .btn { width: 100%; }

.contact-card__note {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--c-text-invert-muted);
}

/* Tarjeta del formulario por pasos */
.form-card--page {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-lg);
}

/* Indicador de pasos */
.stepper {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.stepper li {
  flex: 1;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--c-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.stepper li > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper__num {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-grey);
  color: var(--c-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: background var(--t-fast), color var(--t-fast);
}

.stepper li.is-current {
  border-color: var(--c-green);
  color: var(--c-ink);
}

.stepper li.is-current .stepper__num {
  background: var(--c-green);
  color: var(--c-green-on);
}

.stepper li.is-done { border-color: var(--c-green); }

.stepper li.is-done .stepper__num {
  background: rgba(31, 199, 123, 0.16);
  color: var(--c-green-text);
}

/* Pasos del formulario */
.form-step h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.form-step__intro {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-5);
}

/* El textarea comparte estilo con inputs y selects */
.form-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  resize: vertical;
  min-height: 96px;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--c-ink);
}

.form-field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(31, 199, 123, 0.18);
}

.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] { border-color: #C0554D; }

/* Navegación entre pasos */
.form-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.form-nav__spacer { flex: 1; }

.form-hint {
  margin-top: var(--sp-4);
  font-size: 0.8125rem;
  color: var(--c-muted);
}

.form-card--page .form-success h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

/* Qué ocurre después */
.after-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.after-step {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--sh-sm);
}

.after-step__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-navy-800);
  color: var(--c-teal);
  font-family: var(--f-heading);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.after-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.after-step p {
  font-size: 0.9rem;
  color: var(--c-muted);
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 780px; }

.legal h2 {
  font-size: 1.35rem;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.legal p { margin-bottom: var(--sp-4); }

.legal ul,
.legal ol {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: var(--sp-4);
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.legal ol { list-style: decimal; }

.legal li::marker { color: var(--c-green-text); }

.legal a {
  color: var(--c-navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:hover { color: var(--c-green-text); }

.legal__updated {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-5);
}

/* Aviso de texto provisional */
.legal-warning {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: rgba(185, 138, 90, 0.10);
  border: 1px solid rgba(185, 138, 90, 0.35);
  border-left: 4px solid var(--c-copper);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
}

.legal-warning svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--c-copper);
  margin-top: 3px;
}

.legal-warning p {
  margin: 0;
  font-size: 0.9rem;
}

/* Datos pendientes de completar */
.pending {
  background: rgba(185, 138, 90, 0.16);
  color: #7A5630;
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Tabla de cookies (y futuras tablas legales) */
.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--c-line);
}

.table-wrap thead th {
  background: var(--c-navy-800);
  color: var(--c-white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child td { border-bottom: none; }

/* ---------- Página 404 ---------- */
.error-page {
  position: relative;
  padding: calc(var(--header-h) + var(--sp-8)) var(--sp-5) var(--sp-9);
  background:
    radial-gradient(900px 500px at 105% 0%, rgba(31, 199, 123, 0.15), transparent 60%),
    radial-gradient(600px 420px at -10% 100%, rgba(27, 39, 51, 0.6), transparent 65%),
    linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 70%, var(--c-navy-700) 140%);
  color: var(--c-text-invert-muted);
  text-align: center;
  overflow: hidden;
}

.error-page__inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
}

.error-page__code {
  font-family: var(--f-heading);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  line-height: 1;
  color: rgba(43, 232, 148, 0.30);
  margin-bottom: var(--sp-4);
}

.error-page h1 {
  color: var(--c-white);
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  margin-bottom: var(--sp-4);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 var(--sp-5);
}

.error-page__links { font-size: 0.9rem; }

.error-page__links a {
  color: var(--c-teal);
  font-weight: 600;
}

.error-page__links a:hover { color: var(--c-white); }

/* ---------- Responsive de la sección 25 ---------- */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
  .form-card--page,
  .contact-card { padding: var(--sp-5); }

  .stepper { gap: var(--sp-2); }

  .stepper li { font-size: 0.8125rem; }

  .stepper li > span { flex-direction: column; align-items: flex-start; gap: 0.3rem; }

  .form-nav { flex-wrap: wrap; }

  .form-nav .btn { flex: 1 1 auto; }

  .error-page__actions .btn { width: 100%; }
}

/* El atributo hidden debe ganar siempre a los display de los
   componentes (p. ej. botones del formulario por pasos). */
[hidden] { display: none !important; }

/* ---------- Utilidades (sustituyen estilos inline puntuales) ---------- */
.u-center { text-align: center; }
.u-align-start { align-items: start; }
.u-mb-4 { margin-bottom: 1rem; }
.u-mt-3 { margin-top: 0.8rem; }
.u-mt-4 { margin-top: 1rem; }
.u-mt-6 { margin-top: 2rem; }
.u-mt-7 { margin-top: 2.5rem; }
.u-mt-8 { margin-top: 3rem; }
.u-link-accent { color: var(--c-teal); font-weight: 600; }
.u-text-invert { color: var(--c-white); }

/* Página activa dentro del desplegable de servicios */
.dropdown a[aria-current="page"] { background: rgba(31, 199, 123, 0.10); }

/* ------------------------------------------------------------
   26. PRE-DIAGNÓSTICO (pre-diagnostico.html)
   Herramienta de captación: resultado parcial visible (gancho)
   y tarjetas bloqueadas que enlazan con el diagnóstico de pago.
   ------------------------------------------------------------ */
.prediag { max-width: 860px; margin-inline: auto; }

.prediag-result { margin-top: var(--sp-6); }

/* --- Gancho: parte visible del resultado --- */
.prediag-teaser {
  background: linear-gradient(165deg, var(--c-navy-900) 0%, var(--c-navy-800) 100%);
  color: var(--c-text-invert-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-md);
  border-top: 4px solid var(--c-green);
}

.prediag-teaser--ambar { border-top-color: var(--c-copper); }
.prediag-teaser--rojo { border-top-color: #C0554D; }

.prediag-teaser__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line-dark);
  background: rgba(247, 249, 251, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.prediag-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 10px rgba(31, 199, 123, 0.8);
}

.prediag-teaser--ambar .prediag-light {
  background: var(--c-copper);
  box-shadow: 0 0 10px rgba(185, 138, 90, 0.8);
}

.prediag-teaser--rojo .prediag-light {
  background: #C0554D;
  box-shadow: 0 0 10px rgba(192, 85, 77, 0.8);
}

.prediag-teaser h2 {
  color: var(--c-white);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin-bottom: var(--sp-3);
}

.prediag-teaser__text { font-size: 0.95rem; margin-bottom: var(--sp-4); }

/* Indicador revelado */
.prediag-metric {
  background: rgba(247, 249, 251, 0.05);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}

.prediag-metric__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.prediag-metric__head strong {
  color: var(--c-white);
  font-family: var(--f-heading);
  font-size: 1.15rem;
}

.prediag-metric__track {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(247, 249, 251, 0.12);
  overflow: hidden;
}

.prediag-metric__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--c-green);
  transition: width 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.prediag-metric__fill--ambar { background: var(--c-copper); }
.prediag-metric__fill--rojo { background: #C0554D; }

.prediag-metric__note {
  font-size: 0.8125rem;
  margin-top: 0.7rem;
  color: var(--c-text-invert-muted);
}

/* --- Parte bloqueada --- */
.prediag-locked {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-5);
  box-shadow: var(--sh-sm);
}

.prediag-locked__head h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }

.prediag-locked__head p {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-5);
}

.prediag-locked__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.locked-card {
  position: relative;
  border: 1px dashed rgba(10, 14, 20, 0.22);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  background: var(--c-white);
}

.locked-card__lock {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.06);
  color: var(--c-muted);
}

.locked-card__lock svg { width: 16px; height: 16px; }

.locked-card h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  padding-right: 44px;
}

.locked-card p {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
}

/* Líneas difuminadas que sugieren el contenido bloqueado */
.locked-card__blur { display: grid; gap: 7px; filter: blur(2.5px); opacity: 0.55; }

.locked-card__blur i {
  display: block;
  height: 9px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-grey), rgba(228, 233, 238, 0.4));
}

.locked-card__blur i:nth-child(1) { width: 90%; }
.locked-card__blur i:nth-child(2) { width: 72%; }
.locked-card__blur i:nth-child(3) { width: 58%; }

/* CTA de desbloqueo */
.prediag-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(31, 199, 123, 0.10), rgba(27, 39, 51, 0.08));
  border: 1px solid rgba(31, 199, 123, 0.35);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}

.prediag-cta h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

.prediag-cta p { font-size: 0.88rem; color: var(--c-muted); max-width: 460px; }

.prediag-cta__actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.prediag-legal {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-top: var(--sp-4);
}

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

  .prediag-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .prediag-teaser,
  .prediag-locked { padding: var(--sp-5); }

  .prediag-cta__actions { width: 100%; }

  .prediag-cta__actions .btn { flex: 1 1 auto; }
}

/* CTA bajo la simulación del expediente (portada) */
.dossier-cta {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.dossier-cta__note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-text-invert-muted);
  margin-top: var(--sp-3);
}

@media (max-width: 640px) {
  .dossier-cta .btn { width: 100%; }
}

/* Notas informativas dentro del resultado del pre-diagnóstico */
.prediag-teaser__note {
  font-size: 0.88rem;
  padding-left: var(--sp-4);
  border-left: 2px solid rgba(43, 232, 148, 0.45);
  margin-top: var(--sp-4);
}

/* Cierre honesto del caso favorable (sin bloqueos ni presión) */
.prediag-honest {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-5);
  box-shadow: var(--sh-sm);
}

.prediag-honest h3 { font-size: 1.2rem; margin-bottom: var(--sp-4); }

.prediag-honest p {
  font-size: 0.93rem;
  color: var(--c-muted);
  margin-bottom: var(--sp-4);
  max-width: 62ch;
}

.prediag-honest a {
  color: var(--c-navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prediag-honest a:hover { color: var(--c-green-text); }

.prediag-honest__actions { margin-top: var(--sp-5); }

.prediag-honest__actions .btn { text-decoration: none; }

@media (max-width: 640px) {
  .prediag-honest { padding: var(--sp-5); }
  .prediag-honest__actions .btn { width: 100%; }
}

/* ------------------------------------------------------------
   27. QUANTIX UNDERWRITE — superficies editoriales públicas
   ------------------------------------------------------------ */
.qx-page-hero {
  padding: calc(var(--header-h) + var(--sp-9)) 0 var(--sp-8);
  color: var(--c-white);
  background: radial-gradient(900px 420px at 85% 5%, rgba(31,199,123,.16), transparent 65%), var(--c-navy-900);
}
.qx-page-hero .container { max-width: 900px; }
.qx-page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.08; max-width: 16ch; color: var(--c-white); margin: .5rem 0 1.3rem; }
.qx-page-hero p:last-child { max-width: 64ch; color: var(--c-text-invert-muted); font-size: 1.1rem; }
.qx-eyebrow { color: var(--c-green); font: 800 .75rem/1 var(--f-heading); letter-spacing: .14em; text-transform: uppercase; }
.qx-termino { display: inline-flex; align-items: baseline; gap: .35rem; position: relative; }
.qx-termino__i { width: 1.12rem; height: 1.12rem; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font: 700 .68rem/1 var(--f-body); transform: translateY(-.08em); }
.qx-termino__i:focus-visible { outline: 3px solid var(--c-green); outline-offset: 3px; }
.qx-termino__globo { z-index: 20; position: absolute; left: 0; top: calc(100% + .6rem); width: min(340px, 82vw); padding: 1rem; border-radius: var(--r-sm); background: var(--c-navy-900); color: var(--c-white); box-shadow: var(--sh-lg); font: .82rem/1.5 var(--f-body); text-align: left; }
.qx-termino__titulo { display: block; color: var(--c-teal); font: 800 .78rem var(--f-heading); margin-bottom: .35rem; }
.qx-badge { display: inline-block; padding: .25rem .5rem; border: 1px solid var(--c-copper); border-radius: 999px; color: #7a5630; font: 800 .65rem var(--f-heading); letter-spacing: .08em; vertical-align: middle; }
.qx-dimensions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.qx-dimensions article { padding: 1.35rem; min-height: 180px; background: var(--c-white); }
.section--dark .qx-dimensions { background: var(--c-line-dark); border-color: var(--c-line-dark); }
.section--dark .qx-dimensions article { background: var(--c-navy-800); }
.qx-dimensions b { color: var(--c-green); font: 800 .75rem var(--f-heading); }
.qx-dimensions h3 { margin: 2rem 0 .5rem; font-size: 1.05rem; }
.qx-dimensions p { font-size: .87rem; color: var(--c-muted); }
.section--dark .qx-dimensions p { color: var(--c-text-invert-muted); }
.qx-evidence { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; align-items: center; padding: 1.5rem; border: 1px solid var(--c-line); background: var(--c-grey); }
.qx-evidence b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-navy-900); color: var(--c-teal); font-size: 0.8125rem; }
.qx-evidence p { margin: 0; font-weight: 650; }
.qx-index-demo { display: grid; gap: .5rem; align-content: center; padding: 2rem; background: var(--c-navy-900); color: var(--c-white); border-top: 3px solid var(--c-copper); }
.qx-index-demo b { color: var(--c-copper); font-size: 0.8125rem; letter-spacing: .08em; }
.qx-index-demo strong { font: 800 3rem/1 var(--f-heading); }
.qx-index-demo span { color: var(--c-text-invert-muted); font-size: .9rem; }
@media (max-width: 900px) { .qx-dimensions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .qx-page-hero { padding-top: calc(var(--header-h) + var(--sp-7)); } .qx-dimensions { grid-template-columns: 1fr; } .qx-termino__globo { left: auto; right: 0; } }

/* Se ocultan accesos de WhatsApp con número provisional hasta confirmar un canal real. */
.whatsapp-float { display: none !important; }
a[href^="https://wa.me/"] { display: none !important; }
.qx-viability { display: grid; gap: .8rem; padding: var(--sp-6); border: 1px solid var(--c-line-dark); background: rgba(247,249,251,.05); }
.qx-viability > p { color: var(--c-teal) !important; font: 800 .7rem var(--f-heading); letter-spacing: .08em; }
.qx-viability > div { display: flex; justify-content: space-between; padding-bottom: .65rem; border-bottom: 1px solid var(--c-line-dark); }
.qx-viability strong { color: var(--c-white); }.qx-viability ul { list-style: none; display: grid; gap: .45rem; font-size: .88rem; }.qx-viability li::before { content: '—'; color: var(--c-teal); margin-right: .5rem; }.qx-viability small { color: var(--c-text-invert-muted); font-size: 0.8125rem; }

/* Contacto sin teléfono ni WhatsApp: la tarjeta y el bloque de correo no desbordan en móvil */
.contact-card, .form-card--page, .form-card { min-width: 0; }
.contact-card a, .form-card--page a, .form-card a { overflow-wrap: anywhere; }
.contact-card .btn, .form-card--page .btn, .form-card .btn { white-space: normal; max-width: 100%; text-align: center; }
@media (max-width: 640px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal .table-wrap table { min-width: 0; }
  .legal thead { display: none; }
  .legal tr { margin-bottom: var(--sp-4); border-bottom: 1px solid rgba(127, 127, 127, 0.3); }
  .legal td { padding: 0.25rem 0.75rem; overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------
   Estática 3.5 · auditoría de Calidad (24-10-2026)
   ------------------------------------------------------------ */
/* W-A2/W-A6: ningún elemento del menú se parte en dos filas (sustituye al word joiner en «Q-Underwrite») */
.nav__link, .header__cta .btn { white-space: nowrap; }

/* W-A15: zonas táctiles de al menos 44 px */
.btn, .btn--sm { min-height: 44px; }
.nav__link, .dropdown a, .faq-item__btn { min-height: 44px; display: inline-flex; align-items: center; }
.footer a { display: inline-block; padding-block: 0.6rem; }
.footer__legal a { padding-inline: 0.25rem; }
.breadcrumbs a { display: inline-block; padding-block: 0.6rem; }
.profile-chip { min-height: 44px; }
.back-top { min-width: 44px; min-height: 44px; }

/* Portada: una sola llamada principal; el resto, enlaces de texto */
.hero__links { margin-top: 1rem; font-size: 0.95rem; }
.hero__links a { display: inline-block; padding-block: 0.65rem; text-decoration: underline; text-underline-offset: 3px; }

/* Guías: índice «En esta guía» */
.toc { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 1px solid var(--c-border, rgba(0, 0, 0, 0.12)); border-radius: var(--r-sm, 8px); background: rgba(0, 0, 0, 0.03); }
.toc p { margin: 0 0 0.5rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.toc a { display: inline-block; padding-block: 0.3rem; }
html { scroll-padding-top: calc(var(--header-h, 72px) + 1rem); }
.hero__links, .hero__links a { color: var(--c-white); }
.hero__links a { font-weight: 600; }
.hero__links a:hover, .hero__links a:focus-visible { color: var(--c-teal); }
.dossier__tab { min-height: 44px; }
.service-card__link { min-height: 44px; display: inline-flex; align-items: center; }
.section ul > li > a:only-child, .container ul > li > a:only-child { display: inline-block; padding-block: 0.7rem; }
.header__logo, .footer__legal a, .footer__contact a { min-height: 44px; display: inline-flex; align-items: center; }
/* Cabecera en anchos intermedios: el menú de siete entradas y el botón caben en una sola fila sin recortar nada */
@media (min-width: 901px) and (max-width: 1180px) {
  .header__inner { gap: 0.75rem; }
  .nav__list { gap: 0; }
  .nav__link { padding: 0.5rem 0.5rem; font-size: 0.875rem; }
  .header__cta .btn { padding-inline: 0.9rem; }
}

/* 3.5.1 · correcciones de CEO (25-10-2026) */
/* Guías de la portada: tarjetas en rejilla, centradas y alineadas */
ul.guias-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; max-width: 1000px; margin: 0 auto; padding: 0; }
.guias-grid > li { margin: 0; display: flex; }
ul.guias-grid > li > a:only-child { display: flex; align-items: center; width: 100%; min-height: 76px; padding: 1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r-md, 12px); background: var(--c-white); font-weight: 600; line-height: 1.35; text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
ul.guias-grid > li > a:only-child:hover, .guias-grid > li > a:only-child:focus-visible { border-color: var(--c-green); box-shadow: var(--sh-md, 0 6px 20px rgba(0, 0, 0, 0.08)); transform: translateY(-2px); }

/* «Da el primer paso»: la tarjeta de correo en el mismo estilo oscuro de la sección (antes, un bloque blanco) */
.cta-final .form-card { background: rgba(247, 249, 251, 0.06); border: 1px solid var(--c-line-dark); box-shadow: none; }
.cta-final .form-card h3 { color: var(--c-white); }
.cta-final .form-card p, .cta-final .form-card .note { color: var(--c-text-invert-muted); }

/* Correo en el bloque «Escríbenos» (3.5.1): dirección visible, copiar y abrir en Gmail u Outlook */
.correo-direccion { margin: 0.25rem 0 0.75rem; font-size: 1.15rem; overflow-wrap: anywhere; user-select: all; }
.correo-acciones { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 0.5rem; }
.correo-acciones .btn { width: auto; margin-top: 0; }
.correo-acciones [hidden] { display: none; }
.correo-estado { min-height: 1.4rem; margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--c-green); }
.cta-final .correo-direccion strong { color: var(--c-white); }
.cta-final .correo-acciones .btn--outline { color: var(--c-white); border-color: var(--c-line-dark); }

/* 3.6a · preguntas frecuentes y tablas de las guías (bloques añadidos, fuera del texto firmado) */
.tabla-comparativa { margin: 1rem 0 1.75rem; overflow-x: auto; }
.tabla-comparativa table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabla-comparativa th, .tabla-comparativa td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.tabla-comparativa thead th { background: var(--c-grey); font-weight: 700; }
.tabla-comparativa tbody th { font-weight: 600; }
.tabla-comparativa .num { text-align: right; white-space: nowrap; }
.tabla-comparativa .tabla-aviso { margin: 0.75rem 0 0; font-weight: 600; }
.tabla-comparativa figcaption { margin-top: 0.6rem; font-size: 0.875rem; font-style: italic; color: var(--c-muted); }
.legal .faq { margin: 1rem 0 1.5rem; }

/* 3.6.1: las URLs largas de «Fuentes» (code) y de las listas se parten en lugar de desbordar la pagina en movil; las celdas de tabla quedan fuera para no recolocar columnas */
main :is(code, li, p, a):not(td *, th *) { overflow-wrap: anywhere; }
