/* ==========================================================================
   El Kit Olvidado — hoja de estilo principal
   Paleta y tipografías según manual de marca (logo_corporativa.png)
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --navy: #0d1b2a;
  --ink: #111827;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff4ff;
  --teal: #14b8a6;
  --teal-soft: #e7faf7;
  --mist: #f1f5f9;
  --slate: #64748b;
  --line: #e2e8f0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --white: #ffffff;

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gut: 24px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 2px 8px rgba(13, 27, 42, 0.05);
  --shadow: 0 4px 12px rgba(13, 27, 42, 0.07), 0 18px 40px -18px rgba(13, 27, 42, 0.28);

  --step: clamp(2.75rem, 6vw, 5rem);
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #334155;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.075rem; }
p { margin: 0 0 1.15em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }
strong { color: var(--ink); font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Layout ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 760px; }

.section { padding-block: var(--step); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #cbd5e1; }
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: #fff; }

.grid { display: grid; gap: 28px; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--sidebar { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; }
}

.lede {
  font-size: clamp(1.075rem, 1.6vw, 1.25rem);
  color: var(--slate);
  max-width: 62ch;
}
.section--navy .lede { color: #94a3b8; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
}
.section--navy .eyebrow { color: var(--teal); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

/* --- Botones ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.75);
}
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }

.btn--light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn--teal { background: var(--teal); color: #06312c; }
.btn--teal:hover { background: #0fa192; color: #06312c; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--blue);
}
.arrow-link svg { transition: transform 0.18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* --- Cabecera ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; line-height: 1.05; color: var(--navy); letter-spacing: -0.02em; }
.brand__text span { color: var(--blue); }
.brand__tag { display: block; font-family: var(--font-head); font-size: 0.53rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block;
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 500;
  color: #1f2b3d;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 8px;
}
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }

.nav__has-sub { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 0.93rem; font-weight: 500;
  color: #1f2b3d; background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 8px;
}
.nav__toggle:hover { background: var(--mist); }
.nav__toggle svg { transition: transform 0.2s ease; }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  flex-direction: column;
}
.nav__sub[data-open="true"] { display: flex; }
.nav__sub a { padding: 11px 13px; font-weight: 500; }
.nav__sub small { display: block; font-size: 0.79rem; color: var(--slate); font-family: var(--font-body); margin-top: 2px; }

.header-cta { display: none; }

.burger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 17px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 1040px) {
  .nav, .header-cta { display: block; }
  .burger { display: none; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px var(--gut) 26px;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: block;
  padding: 13px 2px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.mobile-nav .sub a { padding-left: 18px; font-size: 0.92rem; color: var(--slate); }
@media (min-width: 1040px) { .mobile-nav { display: none !important; } }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #cbd5e1;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 78% 10%, #000 20%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.42), transparent 66%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 60px; } }
.hero__lede { font-size: clamp(1.075rem, 1.7vw, 1.28rem); color: #94a3b8; max-width: 56ch; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.hero__pills li {
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: #cbd5e1;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 8px 15px;
}
.hero__pills svg { color: var(--teal); flex: none; }

/* Tarjeta diagnóstico del hero */
.diag {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(4px);
}
.diag__title {
  font-family: var(--font-head); font-weight: 600; font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 18px;
}
.diag__list { list-style: none; margin: 0; padding: 0; }
.diag__list li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
  color: #cbd5e1;
}
.diag__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.diag__state {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
}
.diag__state--bad { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.diag__state--ok { background: rgba(20, 184, 166, 0.16); color: var(--teal); }

/* --- Breadcrumb + cabecera de página ------------------------------------ */
.page-head {
  background: var(--navy);
  color: #94a3b8;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 85%);
  pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head .lede { color: #94a3b8; }

.crumbs { font-size: 0.83rem; margin-bottom: 18px; color: #64748b; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: inline-flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; color: #475569; }
.crumbs a { color: #cbd5e1; text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current="page"] { color: var(--teal); }

/* --- Tarjetas ----------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.97rem; }
.card > *:last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 18px; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 20px;
}
.icon-badge--teal { background: var(--teal-soft); color: #0d9488; }

/* Paquetes de precio */
.plan { position: relative; }
.plan--featured { border-color: var(--blue); box-shadow: 0 20px 50px -28px rgba(37, 99, 235, 0.55); }
.plan__flag {
  position: absolute; top: -13px; left: 30px;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
/* Más específicos que `.card p` para que no los pise el estilo de tarjeta */
.card .plan__price,
.plan__price {
  font-family: var(--font-head);
  font-size: 2.35rem; font-weight: 700; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 6px 0 4px;
}
.card .plan__price small,
.plan__price small { font-size: 0.95rem; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.card .plan__note,
.plan__note { font-size: 0.83rem; color: var(--slate); margin-bottom: 22px; }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  margin-bottom: 11px;
  color: #475569;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230d9488'%3E%3Cpath d='M8.1 14.3 4.4 10.6l1.3-1.3 2.4 2.4 6-6 1.3 1.3z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--navy .ticks li { color: #cbd5e1; }

/* Cruces (dolores) */
.crosses { list-style: none; padding: 0; margin: 0; }
.crosses li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: #475569;
}
.crosses li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fee2e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23dc2626'%3E%3Cpath d='M14.5 6.9 13.1 5.5 10 8.6 6.9 5.5 5.5 6.9 8.6 10l-3.1 3.1 1.4 1.4 3.1-3.1 3.1 3.1 1.4-1.4L11.4 10z'/%3E%3C/svg%3E") center/15px no-repeat;
}

/* --- Pasos -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-size: 2.6rem; font-weight: 700;
  color: var(--mist);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--slate); font-size: 0.96rem; margin-bottom: 0; }

/* --- Métricas ----------------------------------------------------------- */
.stats { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__num span { color: var(--teal); }
.stat__label { font-size: 0.88rem; color: #94a3b8; margin-top: 8px; }

/* --- Testimonios -------------------------------------------------------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.quote blockquote { margin: 0 0 20px; font-size: 1.02rem; color: #334155; }
.quote blockquote::before { content: "“"; font-family: var(--font-head); font-size: 3rem; color: var(--teal); line-height: 0.1; display: block; margin-bottom: 22px; }
.quote figcaption { display: flex; align-items: center; gap: 13px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  flex: none;
}
.quote cite { font-style: normal; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 0.95rem; display: block; }
.quote figcaption small { color: var(--slate); font-size: 0.84rem; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 26px;
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3E%3Cpath d='M8 11.3 2.7 6l1.4-1.4L8 8.5l3.9-3.9L13.3 6z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq__body { padding-bottom: 22px; color: var(--slate); max-width: 78ch; }
.faq .faq__body > *:last-child { margin-bottom: 0; }

/* --- Blog --------------------------------------------------------------- */
.post-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy), #1e3a5f);
  position: relative;
  display: grid; place-items: center;
}
.post-card__thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}
.post-card__thumb svg { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.5); width: 46px; height: 46px; }
.post-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: 0.95rem; color: var(--slate); }
.meta { font-size: 0.78rem; color: var(--slate); letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-head); font-weight: 500; margin-bottom: 12px; }
.tag {
  display: inline-block;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--blue-soft); color: var(--blue);
  padding: 5px 11px; border-radius: 999px;
}

/* Artículo */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.prose h3 { margin-top: 1.7em; }
.prose > *:first-child { margin-top: 0; }
.prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--teal);
  font-size: 1.1rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 500;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.callout {
  background: var(--blue-soft);
  border: 1px solid #dbe6ff;
  border-radius: var(--r);
  padding: 24px 26px;
  margin: 2em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--navy); }

.toc {
  position: sticky; top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  background: var(--mist);
}
.toc h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: 10px; counter-increment: toc; }
.toc a { font-size: 0.92rem; text-decoration: none; color: #334155; display: flex; gap: 10px; }
.toc a::before { content: counter(toc) "."; color: var(--blue); font-weight: 600; flex: none; }
.toc a:hover { color: var(--blue); }
@media (max-width: 979px) { .toc { position: static; margin-bottom: 34px; } }

/* --- Caso de éxito ------------------------------------------------------ */
.result-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .result-grid { grid-template-columns: repeat(4, 1fr); } }
.result {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  background: #fff;
  text-align: center;
}
.result__num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--blue); line-height: 1; letter-spacing: -0.03em; }
.result__label { font-size: 0.82rem; color: var(--slate); margin-top: 8px; }

.split { display: grid; gap: 34px; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, 1fr); gap: 44px; } }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  background: #fff;
}
.panel--bad { background: #fff7f7; border-color: #fecaca; }
.panel--good { background: var(--teal-soft); border-color: #99f6e4; }
.panel h3 { font-size: 1.1rem; }

/* --- Formulario --------------------------------------------------------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .hint { font-weight: 400; color: var(--slate); font-family: var(--font-body); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}
.field--check { display: flex; gap: 11px; align-items: flex-start; }
.field--check input { width: auto; margin-top: 4px; flex: none; }
.field--check label { font-weight: 400; font-family: var(--font-body); font-size: 0.87rem; color: var(--slate); margin: 0; }
@media (min-width: 640px) { .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; } }

.contact-aside { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-item .icon-badge { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.contact-item h3 { font-size: 0.97rem; margin-bottom: 2px; }
.contact-item p { margin: 0; font-size: 0.95rem; color: var(--slate); }
.contact-item a { text-decoration: none; }

/* --- CTA final ---------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  left: 50%; top: -300px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3), transparent 66%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #94a3b8; max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* --- Pie ---------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #94a3b8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  font-size: 0.94rem;
}
.site-footer h2 {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; margin-bottom: 18px;
}
.footer-grid { display: grid; gap: 38px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-brand .brand__text { color: #fff; }
.footer-brand .brand__tag { color: #64748b; }
.footer-brand p { margin-top: 18px; max-width: 38ch; color: #94a3b8; }
.footer-bottom {
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: #64748b;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom li { margin: 0; }

/* --- Consentimiento de cookies ------------------------------------------ */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  display: none;
  max-width: 760px;
  margin-inline: auto;
  font-size: 0.9rem;
}
.cookie-bar[data-open="true"] { display: block; }
.cookie-bar h2 { font-size: 1.02rem; margin-bottom: 8px; }
.cookie-bar p { margin: 0 0 18px; color: var(--slate); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Aceptar y rechazar deben tener el mismo peso visual (guía AEPD) */
.cookie-bar__actions .btn { padding: 12px 22px; font-size: 0.88rem; flex: 1 1 auto; }
.cookie-bar__actions .btn--equal {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.cookie-bar__actions .btn--equal:hover { background: #16283c; color: #fff; }
.cookie-bar__actions .btn--link {
  background: none; border-color: transparent; color: var(--slate);
  text-decoration: underline; flex: 0 0 auto;
}
.cookie-bar__actions .btn--link:hover { color: var(--navy); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13, 27, 42, 0.6);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.cookie-modal[data-open="true"] { display: flex; }
.cookie-modal__panel {
  background: #fff;
  border-radius: var(--r-lg);
  max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.cookie-modal h2 { font-size: 1.35rem; }
.cookie-modal__group {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.cookie-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
}
.cookie-modal__head h3 { margin: 0; font-size: 1rem; }
.cookie-modal__group p { margin: 0; font-size: 0.89rem; color: var(--slate); }
.cookie-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cookie-modal__foot .btn { flex: 1 1 auto; font-size: 0.88rem; }
.cookie-modal__meta { font-size: 0.8rem; color: var(--slate); margin-top: 18px; }

/* Interruptor accesible */
.switch { position: relative; display: inline-flex; flex: none; }
.switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; margin: 0; cursor: pointer;
}
.switch span {
  width: 46px; height: 26px; border-radius: 999px;
  background: #cbd5e1; display: block; position: relative;
  transition: background 0.18s ease;
}
.switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { background: var(--teal); opacity: 0.45; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }

/* --- Avisos del formulario ---------------------------------------------- */
.notice {
  border-radius: var(--r);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  display: none;
}
.notice[data-show="true"] { display: block; }
.notice--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice--ok { background: var(--teal-soft); border: 1px solid #99f6e4; color: #0f766e; }
.notice p { margin: 0; }
.field-error { color: #b91c1c; font-size: 0.83rem; margin-top: 6px; display: none; }
.field[data-invalid="true"] .field-error { display: block; }
.field[data-invalid="true"] input,
.field[data-invalid="true"] textarea,
.field[data-invalid="true"] select { border-color: #dc2626; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Información básica de protección de datos (primera capa AEPD) ------- */
.rgpd-layer {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--mist);
  margin: 4px 0 20px;
  overflow: hidden;
}
.rgpd-layer > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--navy);
  position: relative;
  padding-right: 40px;
}
.rgpd-layer > summary::-webkit-details-marker { display: none; }
.rgpd-layer > summary::after {
  content: "";
  position: absolute; right: 16px; top: 18px;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3E%3Cpath d='M8 11.3 2.7 6l1.4-1.4L8 8.5l3.9-3.9L13.3 6z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.2s ease;
}
.rgpd-layer[open] > summary::after { transform: rotate(180deg); }
.rgpd-layer dl {
  margin: 0;
  padding: 4px 18px 18px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.rgpd-layer dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  margin-top: 12px;
}
.rgpd-layer dd { margin: 2px 0 0; color: var(--slate); }
@media (min-width: 560px) {
  .rgpd-layer dl {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 0 16px;
  }
  .rgpd-layer dt { margin-top: 10px; }
  .rgpd-layer dd { margin-top: 10px; }
}

/* --- Utilidades --------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(2rem, 4vw, 3rem); }
