/* ============================================================
   TH Asesores — hoja de estilos principal
   Paleta corporativa: azul royal #2154CF · azul marino #11376B
   Tipografías: Playfair Display (títulos, como el logo) + Manrope
   ============================================================ */

:root {
  --blue: #2154cf;
  --blue-dark: #1a44ab;
  --navy: #11376b;
  --navy-deep: #0b2850;
  --ink: #26303c;
  --muted: #5a6878;
  --bg: #ffffff;
  --bg-soft: #f4f7fd;
  --tint: #e8eefb;
  --line: #e2e8f4;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(17, 55, 107, 0.07);
  --shadow-lg: 0 14px 36px rgba(17, 55, 107, 0.14);
  --wa: #25d366;
  --ok: #1a8f4d;
  --ok-soft: #e7f6ee;
  --err: #c43d3d;
  --err-soft: #fdecec;
  --serif: "Playfair Display", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); }

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

/* ---------- Animaciones de entrada (progresivas: sin JS todo es visible) ---------- */
.rv { transition: opacity .6s ease, transform .6s ease; }
html.js-anim .rv:not(.in) { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-anim .rv:not(.in) { opacity: 1; transform: none; transition: none; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 10px 26px rgba(33, 84, 207, .35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-lg); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { box-shadow: 0 8px 24px rgba(37, 211, 102, .4); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Barra superior ----------
   Visible arriba del todo; al hacer scroll todo el bloque se desliza
   hacia arriba con transform (solo visual: no cambia la altura de la
   página, así que no puede provocar bucles de scroll) y reaparece
   cuando el ratón se acerca al borde superior de la ventana. */
.top-stack {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform .3s ease;
}
body.tb-hide .top-stack { transform: translateY(calc(-1 * var(--tb-h, 38px))); }
body.tb-hide.tb-peek .top-stack { transform: none; }
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 600;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  flex-wrap: wrap;
  padding-top: 4px;
  padding-bottom: 4px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { opacity: .8; flex: none; }
.tb-portal {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 800;
  white-space: nowrap;
}
.tb-portal:hover { background: rgba(255, 255, 255, .26); text-decoration: none !important; }
/* El portal en el menú solo existe en móvil (dentro del hamburguesa) */
.nav-links a.nav-portal { display: none; color: var(--navy); }
.nav-links a.nav-portal:hover { color: var(--blue); }

/* ---------- Header / logo ---------- */
.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-ring {
  width: 46px;
  height: 46px;
  flex: none;
  border: 2.5px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--blue);
  letter-spacing: -.02em;
  background: #fff;
}
.brand-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .14em;
  color: var(--blue);
  line-height: 1.1;
  white-space: nowrap;
}
.brand-word small {
  display: block;
  font-family: var(--serif);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  border-top: 1.5px solid var(--blue);
  padding-top: 3px;
  margin-top: 2px;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.nav-tools {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  padding: 7px 13px;
  border-radius: 999px;
}
.nav-links a.nav-tools:hover { background: #dbe6fa; }
.nav-cta { white-space: nowrap; flex: none; padding: 11px 20px; font-size: 14.5px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(33, 84, 207, .10), transparent 60%),
    radial-gradient(800px 460px at -8% 112%, rgba(17, 55, 107, .08), transparent 60%),
    var(--bg-soft);
  padding: 84px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 55, 107, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: linear-gradient(115deg, transparent 48%, black 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 48%, black 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* Símbolo de encendido en neón verde (solo el trazo, sin fondo) */
.neon-on {
  --neon: #1fe06f;
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--neon);
  filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 6px rgba(31, 224, 111, .75));
}
@media (prefers-reduced-motion: no-preference) {
  .neon-on { animation: neonPulso 2.4s ease-in-out infinite, neonParpadeo 7s steps(1) infinite; }
}
@keyframes neonPulso {
  0%, 100% { filter: drop-shadow(0 0 2px var(--neon)) drop-shadow(0 0 6px rgba(31, 224, 111, .75)); }
  50% { filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 11px rgba(31, 224, 111, .95)); }
}
/* Parpadeo breve de tubo de neón cada pocos segundos */
@keyframes neonParpadeo {
  0%, 88%, 91%, 94%, 100% { opacity: 1; }
  89.5% { opacity: .35; }
  92.5% { opacity: .6; }
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.14;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--blue); flex: none; }

.hero-photo { position: relative; }
.hero-photo > img:not(.deco) {
  width: 100%;
  border-radius: 26px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero-photo::before {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 62%;
  height: 62%;
  border-radius: 26px;
  background: var(--tint);
  z-index: -1;
}
.float-chip {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.float-chip .fc-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }

/* Objetos decorativos con parallax */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 20px 28px rgba(11, 40, 80, .30));
  will-change: transform;
  transform: rotate(var(--rot, 0deg));
}
.deco-balanza { top: -34px; right: -26px; width: 150px; }
.band-wrap { position: relative; }
.deco-carpeta { top: -44px; right: 52px; width: 136px; z-index: 4; }
.deco-pasaporte { top: -26px; left: -28px; width: 118px; }

/* ---------- Banda de datos ---------- */
/* ---------- Banda de cifras: tarjeta flotante sobre el hero ---------- */
.stats-band { position: relative; z-index: 3; margin-top: -58px; padding-bottom: 8px; }
.stats-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(11, 40, 80, .12), 0 2px 8px rgba(11, 40, 80, .05);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.stats-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #4285F4 0%, #4285F4 18%, #EA4335 38%, #FBBC05 62%, #34A853 82%, #34A853 100%);
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px 18px;
  text-align: left;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat strong.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.stat .stat-label { font-size: 15px; font-weight: 800; color: var(--ink); }
.stat .stat-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat .stat-stars { color: #FBBC05; font-size: 13px; letter-spacing: 2px; margin: 1px 0 2px; }
.stat:first-child strong.stat-num {
  background: linear-gradient(100deg, #b8860b, #e3a91d 45%, #f5d27a 70%, #c9971c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stats-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.stats-foot b { color: var(--navy); }
.stats-foot .stat-days { font-family: var(--serif); font-size: 20px; color: var(--blue); margin: 0; }
.stat-num { font-variant-numeric: tabular-nums; }

/* Lunes a viernes: los cinco días aparecen uno a uno y una línea los recorre */
.stat-days {
  position: relative;
  display: flex !important;
  width: max-content;
  gap: 7px;
  padding-bottom: 6px;
  margin: 0 auto 4px;
}
.stat-days i {
  font-style: normal;
  display: inline-block;
}
.stat-days::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), #7fa4f0);
}
.stat-days.prep i { opacity: 0; transform: translateY(10px) scale(.7); }
.stat-days.prep::after { transform: scaleX(0); transform-origin: left; }
.stat-days.go i {
  opacity: 1;
  transform: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.stat-days.go i:nth-child(1) { transition-delay: 0s; }
.stat-days.go i:nth-child(2) { transition-delay: .18s; }
.stat-days.go i:nth-child(3) { transition-delay: .36s; }
.stat-days.go i:nth-child(4) { transition-delay: .54s; }
.stat-days.go i:nth-child(5) { transition-delay: .72s; }
.stat-days.go::after { transform: scaleX(1); transition: transform .7s ease 1s; }

.stat .stat-ico {
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(33, 84, 207, .25);
  transition: transform .25s ease;
}
.stat:hover .stat-ico { transform: translateY(-3px) rotate(-5deg); }
.stat .stat-ico--google {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(11, 40, 80, .12);
}

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #6f93e8);
  opacity: 0;
  transition: opacity .18s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #c9d7f1;
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--navy); letter-spacing: -.01em; }
.service-card p { font-size: 14.5px; color: var(--muted); }

/* Servicios plegables: icono y título visibles, descripción al tocar */
.services-grid { align-items: start; }
.service-card { padding: 0; }
.service-card .svc-h { margin: 0; font-size: inherit; }
.svc-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 26px 22px 20px;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}
.svc-head .service-icon {
  background: linear-gradient(140deg, var(--blue) 0%, var(--navy) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(33, 84, 207, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover .svc-head .service-icon,
.service-card.open .svc-head .service-icon {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(33, 84, 207, .35);
}
.svc-title { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; padding-right: 30px; }
.svc-chev {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: transform .25s ease, background .2s ease;
}
.service-card.open .svc-chev { transform: rotate(180deg); background: var(--tint); }
.svc-head:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; border-radius: var(--radius); }
.svc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.svc-body > div { overflow: hidden; }
.svc-body p { padding: 0 22px 22px; margin: 0; }
.service-card.open .svc-body { grid-template-rows: 1fr; }
.service-card.open { border-color: #c9d7f1; box-shadow: var(--shadow); }

/* ---------- Banda papeleo ---------- */
.relief-band {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  align-items: stretch;
  box-shadow: var(--shadow);
}
.relief-band .rb-content { padding: 48px; align-self: center; }
.relief-band h2 {
  font-family: var(--serif);
  font-size: clamp(23px, 2.8vw, 32px);
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
.relief-band p { color: var(--muted); max-width: 56ch; margin-bottom: 24px; }
/* Título con efecto máquina de escribir */
.tw-rest { visibility: hidden; }
.tw-caret {
  display: inline-block;
  width: 3px;
  height: .95em;
  margin: 0 1px 0 2px;
  vertical-align: -.08em;
  border-radius: 2px;
  background: var(--blue);
  animation: twBlink 1s steps(1) infinite;
}
.tw-caret.tw-done { animation: twFade .5s ease forwards; }
@keyframes twBlink { 50% { opacity: 0; } }
@keyframes twFade { to { opacity: 0; width: 0; margin: 0; } }

/* Beneficios: lista normal por defecto; con JS se convierte en rotador animado */
.benefits { margin: 4px 0 18px; }
.ben-tabs, .ben-bar { display: none; }
.ben-list { list-style: none; display: grid; gap: 10px; }
.ben-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.ben-list em { display: block; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 2px; }
.ben-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
  margin-top: 1px;
}
.relief-band p.ben-one { color: var(--ink); font-size: 15px; margin-bottom: 22px; }
.ben-one strong { color: var(--navy); }

.benefits.anim .ben-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ben-tab {
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.ben-tab.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.benefits.anim .ben-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  margin-bottom: 14px;
}
/* Barra de carga con un brillo muy leve (bloom) */
.ben-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), #5b8dff);
  box-shadow: 0 0 4px rgba(61, 123, 255, .45), 0 0 9px rgba(61, 123, 255, .22);
}
.ben-bar i.run { width: 100%; transition: width var(--ben-ms, 5000ms) linear; }
.benefits.anim .ben-list { position: relative; display: block; min-height: 58px; }
.benefits.anim .ben-list li {
  position: absolute;
  inset: 0 0 auto 0;
  font-size: 17px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .3, 1);
  pointer-events: none;
}
.benefits.anim .ben-list li em { display: none; }
.benefits.anim .ben-list li.on { opacity: 1; transform: none; }
/* Al activar el rotador no hay transición: evita ver las 9 frases superpuestas desvaneciéndose */
.benefits.ben-init .ben-list li { transition: none !important; }
.benefits.anim .ben-list li.out { opacity: 0; transform: translateY(-16px); }
@media (max-width: 680px) {
  .benefits.anim .ben-list { min-height: 74px; }
  .benefits.anim .ben-list li { font-size: 16px; }
}

.relief-band figure { margin: 0; position: relative; }
.relief-band figure > img:not(.deco) {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

/* Carrusel de negocios (banda papeleo) */
.relief-band figure.nc { position: relative; min-height: 340px; height: 100%; overflow: hidden; }
.nc-track { position: absolute; inset: 0; }
.nc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.nc-slide.on { opacity: 1; z-index: 1; }
.nc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 7s ease-out; }
.nc-slide.on img { transform: scale(1); }
.nc-slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 120px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(11, 40, 80, .18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.nc-slide.on figcaption { opacity: 1; transform: none; }
.nc-slide figcaption b { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.nc-slide figcaption span { font-family: var(--serif); font-size: 17px; line-height: 1.3; color: var(--navy-deep); }
.nc-dots { position: absolute; right: 14px; bottom: 20px; z-index: 3; display: flex; gap: 6px; }
.nc-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .7); cursor: pointer; overflow: hidden; transition: width .3s ease, background .3s; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.nc-dot i { display: block; height: 100%; width: 0; background: #fff; }
.nc-dot.on { width: 28px; background: rgba(255, 255, 255, .45); }
.nc.anda .nc-dot.on i { animation: ncProg var(--nc-ms, 5s) linear forwards; }
.nc.pausa .nc-dot.on i { animation-play-state: paused; }
@keyframes ncProg { to { width: 100%; } }
@media (max-width: 960px) { .relief-band figure.nc { min-height: 0; height: auto; aspect-ratio: 3 / 2; } }
@media (max-width: 560px) {
  .nc-slide figcaption { left: 10px; right: auto; bottom: 30px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 10px; }
  .nc-slide figcaption b { font-size: 10px; }
  .nc-slide figcaption span { font-size: 13px; }
  .nc-dots { left: 0; right: 0; bottom: 12px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-slide, .nc-slide img, .nc-slide figcaption { transition: none; transform: none; }
}

/* ---------- Calendario fiscal ---------- */
.cf-hero { padding-bottom: 34px; }
.cf-hero h1 { margin-bottom: 6px; }
.cf-estado { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); cursor: help; }
.cf-estado.ok { color: var(--navy); }
.cf-est-f { color: var(--muted); font-weight: 600; }
.cf-pulso { width: 9px; height: 9px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: cfPulso 2s infinite; flex: none; }
@keyframes cfPulso { 70% { box-shadow: 0 0 0 9px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.cf-sec { padding-top: 26px; }

/* Próximo plazo */
.cf-proximo {
  --u: #7fa4f0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  margin-bottom: 18px;
  border-radius: 22px;
  color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(127, 164, 240, .35), transparent 60%), linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 0 18px 40px rgba(11, 40, 80, .25);
  animation: rsvSube .5s cubic-bezier(.2, .9, .3, 1.2);
}
.cf-proximo.u-alta { --u: #ff8a80; }
.cf-proximo.u-media { --u: #ffd166; }
.cf-proximo.cf-esqueleto { min-height: 136px; background: linear-gradient(100deg, #e8eef8 30%, #f4f7fc 50%, #e8eef8 70%); background-size: 200% 100%; animation: cfSkel 1.2s linear infinite; box-shadow: none; }
@keyframes cfSkel { to { background-position: -200% 0; } }
.cf-px-num { width: 92px; height: 92px; border-radius: 20px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; align-content: center; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--u) 60%, transparent); }
.cf-px-num b { font-family: var(--serif); font-size: 40px; line-height: 1; }
.cf-px-num b.hoy { font-size: 26px; }
.cf-px-num span { font-size: 12px; font-weight: 700; opacity: .85; }
.cf-px-k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--u); margin: 0 0 4px; }
.cf-px-txt h2 { font-family: var(--serif); font-size: 26px; color: #fff; margin: 0 0 8px; }
.cf-px-mods { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.cf-px-mods b { color: #fff; background: rgba(255, 255, 255, .16); padding: 1px 7px; border-radius: 6px; margin-right: 4px; }
.cf-px-barra { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .15); margin-top: 12px; overflow: hidden; max-width: 360px; }
.cf-px-barra i { display: block; height: 100%; background: var(--u); border-radius: 5px; transition: width .8s ease; }
.cf-px-acc { display: grid; gap: 8px; }
.cf-px-acc .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cf-px-acc .btn-primary { background: #fff; color: var(--navy); }

/* Barra de filtros fija */
.cf-barra {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 40, 80, .08);
}
.cf-segs { display: flex; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 14px; }
.cf-seg { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--muted); padding: 8px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.cf-seg.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11, 40, 80, .12); }
.cf-barra-2 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cf-mis-btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--navy); padding: 9px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: all .2s; }
.cf-mis-btn.activo { border-color: #d4af37; background: #fff8e6; color: #8a6a1f; }
.cf-mis-btn[aria-expanded="true"] { border-color: var(--blue); }
.cf-buscar-wrap { position: relative; display: flex; align-items: center; color: var(--muted); }
.cf-buscar-wrap svg { position: absolute; left: 12px; pointer-events: none; }
.cf-buscar { font-family: inherit; font-size: 15px; padding: 9px 12px 9px 34px; border: 2px solid var(--line); border-radius: 12px; width: 210px; }
.cf-buscar:focus { outline: none; border-color: var(--blue); }
.cf-mis { flex-basis: 100%; padding: 6px 4px 2px; animation: rsvSube .3s ease; }
.cf-mis-tit { font-size: 13.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.cf-mis-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-mchip { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--ink); padding: 6px 11px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.cf-mchip b { color: var(--navy); }
.cf-mchip.on { border-color: #d4af37; background: #fff8e6; }
.cf-mchip.on::before { content: "★ "; color: #d4af37; }
.cf-mis-pie { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 10px; }
.cf-link { font-family: inherit; font-size: 13px; font-weight: 800; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; }
.cf-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; }
.cf-switch input { position: absolute; opacity: 0; }
.cf-switch span { width: 36px; height: 21px; border-radius: 21px; background: #cfd8e4; position: relative; transition: background .2s; flex: none; }
.cf-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.cf-switch input:checked + span { background: var(--blue); }
.cf-switch input:checked + span::after { transform: translateX(15px); }

/* Pestañas (solo móvil/tablet) */
.cf-tabs { display: none; }

.cf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cf-resumen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 4px; }
.cf-resumen p { margin: 0; font-size: 14px; color: var(--muted); }
.cf-resumen b { color: var(--navy); }
.cf-add-todos { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--blue); text-decoration: none; padding: 7px 12px; border-radius: 10px; background: var(--tint); }
.cf-add-todos:hover { background: #dbe6fb; }
.cf-mes { font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 22px 0 10px; display: flex; align-items: center; gap: 12px; }
.cf-mes::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Tarjeta de plazo */
.cf-plazo {
  --c: var(--blue);
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(11, 40, 80, .05);
  scroll-margin-top: calc(var(--cf-top, 80px) + 150px);
  animation: rsvSube .4s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition: box-shadow .2s, transform .2s;
}
.cf-plazo:hover { box-shadow: 0 10px 26px rgba(11, 40, 80, .1); }
.cf-plazo.destaca { animation: cfDestaca 1.6s ease; }
@keyframes cfDestaca { 0%, 60% { box-shadow: 0 0 0 4px rgba(33, 84, 207, .35); } }
.cat-iva { --c: #2154CF; }
.cat-renta { --c: #1a8f4d; }
.cat-renta-sociedades { --c: #7b4fd0; }
.cat-sociedades { --c: #11376B; }
.cat-informativas { --c: #c58a12; }
.cf-fecha { text-align: center; border-radius: 14px; background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); padding: 7px 4px; align-self: start; }
.cf-fecha small { display: block; font-size: 11px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .05em; }
.cf-fecha b { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.05; color: var(--navy); }
.cf-fecha span { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.cf-cab { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.cf-cat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.cf-falta { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bg-soft); color: var(--muted); }
.cf-plazo.u-alta .cf-falta { background: #fde8e6; color: #b3261e; }
.cf-plazo.u-media .cf-falta { background: #fff4d6; color: #8a6a1f; }
.cf-titulos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.cf-tit-mod { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 18%, #fff); }
.cf-tit-mod b { font-size: 15px; color: var(--c); font-variant-numeric: tabular-nums; }
.cf-tit-mod em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--navy-deep); }
.cf-det summary { font-size: 13px; font-weight: 800; color: var(--blue); cursor: pointer; padding: 4px 0; list-style: none; }
.cf-det summary::-webkit-details-marker { display: none; }
.cf-det summary::after { content: " ▾"; }
.cf-det[open] summary::after { content: " ▴"; }
.cf-grupo { font-size: 12.5px; color: var(--muted); margin: 2px 0 4px; }
.cf-cuerpo ul { list-style: none; margin: 0; padding: 0; }
.cf-cuerpo li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 13.5px; color: var(--ink); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cf-cuerpo li:last-child { border-bottom: 0; }
.cf-mods { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.cf-mod { font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--navy); font-variant-numeric: tabular-nums; }
.cf-mod.mio { background: #fff4d6; color: #8a6a1f; }
.cf-acc { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cf-add { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--blue); text-decoration: none; }
.cf-vacio { padding: 28px 22px; text-align: center; color: var(--muted); background: var(--bg-soft); border-radius: 18px; }
.cf-vacio span { font-size: 34px; display: block; margin-bottom: 6px; }
.cf-vacio p { margin: 0 auto 10px; max-width: 44ch; }
.cf-skel { height: 120px; border-radius: 18px; margin-bottom: 12px; background: linear-gradient(100deg, #eef2f8 30%, #f7f9fc 50%, #eef2f8 70%); background-size: 200% 100%; animation: cfSkel 1.2s linear infinite; }

/* Lateral: mes, novedades, ayuda */
.cf-side { position: sticky; top: 150px; display: grid; gap: 16px; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
.cf-mesbox, .cf-noticias { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 12px; box-shadow: var(--shadow); }
.cf-mes-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cf-mes-cab h2 { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0; }
.cf-nav { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer; }
.cf-nav:disabled { opacity: .35; cursor: default; }
.cf-grid-dias, .cf-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cf-grid-dias span { font-size: 11px; font-weight: 800; color: var(--muted); padding: 2px 0; }
.cf-dia { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 10px; font-size: 13px; color: var(--ink); border: 0; background: transparent; font-family: inherit; padding: 0; }
.cf-dia b { font-weight: 700; }
.cf-dia.pasado { color: #b6c0cd; }
.cf-dia.hoy { box-shadow: inset 0 0 0 2px var(--blue); font-weight: 800; }
.cf-dia.con { background: var(--tint); cursor: pointer; transition: transform .15s, background .15s; }
.cf-dia.con:hover { transform: scale(1.08); background: #dbe6fb; }
.cf-dia.con b { font-weight: 800; color: var(--navy); }
.cf-dia.pasado.con { background: var(--bg-soft); cursor: default; }
.cf-dia i { display: flex; gap: 2px; justify-content: center; height: 6px; }
.cf-dia s, .cf-leyenda s { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cf-leyenda { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.cf-leyenda span { display: inline-flex; align-items: center; gap: 5px; }
.cf-leyenda s { width: 8px; height: 8px; }
.cf-noticias h2 { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 0; }
.cf-side-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.cf-noticias ul { list-style: none; margin: 0; padding: 0; }
.cf-noticias li { border-top: 1px solid var(--line); }
.cf-noticias a { display: grid; gap: 4px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.cf-noticias a:hover .cf-n-tit { color: var(--blue); }
.cf-n-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cf-fuente { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: #fff; background: var(--navy); }
.cf-fuente.boe { background: #b3261e; }
.cf-nuevo { font-size: 10.5px; font-weight: 800; color: #1a8f4d; background: var(--ok-soft); padding: 1px 6px; border-radius: 6px; }
.cf-n-tit { font-size: 13.5px; line-height: 1.4; transition: color .15s; }
.cf-ayuda { background: var(--tint); border: 1px solid #c9d7f1; border-radius: 18px; padding: 18px; }
.cf-ayuda h3 { font-family: var(--serif); font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.cf-ayuda p { font-size: 13.5px; color: var(--ink); margin-bottom: 12px; }
.cf-zona { padding-bottom: 110px; }
.cf-legal { font-size: 12.5px; color: var(--muted); margin-top: 0; }
.cf-legal a { color: var(--blue); }

@media (max-width: 1100px) {
  .cf-barra { position: relative; top: auto !important; box-shadow: 0 4px 14px rgba(11, 40, 80, .06); }
  .cf-zona { padding-bottom: 0; }
  .cf-legal { margin-top: 24px; }
  .cf-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--bg-soft); border-radius: 14px; }
  .cf-tab { flex: 1; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--muted); padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .cf-tab.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11, 40, 80, .12); }
  .cf-tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 10px; font-size: 11px; background: var(--blue); color: #fff; }
  .cf-tab-n:empty { display: none; }
  .cf-layout { grid-template-columns: 1fr; gap: 16px; }
  .cf-side { position: static; max-height: none; overflow: visible; }
  .cf-layout .cf-panel { display: none; }
  .cf-layout[data-vista="plazos"] [data-panel="plazos"],
  .cf-layout[data-vista="mes"] [data-panel="mes"],
  .cf-layout[data-vista="noticias"] [data-panel="noticias"] { display: block; animation: rsvIn .25s ease; }
  .cf-proximo { grid-template-columns: auto minmax(0, 1fr); }
  .cf-px-acc { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cf-barra { padding: 8px; border-radius: 16px; gap: 8px; }
  .cf-segs { width: 100%; }
  .cf-seg { flex: 1; justify-content: center; padding: 8px 4px; font-size: 12.5px; flex-direction: column; gap: 2px; }
  .cf-barra-2 { width: 100%; flex-wrap: nowrap; }
  .cf-mis-btn { flex: none; padding: 9px 11px; }
  .cf-buscar-wrap { flex: 1; }
  .cf-buscar { width: 100%; }
  .cf-proximo { padding: 18px; gap: 14px; margin-bottom: 14px; }
  .cf-px-num { width: 70px; height: 70px; }
  .cf-px-num b { font-size: 30px; }
  .cf-px-txt h2 { font-size: 21px; }
  .cf-px-acc { grid-template-columns: 1fr; }
  .cf-plazo { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cf-fecha b { font-size: 23px; }
  .cf-tit-mod { padding: 5px 8px; }
  .cf-resumen { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .cf-plazo, .cf-proximo, .cf-skel, .cf-proximo.cf-esqueleto { animation: none; } .cf-pulso { animation: none; } }

/* ---------- Calculadoras (cuota de autónomos, sueldo neto) ---------- */
.calc-hero h1 { margin-bottom: 6px; }
.calc-oficial { display: inline-block; line-height: 1.5; margin-top: 12px; padding: 6px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--navy); }
.calc-oficial span { color: var(--ok); font-weight: 800; margin-right: 4px; }
.calc-oficial a { color: var(--blue); }
.calc-sec { padding-top: 28px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; align-items: start; }
.calc-form { display: grid; gap: 18px; }
.calc-paso { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: 0 6px 20px rgba(11, 40, 80, .05); }
.calc-paso h2 { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: var(--navy); margin: 0 0 14px; }
.calc-paso h2 span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--sans, inherit); font-size: 14px; font-weight: 800; }
.calc-seg { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--bg-soft); border-radius: 14px; }
.calc-seg button { flex: 1 1 auto; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--muted); padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.calc-seg button.on { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(11, 40, 80, .12); }
.calc-sub { margin-top: 6px; }
.calc-sub[hidden], #caTp2[hidden], #caTp3[hidden] { display: none; }
.calc-preg { font-size: 14px; font-weight: 800; color: var(--navy-deep); margin: 14px 0 8px; }
.calc-label { display: block; font-size: 14px; font-weight: 800; color: var(--navy-deep); margin: 16px 0 6px; }
.calc-label small { font-weight: 600; color: var(--muted); }
.calc-dinero { position: relative; }
.calc-dinero input { width: 100%; font-family: inherit; font-size: 24px; font-weight: 800; color: var(--navy); padding: 12px 44px 12px 16px; border: 2px solid var(--line); border-radius: 14px; font-variant-numeric: tabular-nums; transition: border-color .2s; }
.calc-dinero input:focus { outline: none; border-color: var(--blue); }
.calc-dinero span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 800; color: var(--muted); }
.calc-range { width: 100%; margin: 12px 0 2px; accent-color: var(--blue); height: 28px; }
.calc-nota { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.calc-nota b { color: var(--navy); }
.calc-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-step { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 14px; }
.calc-step button { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #fff; font-size: 20px; font-weight: 800; color: var(--blue); cursor: pointer; box-shadow: 0 2px 6px rgba(11, 40, 80, .1); }
.calc-step b { min-width: 34px; text-align: center; font-size: 18px; color: var(--navy); }
.calc-check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--blue); }

.calc-res { position: sticky; top: 100px; display: grid; gap: 14px; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(11, 40, 80, .12); }
.calc-res-top { text-align: center; padding: 18px 16px; border-radius: 18px; color: #fff; background: radial-gradient(500px 220px at 100% 0%, rgba(127, 164, 240, .35), transparent 60%), linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%); }
.calc-k { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a9c2f5; }
.calc-grande { margin: 4px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.calc-grande b { font-family: var(--serif); font-size: 48px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-grande span { font-size: 16px; font-weight: 700; opacity: .85; }
.calc-anual { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.calc-anual b { color: #ffe08a; }
.calc-tp { padding: 14px 16px; border-radius: 16px; background: #fff8e6; border: 1px solid #ecd9a0; animation: rsvSube .4s cubic-bezier(.2, .9, .3, 1.2); }
.calc-tp p { margin: 0; font-size: 14.5px; color: var(--ink); }
.calc-tp-k { font-weight: 800; color: #8a6a1f !important; margin-bottom: 4px !important; }
.calc-ahorro { color: var(--ok); font-weight: 800; }
.calc-tramos-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; margin-bottom: 8px; }
.calc-tramos-cab span { font-size: 14px; font-weight: 800; color: var(--navy); text-transform: none; }
.calc-tramos-cab small { font-size: 12.5px; color: var(--muted); }
.calc-escala { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; align-items: end; height: 46px; }
.calc-escala i { display: block; border-radius: 4px; background: #dbe5f6; transition: background .3s, transform .3s; }
.calc-escala i.red { height: 40%; }
.calc-escala i.gen:nth-child(4) { height: 48%; } .calc-escala i.gen:nth-child(5) { height: 52%; } .calc-escala i.gen:nth-child(6) { height: 56%; }
.calc-escala i.gen:nth-child(7) { height: 60%; } .calc-escala i.gen:nth-child(8) { height: 64%; } .calc-escala i.gen:nth-child(9) { height: 68%; }
.calc-escala i.gen:nth-child(10) { height: 72%; } .calc-escala i.gen:nth-child(11) { height: 76%; } .calc-escala i.gen:nth-child(12) { height: 80%; }
.calc-escala i.gen:nth-child(13) { height: 85%; } .calc-escala i.gen:nth-child(14) { height: 92%; } .calc-escala i.gen:nth-child(15) { height: 100%; }
.calc-escala i.pas { background: #a9c2f5; }
.calc-escala i.on { background: linear-gradient(180deg, #d4af37, #b8860b); box-shadow: 0 4px 10px rgba(184, 134, 11, .35); }
.calc-hint { font-size: 13.5px; color: var(--ink); background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0 0; }
.calc-base label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--navy-deep); }
.calc-base label b { color: var(--blue); font-variant-numeric: tabular-nums; }
.calc-base-ext { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.calc-desglose summary { font-size: 13.5px; font-weight: 800; color: var(--blue); cursor: pointer; }
.calc-desglose ul, .calc-leyenda { list-style: none; margin: 8px 0 0; padding: 0; }
.calc-desglose li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.calc-cta { padding: 16px; border-radius: 16px; background: var(--tint); border: 1px solid #c9d7f1; }
.calc-cta p { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.calc-cta b { color: var(--navy); }
.calc-cta .btn { width: 100%; justify-content: center; }
.calc-legal { font-size: 12px; color: var(--muted); margin: 0; }
.calc-coste { font-size: 13px; color: var(--muted); margin: 0; }
.calc-coste b { color: var(--navy); }
.calc-pop { animation: rsvPop .4s cubic-bezier(.3, 1.6, .5, 1); }

/* Donut del sueldo */
.calc-donut { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.calc-donut svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.calc-donut circle { fill: none; stroke-width: 16; transition: stroke-dasharray .6s ease, stroke-dashoffset .6s ease; }
.calc-donut .d-fondo { stroke: var(--bg-soft); }
.d-neto { stroke: #1a8f4d; background: #1a8f4d; }
.d-ss { stroke: #2154CF; background: #2154CF; }
.d-irpf { stroke: #d4a017; background: #d4a017; }
.calc-leyenda li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); padding: 4px 0; }
.calc-leyenda s { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.calc-leyenda b { margin-left: auto; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.calc-tabla td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.calc-tabla td:last-child { text-align: right; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc-tabla small { color: var(--muted); font-weight: 600; }
.calc-tabla tr.tot td { border-bottom: 0; font-size: 15.5px; color: #1a8f4d; font-weight: 800; }

@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-res { position: static; }
}
@media (max-width: 560px) {
  .calc-paso { padding: 18px 16px; border-radius: 18px; }
  .calc-seg button { font-size: 13px; padding: 9px 8px; }
  .calc-grande b { font-size: 42px; }
  .calc-res { padding: 16px; }
  .calc-donut { grid-template-columns: 100px 1fr; }
  .calc-donut svg { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) { .calc-donut circle, .calc-escala i { transition: none; } }

/* ---------- Calculadora de IVA ---------- */
.iv-opc { margin-left: auto; font-family: var(--sans, inherit); font-size: 12px; font-weight: 800; color: var(--muted); background: var(--bg-soft); padding: 4px 10px; border-radius: 10px; }
.iv-tipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.iv-tipo { display: grid; gap: 2px; text-align: left; font-family: inherit; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.iv-tipo b { font-family: var(--serif); font-size: 26px; color: var(--navy); line-height: 1.1; }
.iv-tipo span { font-size: 13px; font-weight: 800; color: var(--blue); }
.iv-tipo small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.iv-tipo.on { border-color: var(--blue); background: var(--tint); box-shadow: 0 8px 20px rgba(33, 84, 207, .18); }
@media (hover: hover) and (pointer: fine) { .iv-tipo:not(.on):hover { border-color: #b9cbf2; transform: translateY(-2px); } }
.iv-barra { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: var(--bg-soft); }
.iv-barra i { display: block; height: 100%; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.iv-b-base { background: var(--blue); } .iv-b-iva { background: var(--gold, #d4af37); } .iv-b-re { background: #e07a3f; }
.calc-tabla tr.sub td { font-weight: 800; color: var(--navy); }
.iv-acciones { display: flex; gap: 10px; }
.iv-acciones .btn:first-child { flex: 1; justify-content: center; }
.iv-rapida { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.iv-rapida th { text-align: right; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0; }
.iv-rapida td { text-align: right; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.iv-rapida th:first-child, .iv-rapida td:first-child { text-align: left; }
.iv-rapida td:last-child { font-weight: 800; color: var(--navy); }

/* Enlaces a herramientas dentro de los servicios de la portada */
.svc-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.svc-tools a { font-size: 14px; font-weight: 800; color: var(--blue); text-decoration: none; }
.svc-tools a:hover { text-decoration: underline; }

/* ---------- Guías SEO bajo las herramientas ---------- */
.seo-guia { padding: 56px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); border-top: 1px solid var(--line); }
.seo-guia-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.seo-art { max-width: 760px; }
.seo-art h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); color: var(--navy); margin: 34px 0 12px; }
.seo-art h2:first-of-type { margin-top: 6px; }
.seo-art h3 { font-size: 18px; color: var(--navy-deep); margin: 22px 0 10px; }
.seo-art p, .seo-art li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.seo-art a { color: var(--blue); font-weight: 700; }
.seo-act { display: inline-block; font-size: 12.5px !important; font-weight: 700; color: var(--muted) !important; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px 12px; margin: 0 0 10px; }
.seo-tabla { margin: 8px 0 14px; }
.seo-lista, .seo-pasos, .seo-links { padding-left: 22px; margin: 6px 0 12px; display: grid; gap: 6px; }
.seo-links { list-style: none; padding: 0; grid-template-columns: 1fr 1fr; gap: 8px; }
.seo-links a { display: block; padding: 11px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; text-decoration: none; transition: border-color .15s, transform .15s; }
.seo-links a:hover { border-color: #b9cbf2; transform: translateY(-1px); }
.seo-faq { display: grid; gap: 8px; }
.seo-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.seo-faq summary { font-weight: 800; color: var(--navy); cursor: pointer; font-size: 15.5px; }
.seo-faq details p { margin: 8px 0 0; font-size: 15px; }
.seo-fuente { font-size: 13px !important; color: var(--muted) !important; }
.seo-lateral { position: sticky; top: 110px; display: grid; gap: 12px; }
.seo-mini { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; box-shadow: 0 6px 18px rgba(11, 40, 80, .05); transition: transform .15s, border-color .15s; }
.seo-mini:hover { transform: translateY(-2px); border-color: #b9cbf2; }
.seo-mini b { color: var(--navy); font-size: 15px; }
.seo-mini span { color: var(--muted); font-size: 13px; }
@media (max-width: 960px) { .seo-guia-grid { grid-template-columns: 1fr; } .seo-lateral { position: static; } }
@media (max-width: 560px) { .seo-links { grid-template-columns: 1fr; } }

/* ---------- Página de preguntas del CCSE ---------- */
.pq-sec { padding-top: 28px; }
.pq-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.pq-indice { position: sticky; top: 110px; display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.pq-indice-t { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pq-indice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pq-indice a { display: block; padding: 7px 8px; border-radius: 10px; font-size: 13.5px; color: var(--ink); text-decoration: none; }
.pq-indice a:hover { background: var(--tint); }
.pq-indice a b { color: var(--blue); }
.pq-indice small { color: var(--muted); }
.pq-intro p { font-size: 16px; line-height: 1.65; color: var(--ink); }
.pq-tarea { margin-bottom: 36px; scroll-margin-top: 100px; }
.pq-tarea h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 27px); color: var(--navy); margin: 10px 0 4px; }
.pq-nota { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.pq-item { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.pq-item h3 { display: flex; gap: 10px; font-size: 16.5px; color: var(--navy-deep); margin: 0 0 10px; line-height: 1.4; }
.pq-item h3 span { flex: none; min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 13px; }
.pq-ops { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; }
.pq-ops li { font-size: 15px; color: var(--ink); padding: 7px 10px; border-radius: 10px; background: var(--bg-soft); }
.pq-ops li span { font-weight: 800; color: var(--muted); margin-right: 4px; }
.pq-item details[open] ~ .pq-ops li.ok, .pq-item:has(details[open]) .pq-ops li.ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.pq-item summary { font-size: 14px; font-weight: 800; color: var(--blue); cursor: pointer; }
.pq-item details p { margin: 8px 0 0; font-size: 14.5px; color: var(--ink); }
.pq-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--tint); border: 1px solid #c9d7f1; }
.pq-cta p { margin: 0; font-size: 15px; color: var(--ink); }
@media (max-width: 900px) { .pq-grid { grid-template-columns: 1fr; } .pq-indice { position: static; } }

/* ---------- Simulador de jubilación ---------- */
.ju-select { width: 100%; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy); padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.ju-select:focus { outline: none; border-color: var(--blue); }
.ju-cot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ju-cot b { font-family: var(--serif); font-size: 26px; color: var(--navy); }
.ju-cot small { font-size: 12.5px; color: var(--muted); }
.ju-azul { color: var(--blue); }
.ju-small { font-weight: 600; color: var(--muted); }
.ju-cuando button { flex: 1 1 30%; }
.ju-hijos { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ju-hijos[hidden] { display: none; }
.ju-linea { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.ju-linea:empty { display: none; }
.ju-hito { display: grid; text-align: center; line-height: 1.25; }
.ju-hito small { font-size: 11.5px; font-weight: 800; color: var(--muted); }
.ju-hito b { font-size: 15px; color: var(--navy); }
.ju-hito span { font-size: 11.5px; color: var(--muted); }
.ju-meta b { color: var(--blue); }
.ju-flecha { display: grid; gap: 4px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ju-flecha i { position: relative; display: block; height: 8px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.ju-flecha i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 6px; background: linear-gradient(90deg, #a9c2f5, var(--blue)); transition: width .5s; }
.ju-sust p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); }
.ju-sust b { color: var(--navy); }
.ju-sust-barra { height: 10px; border-radius: 6px; background: #f3e4bd; overflow: hidden; }
.ju-sust-barra i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #1a8f4d, #3fbf74); transition: width .5s; }

/* ---------- Canje del carnet de conducir ---------- */
.cn-pick { position: relative; }
.cn-pick-btn { width: 100%; display: flex; align-items: center; gap: 10px; font-family: inherit; font-size: 16px; text-align: left; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cn-pick-btn:hover { border-color: #c6d6e4; }
.cn-pick-btn.ok { border-color: var(--blue); background: var(--tint); box-shadow: 0 6px 16px rgba(33, 84, 207, .12); }
.cn-pick-btn b { flex: 1; color: var(--navy); font-weight: 800; }
.cn-pick-btn .cn-ph { color: var(--muted); font-weight: 600; }
.cn-pick-btn i { font-style: normal; color: var(--muted); }
.cn-flag { font-size: 22px; line-height: 1; }
.cn-pick-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 44px rgba(11, 40, 80, .18); padding: 8px; }
.cn-pick-pop[hidden] { display: none; }
.cn-pick-q { width: 100%; font-family: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.cn-pick-q:focus { outline: none; border-color: var(--blue); }
.cn-pick-pop ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.cn-pick-pop li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cn-pick-pop li:hover, .cn-pick-pop li.act { background: var(--tint); color: var(--navy); }
.cn-pick-pop li.cn-nada { color: var(--muted); cursor: default; }
#cnEmiBox[hidden], #cnTiempoBox[hidden], #cnCuandoBox[hidden], #cnDocsBox[hidden], #cnPasosBox[hidden] { display: none; }
#cnVerdict { display: block; }
#cnVerdict strong { font-size: 20px; }
.cn-perfil { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 26px; line-height: 1; }
.cn-perfil small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.ck-verdict p b { color: var(--navy); }
.cn-datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: -8px 0 26px; }
.cn-datos div { padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.cn-datos small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cn-datos b { font-size: 14.5px; color: var(--navy); }
#cnPaso2 h2 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0 0 12px; }
.cn-conduce { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.cn-conduce li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(11, 40, 80, .05); animation: rsvSube .5s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i) * 80ms); }
.cn-cat-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--tint); }
.cn-conduce strong { display: block; font-size: 16px; color: var(--navy); }
.cn-conduce p { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.cn-conduce b { color: var(--navy); }
.cn-promo { position: relative; margin: 0 0 30px; border-radius: 22px; overflow: hidden; min-height: 300px; display: flex; align-items: center; background: var(--navy); box-shadow: 0 20px 44px rgba(11, 40, 80, .2); }
.cn-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.cn-promo::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(7, 25, 50, .9) 0%, rgba(7, 25, 50, .72) 38%, rgba(7, 25, 50, 0) 66%); }
.cn-promo-txt { position: relative; z-index: 2; max-width: 56%; padding: 28px 30px; color: #fff; }
.cn-promo-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffe08a; margin-bottom: 8px; }
.cn-promo h3 { font-family: var(--serif); font-size: 27px; line-height: 1.15; color: #fff; margin: 0 0 8px; }
.cn-promo p { font-size: 14.5px; color: rgba(255, 255, 255, .88); margin: 0 0 16px; }
.cn-promo-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-promo .btn-primary { background: #fff; color: var(--navy); }
.cn-pasos { list-style: none; counter-reset: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cn-pasos li { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--bg-soft); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.cn-pasos b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 13px; }
.cn-fin { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t3d-carnet .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #e3ecff 0%, #b8cdf6 100%); }
.t3d-jubilacion .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #fff4dc 0%, #f1d79a 100%); }
.t3d-carnet .tag-live, .t3d-jubilacion .tag-live { background: #fff4d6; color: #8a6a1f; }
.t3d-dgt { position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px rgba(11, 40, 80, .16); font-size: 11.5px; font-weight: 800; color: var(--navy); transform: translateZ(50px); }
.t3d-dgt b { display: grid; place-items: center; height: 24px; padding: 0 7px; border-radius: 7px; background: #0b4a9c; color: #fff; font-size: 12px; letter-spacing: .06em; }
@media (max-width: 760px) {
  .cn-datos { grid-template-columns: 1fr 1fr; }
  .cn-promo { min-height: 0; flex-direction: column; align-items: stretch; }
  .cn-promo img { position: relative; height: 210px; }
  .cn-promo::before { display: none; }
  .cn-promo-txt { max-width: none; padding: 20px; }
}

/* ---------- Diseñador de facturas ---------- */
.fac-sec { padding: 64px 0 40px; }
.fac-sec.fac-sola { padding-top: 28px; }
.fac-cab { max-width: 680px; margin-bottom: 26px; }
.fac-cab h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); color: var(--navy); margin: 8px 0; }
.fac-cab p { color: var(--muted); }
.fac-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.fac-editor { display: grid; gap: 14px; }
.fac-bloque { margin: 0; padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.fac-bloque legend { padding: 0 6px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.fac-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fac-campos.fac-tres { grid-template-columns: 1fr 1fr 1fr; }
.fac-dos-c { margin-top: 12px; }
.fac-campos label, .fac-linea label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); min-width: 0; }
.fac-ancho { grid-column: 1 / -1; }
.fac-editor input, .fac-editor select, .fac-editor textarea { width: 100%; min-width: 0; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s; }
.fac-editor input:focus, .fac-editor select:focus, .fac-editor textarea:focus { outline: none; border-color: var(--blue); }
.fac-editor textarea { resize: vertical; }
.fac-editor input.mal { border-color: #e0a3a3; background: #fff6f6; }
.fac-colores { display: flex; gap: 10px; margin: 12px 0; }
.fac-colores button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.fac-colores button.on { box-shadow: 0 0 0 2.5px var(--c); transform: scale(1.1); }
.fac-logo-row { display: flex; gap: 8px; align-items: stretch; }
.fac-logo { flex: 1; display: block; position: relative; padding: 10px 12px; border: 1.5px dashed #b9cbf2; border-radius: 12px; background: var(--bg-soft); font-size: 13.5px; font-weight: 700; color: var(--blue); cursor: pointer; text-align: center; }
.fac-logo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fac-logo-quitar { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted); border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 0 12px; cursor: pointer; }
.fac-lineas { display: grid; gap: 10px; }
.fac-linea { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.fac-linea .fl-desc { grid-column: 1 / -1; }
.fl-quitar { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #fff; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(11, 40, 80, .18); }
.fl-quitar:hover { color: #c0392b; }
.fac-mas { margin-top: 10px; width: 100%; font-family: inherit; font-size: 14px; font-weight: 800; color: var(--blue); padding: 10px; border: 1.5px dashed #b9cbf2; border-radius: 12px; background: #fff; cursor: pointer; }
.fac-mas:hover { background: var(--tint); }
.fac-req { padding: 16px 18px; border-radius: 18px; background: #fff8e6; border: 1px solid #ecd9a0; transition: background .3s, border-color .3s; }
.fac-req.completa { background: #e9f7ef; border-color: #a9dcbf; }
.fac-req-top { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 700; }
.fac-req-top b { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.fac-req-barra { height: 8px; border-radius: 6px; background: rgba(11, 40, 80, .08); margin: 8px 0 10px; overflow: hidden; }
.fac-req-barra i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #d4af37, #1a8f4d); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.fac-req ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 12.5px; color: var(--muted); }
.fac-req li.ok { color: var(--ok); font-weight: 700; }
.fac-vista { position: sticky; top: 100px; }
.fl-sin-iva { grid-column: 1 / -1; justify-self: start; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fac-botones { display: flex; gap: 10px; margin-bottom: 14px; }
.fac-papel { padding: 22px; border-radius: 22px; background: linear-gradient(160deg, #e9eef8, #dfe6f3); }

/* La hoja (también se usa para imprimir) */
.fac-hoja { --fc: #2154CF; position: relative; aspect-ratio: 210 / 297; display: flex; flex-direction: column; gap: 22px; padding: 7% 7% 6%; background: #fff; color: #1f2733; font-family: "Manrope", system-ui, sans-serif; font-size: 11.5px; line-height: 1.45; border-radius: 4px; box-shadow: 0 24px 50px rgba(11, 40, 80, .18); overflow: hidden; }
.fh-cab { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.fh-emisor, .fh-cliente { display: grid; gap: 1px; }
.fh-emisor strong, .fh-cliente strong { font-size: 13.5px; color: #111; }
.fh-emisor span, .fh-cliente span { color: #5b6573; }
.fh-logo { max-width: 130px; max-height: 56px; object-fit: contain; margin-bottom: 8px; }
.fh-titulo { text-align: right; }
.fh-titulo h3 { margin: 0 0 6px; font-family: "Playfair Display", Georgia, serif; font-size: 30px; font-weight: 700; color: var(--fc); text-transform: uppercase; letter-spacing: .06em; line-height: 1; }
.fh-titulo dl { display: grid; grid-template-columns: auto auto; gap: 1px 10px; margin: 0; justify-content: end; }
.fh-titulo dt { color: #8a93a0; font-weight: 700; }
.fh-titulo dd { margin: 0; font-weight: 800; color: #111; }
.fh-cliente small, .fh-pago small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fc); margin-bottom: 2px; }
.fh-lineas { width: 100%; border-collapse: collapse; }
.fh-lineas th { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; text-align: right; color: #fff; background: var(--fc); padding: 7px 8px; }
.fh-lineas td { text-align: right; padding: 8px; border-bottom: 1px solid #e7eaf0; font-variant-numeric: tabular-nums; }
.fh-lineas th:first-child, .fh-lineas td:first-child { text-align: left; width: 50%; }
.fh-lineas td:last-child { font-weight: 800; }
.fh-pie { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-top: auto; }
.fh-pago { display: grid; gap: 8px; max-width: 48%; }
.fh-pago p { margin: 0; }
.fh-notas { color: #5b6573; font-style: italic; }
.fh-tot { border-collapse: collapse; min-width: 44%; font-variant-numeric: tabular-nums; }
.fh-tot td { padding: 4px 0; } .fh-tot td:last-child { text-align: right; padding-left: 16px; font-weight: 700; }
.fh-tot .fh-sub td { border-top: 1px solid #e7eaf0; padding-top: 7px; font-weight: 800; }
.fh-tot .fh-total td { padding: 9px 10px; font-size: 15px; font-weight: 800; color: #fff; background: var(--fc); }
.fh-legal { font-size: 9px; color: #8a93a0; border-top: 1px solid #e7eaf0; padding-top: 8px; }
.fh-ph { color: #b3bac6; font-style: italic; font-weight: 600; }
/* Clásica: filete dorado bajo la cabecera */
.fh-clasica .fh-cab { padding-bottom: 18px; border-bottom: 2px solid #d4af37; }
/* Moderna: banda de color arriba */
.fh-moderna { padding-top: 0; }
.fh-moderna .fh-cab { margin: 0 -7.6% 0; padding: 7% 7.6% 22px; background: var(--fc); color: #fff; }
.fh-moderna .fh-emisor strong, .fh-moderna .fh-titulo dd, .fh-moderna .fh-titulo h3 { color: #fff; }
.fh-moderna .fh-emisor span, .fh-moderna .fh-titulo dt { color: rgba(255, 255, 255, .78); }
.fh-moderna .fh-emisor .fh-ph { color: rgba(255, 255, 255, .55); }
.fh-moderna .fh-logo { background: #fff; padding: 6px; border-radius: 8px; }
.fh-moderna .fh-cliente { padding: 12px 14px; border-left: 4px solid var(--fc); background: #f5f7fb; }
/* Minimal: sin bloques de color */
.fh-minimal .fh-titulo h3 { font-family: "Manrope", sans-serif; font-weight: 300; letter-spacing: .25em; color: #111; }
.fh-minimal .fh-lineas th { background: none; color: var(--fc); border-bottom: 1.5px solid var(--fc); }
.fh-minimal .fh-tot .fh-total td { background: none; color: var(--fc); border-top: 1.5px solid var(--fc); }

.fac-ir { display: none; text-align: center; font-size: 14px; font-weight: 800; color: var(--blue); padding: 10px; border-radius: 12px; background: var(--tint); }
@media (max-width: 1100px) { .fac-grid { grid-template-columns: 1fr; } .fac-vista { position: static; scroll-margin-top: 90px; } .fac-ir { display: block; } }
@media (max-width: 760px) { .iv-tipos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .fac-campos, .fac-campos.fac-tres { grid-template-columns: 1fr; }
  .fac-papel { padding: 10px; border-radius: 16px; }
  .fac-hoja { aspect-ratio: auto; font-size: 10px; gap: 16px; }
  .fh-titulo h3 { font-size: 22px; }
  .fh-pie { flex-direction: column; } .fh-pago { max-width: none; } .fh-tot { width: 100%; }
  .fac-req ul { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; padding: 0 !important; margin: 0 !important; }
  body > *:not(main), main > *:not(.fac-sec), .fac-cab, .fac-editor, .fac-botones { display: none !important; }
  .fac-sec, .fac-sec .container, .fac-grid, .fac-vista, .fac-papel { display: block !important; position: static !important; padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; background: none !important; border-radius: 0 !important; }
  .fh-ph { visibility: hidden; }
  .fac-hoja { width: 210mm; height: 297mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; font-size: 10.5pt; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Herramientas TH: tarjetas ilustradas con efecto 3D */
.t3d-grid { perspective: 1200px; }
.tool-card.t3d {
  --tx: 0deg; --ty: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 24px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
  box-shadow: 0 10px 30px rgba(11, 40, 80, .08);
  animation: rsvSube .6s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
.tool-card.t3d.mueve { transition: transform .08s linear, box-shadow .3s ease; }
.tool-card.t3d.active:hover { box-shadow: 0 28px 60px rgba(11, 40, 80, .2); transform: rotateX(var(--tx)) rotateY(var(--ty)) translateY(-6px); }
.t3d-visual {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #e9f0ff 0%, #c9d9fb 100%);
  transform: translateZ(30px);
}
.t3d-calendario .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #fff6e2 0%, #f6dfaa 100%); }
.t3d-checklist .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #e6f6ee 0%, #bfe6cf 100%); }
.t3d-autonomos .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #f1ecff 0%, #d8ccf7 100%); }
.t3d-sueldo .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #e5f7f6 0%, #b9e6e2 100%); }
.t3d-iva .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #fdf0e6 0%, #f5d3b5 100%); }
.t3d-factura .t3d-visual { background: radial-gradient(120% 90% at 50% 100%, #ffffff 0%, rgba(255, 255, 255, 0) 60%), linear-gradient(160deg, #eaf1fb 0%, #c3d5ef 100%); }
.t3d-autonomos .tag-live, .t3d-sueldo .tag-live, .t3d-iva .tag-live, .t3d-factura .tag-live { background: #fff4d6; color: #8a6a1f; }
.t3d-halo { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: rgba(255, 255, 255, .65); filter: blur(24px); }
.t3d-visual img {
  position: relative;
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(11, 40, 80, .22));
  animation: t3dFlota 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.tool-card.t3d:hover .t3d-visual img { transform: scale(1.08) translateZ(40px) rotate(-3deg); }
@keyframes t3dFlota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.t3d-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; background: #fff; }
.t3d-body h3 { font-size: 20px; }
.t3d-link { color: inherit; text-decoration: none; }
.t3d-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.t3d-link:focus-visible { outline: none; }
.tool-card.t3d:has(.t3d-link:focus-visible) { outline: 3px solid rgba(33, 84, 207, .45); outline-offset: 3px; }
.t3d-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.t3d-chips li { font-size: 12px; font-weight: 800; color: var(--navy); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.t3d-cta { margin-top: 6px; pointer-events: none; }
.t3d-cta span { display: inline-block; transition: transform .25s ease; }
.tool-card.t3d:hover .t3d-cta span { transform: translateX(4px); }
.t3d-brillo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .45), transparent 45%);
  mix-blend-mode: soft-light;
}
.tool-card.t3d:hover .t3d-brillo { opacity: 1; }
@media (max-width: 960px) { .t3d-visual { height: 200px; } .t3d-visual img { width: 180px; height: 180px; } }
@media (prefers-reduced-motion: reduce) {
  .tool-card.t3d, .t3d-visual img { animation: none; transform: none !important; transition: none; }
}

/* ---------- Banda Herramientas ---------- */
.tools-band {
  background:
    radial-gradient(800px 420px at 108% -10%, rgba(33, 84, 207, .5), transparent 55%),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
}
.tools-band .kicker { color: #9db9f2; }
.tools-band h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 35px); margin-bottom: 14px; }
.tools-band p { color: rgba(255, 255, 255, .8); margin-bottom: 26px; max-width: 50ch; }
/* Jerarquía para escanear: negrita blanca en lo clave y el simulador destacado en serif */
.tools-band p.tb-copy { font-size: 16.5px; line-height: 1.7; margin-bottom: 18px; color: rgba(255, 255, 255, .72); }
.tb-copy strong { color: #fff; font-weight: 800; }
.tb-hl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.18em;
  color: #9db9f2;
  white-space: nowrap;
}
.tb-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.tb-facts li {
  display: inline-block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 6px 12px;
}
.tb-facts li svg { color: #9db9f2; vertical-align: -2px; margin-right: 6px; }
.tb-facts strong { color: #fff; font-weight: 800; }
.tool-preview {
  position: relative;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  padding: 24px;
}
.tool-preview > img:not(.deco) {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.tool-preview .tp-tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tool-preview h4 { font-size: 18px; margin-bottom: 8px; }
.tool-preview p { font-size: 14px; color: rgba(255, 255, 255, .75); margin-bottom: 0; }

/* ---------- Quiénes somos ---------- */
.about-photo { margin: 0 0 40px; }
.about-photo img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.values { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.values li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); }
.values li svg { flex: none; margin-top: 4px; color: var(--blue); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
/* Sin transform en hover: crearía un contenedor para el recuadro fijo (.team-pop.fx) y lo descolocaría */
.team-card:hover { box-shadow: var(--shadow-lg); border-color: #c9d7f1; }
.team-avatar {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--blue), var(--navy));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
}
.team-card strong { display: block; font-size: 15px; color: var(--navy); }
.team-card span { font-size: 13px; color: var(--muted); }
.team-card { position: relative; }
.team-card:hover { z-index: 30; }

/* Tarjeta expandida al pasar el ratón: foto completa + descripción */
.team-pop {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(10px) scale(.97);
  width: 272px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 40, 80, .28);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 40;
}
.team-card:hover .team-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
/* En escritorio el JS lo coloca respecto a la pantalla, dentro del hueco libre bajo la barra de navegación */
.team-pop.fx { position: fixed; bottom: auto; transform: translateY(8px) scale(.97); }
.team-card:hover .team-pop.fx { transform: none; }
.team-pop > img {
  width: 100%;
  height: min(300px, 36vh);
  object-fit: cover;
  object-position: top;
  display: block;
}
.team-pop .tp-info { padding: 14px 16px 16px; }
.team-pop .tp-info strong { font-size: 16px; color: var(--navy); display: block; }
.team-pop .tp-info em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--blue); display: block; margin: 2px 0 8px; }
.team-pop .tp-info p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- Testimonios (cinta animada) ---------- */
.testimonials {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(33, 84, 207, .40), transparent 60%),
    radial-gradient(700px 420px at 96% 112%, rgba(212, 175, 55, .14), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head p { color: rgba(255, 255, 255, .75); }
.testimonials .kicker { color: #e9c35c; }
.t-head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: center;
  margin-bottom: 44px;
}
.t-head-row .section-head { margin-bottom: 0; }

/* Anillo con la nota media en dorado */
.rating-ring {
  display: block;
  width: 232px;
  height: 232px;
  flex: none;
  border-radius: 50%;
  padding: 3px;
  text-decoration: none;
  background: conic-gradient(from 210deg, #8a6a1f, #d4af37, #f9e27a, #fff6c9, #d4af37, #8a6a1f);
  box-shadow: 0 0 44px rgba(212, 175, 55, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rating-ring:hover { transform: scale(1.03); box-shadow: 0 0 60px rgba(212, 175, 55, .5); }
.rating-ring .rr-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, #13355f, var(--navy-deep) 72%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
.rr-label { font-size: 11px; letter-spacing: .24em; font-weight: 800; color: rgba(255, 255, 255, .6); text-transform: uppercase; }
.gold-num {
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(100deg, #8a6a1f 0%, #d4af37 22%, #fff6c9 50%, #d4af37 78%, #8a6a1f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldshine 3.6s linear infinite;
  filter: drop-shadow(0 0 16px rgba(249, 226, 122, .45));
}
@keyframes goldshine { to { background-position: 200% center; } }
.rr-stars { color: #f2c14e; font-size: 17px; letter-spacing: 3px; text-shadow: 0 0 12px rgba(242, 193, 78, .55); }
.rr-count { font-size: 12.5px; color: rgba(255, 255, 255, .72); font-weight: 600; }

/* Cinta infinita con desvanecimiento en los bordes */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; gap: 20px; padding-right: 20px; }
.marquee-track.on { animation: cinta 48s linear infinite; }
@keyframes cinta { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track.on { animation-play-state: paused; }
.marquee .t-card { width: 350px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track.on { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}
.t-cta-row { display: flex; justify-content: center; margin-top: 36px; }
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t-stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; }
.t-card blockquote { font-size: 15px; color: var(--ink); flex: 1; }
.t-card footer { display: flex; align-items: center; gap: 11px; }
.t-card footer .team-avatar { width: 40px; height: 40px; font-size: 13px; }
.t-photo {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tint);
}
.t-card footer strong { font-size: 14px; color: var(--navy); display: block; }
.t-card footer span { font-size: 12.5px; color: var(--muted); }

/* ---------- Badge Google ---------- */
.g-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.g-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.g-badge strong { font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.g-badge span { color: var(--muted); }
.g-badge .t-stars { font-size: 13px; }

/* ---------- TikTok ---------- */
.tiktok-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
}
.tt-card {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
/* Al pasar el ratón: crece y se eleva un poco (solo con ratón, nunca en táctil) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tiktok-grid .tt-card {
    transition: opacity .6s ease, transform .3s cubic-bezier(.2, .8, .3, 1), box-shadow .3s ease;
  }
  .tiktok-grid .tt-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 24px 50px rgba(11, 40, 80, .28);
    z-index: 2;
  }
}
.tt-card iframe,
.tt-card video.tt-video {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
  background: #000;
  object-fit: cover;
}
.tt-player { position: relative; height: 600px; }
.tt-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.tt-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px 22px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 40, 80, 0) 35%, rgba(11, 40, 80, .55) 65%, rgba(7, 25, 50, .92) 100%);
  transition: background .2s ease;
}
.tt-overlay:hover { background: linear-gradient(180deg, rgba(11, 40, 80, .12) 25%, rgba(11, 40, 80, .6) 62%, rgba(7, 25, 50, .95) 100%); }
.tt-overlay .tt-play {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--blue);
  display: grid;
  place-items: center;
  padding-left: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transition: transform .15s ease;
}
.tt-overlay:hover .tt-play { transform: translate(-50%, -50%) scale(1.08); }
.tt-overlay strong { font-size: 16.5px; line-height: 1.35; max-width: 28ch; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.tt-overlay .tt-meta { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.tt-views {
  display: block;
  text-align: center;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 0;
}

/* ---------- Entidades ---------- */
.entities { padding: 0 0 84px; }
.entities h3 {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 24px;
}
/* Carrusel de logos: lento, continuo, en gris y a color al pasar el ratón */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track { display: flex; width: max-content; }
.logo-group { list-style: none; display: flex; align-items: center; gap: 64px; padding: 12px 32px; }
.logo-group li { flex: none; display: flex; align-items: center; height: 56px; }
.logo-group img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: .55;
  transition: filter .35s ease, opacity .35s ease;
}
.logo-group img:hover { filter: none; opacity: 1; }
/* Ajuste óptico: los logos cuadrados o con mucho blanco necesitan algo más de altura */
.logo-group img.ent-sepe, .logo-group img.ent-comunidad-de-madrid, .logo-group img.ent-red-pae { height: 52px; }
.logo-group img.ent-agencia-tributaria, .logo-group img.ent-fremap { height: 46px; }
.logo-group img.ent-quironprevencion, .logo-group img.ent-asepeyo { height: 30px; }
.logo-track.on { animation: logosCinta 45s linear infinite; }
.logo-marquee:hover .logo-track.on { animation-play-state: paused; }
@keyframes logosCinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-track.on { animation: none; }
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-group { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 680px) {
  .logo-group { gap: 40px; }
  .logo-group img { height: 32px; }
  .logo-group img.ent-sepe, .logo-group img.ent-comunidad-de-madrid, .logo-group img.ent-red-pae { height: 42px; }
  .logo-group img.ent-quironprevencion, .logo-group img.ent-asepeyo { height: 24px; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-card h3 svg { color: var(--blue); }
.contact-card ul { list-style: none; display: grid; gap: 10px; }
.contact-card li { font-size: 15.5px; color: var(--ink); }
.contact-card li a { color: var(--blue); font-weight: 700; text-decoration: none; }
.contact-card li a:hover { text-decoration: underline; }
.contact-card .note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; justify-content: center; }

/* ---------- CTA final ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% -30%, rgba(33, 84, 207, .45), transparent 70%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 64px 32px;
}
.final-cta h2 { font-family: var(--serif); font-size: clamp(25px, 3vw, 37px); margin-bottom: 12px; }
.final-cta p { color: rgba(255, 255, 255, .8); font-size: 17px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 32px;
  margin-top: 84px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 13.5px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-ring { border-color: #fff; color: #fff; background: transparent; width: 46px; height: 46px; font-size: 19px; }
.footer-brand .brand-word { color: #fff; font-size: 20px; }
.footer-brand .brand-word small { color: rgba(255, 255, 255, .7); border-top-color: rgba(255, 255, 255, .6); }
.footer-brand p { max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================================
   Herramientas TH
   ============================================================ */
.page-hero {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(33, 84, 207, .12), transparent 60%),
    var(--bg-soft);
  padding: 64px 0 56px;
}
.page-hero { position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .ph-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 62%;
  object-fit: cover;
  object-position: center;
  /* Degradado de derecha a izquierda: la foto se funde con el fondo
     para no restar legibilidad al texto */
  -webkit-mask-image: linear-gradient(to left, #000 35%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  mask-image: linear-gradient(to left, #000 35%, rgba(0, 0, 0, .35) 70%, transparent 100%);
  opacity: .9;
}
.page-hero.has-photo h1,
.page-hero.has-photo p { max-width: 54ch; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(29px, 4vw, 44px);
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.15;
}
.page-hero p { font-size: 17.5px; color: var(--muted); max-width: 62ch; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 700; }

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card.active:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-card .service-icon { margin-bottom: 4px; }
.tool-card h3 { font-size: 18px; color: var(--navy); letter-spacing: -.01em; }
.tool-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.tool-card .btn { align-self: flex-start; }
.tool-card.soon { opacity: .75; background: var(--bg-soft); }
.tag-soon {
  align-self: flex-start;
  background: #e8ecf4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tag-live {
  align-self: flex-start;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ============================================================
   Simulador CCSE
   ============================================================ */
.sim-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.sim-screen { display: none; }
.sim-screen.visible { display: block; }

/* Pantalla de inicio */
.sim-intro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  margin-top: -36px;
  position: relative;
}
.sim-intro-card h2 { font-family: var(--serif); font-size: 23px; color: var(--navy); }
.sim-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.spec {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}
.spec strong { display: block; font-family: var(--serif); font-size: 26px; color: var(--blue); }
.spec span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sim-tareas { list-style: none; display: grid; gap: 10px; margin: 8px 0 28px; }
.sim-tareas li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 10px 14px;
}
.sim-tareas .t-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.sim-disclaimer { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* Barra del examen */
.sim-topbar {
  position: sticky;
  top: 90px;
  z-index: 40;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.sim-progress-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.sim-section-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sim-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  background: var(--tint);
  padding: 7px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sim-timer.warning { background: var(--err-soft); color: var(--err); }
.sim-progressbar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.sim-progressbar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .25s ease; }

/* Pregunta */
.q-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}
.q-tarea {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  background: var(--tint);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.q-text { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 24px; }
.q-options { display: grid; gap: 12px; }
.q-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 15px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.q-opt:hover { border-color: #c3d2ef; }
.q-opt.selected { border-color: var(--blue); background: var(--tint); font-weight: 700; }
.q-opt .opt-letter {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.q-opt.selected .opt-letter { background: var(--blue); border-color: var(--blue); color: #fff; }

.sim-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.q-dots { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 26px; }
.q-dot {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.q-dot.answered { background: var(--blue); border-color: var(--blue); color: #fff; }
.q-dot.current { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Resultados */
.result-banner {
  text-align: center;
  border-radius: 20px;
  padding: 44px 32px;
  margin-bottom: 26px;
}
.result-banner.pass { background: var(--ok-soft); border: 1px solid #bfe6cf; }
.result-banner.fail { background: var(--err-soft); border: 1px solid #f2cccc; }
.result-banner .r-verdict { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.result-banner.pass .r-verdict { color: var(--ok); }
.result-banner.fail .r-verdict { color: var(--err); }
.result-banner .r-score { font-family: var(--serif); font-size: 58px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.result-banner .r-score small { font-size: 24px; color: var(--muted); font-weight: 600; font-family: "Manrope", sans-serif; }
.result-banner p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 30px; }
.rb-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.rb-card h4 { font-size: 13.5px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.rb-card strong { font-size: 22px; color: var(--navy); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.review-item {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.review-item.correct { border-left-color: var(--ok); }
.review-item.wrong { border-left-color: var(--err); }
.review-item .ri-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.review-item .ri-num { font-size: 13px; font-weight: 800; color: var(--muted); flex: none; }
.review-item .ri-q { font-weight: 700; color: var(--navy); font-size: 15.5px; }
.review-item .ri-row { font-size: 14.5px; margin-bottom: 4px; }
.review-item .ri-row.ok { color: var(--ok); font-weight: 700; }
.review-item .ri-row.bad { color: var(--err); font-weight: 700; }
.review-item .ri-exp { font-size: 13.5px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---------- Simulador: modos, feedback y celebración ---------- */
.btn-accent {
  background: linear-gradient(120deg, #d4af37, #f0cf6b);
  color: var(--navy-deep);
}
.btn-accent:hover { box-shadow: 0 8px 24px rgba(212, 175, 55, .45); }

.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mode-btn {
  text-align: left;
  background: var(--tint);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.mode-btn:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: var(--shadow-lg); }
.mode-btn strong { display: block; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.mode-btn span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.mode-btn.alt { background: var(--bg-soft); }

.resume-card {
  margin-top: 16px;
  background: #fff8e6;
  border: 1px solid #ecd9a0;
  border-radius: 14px;
  padding: 16px 18px;
}
.resume-card p { font-size: 14.5px; color: var(--ink); margin-bottom: 12px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sim-topbar-right { display: flex; align-items: center; gap: 10px; }
.snd-btn {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.streak-chip {
  background: linear-gradient(120deg, #d4af37, #f6de8d);
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.streak-chip.pop { animation: chipPop .4s ease; }
@keyframes chipPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.q-illus {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-top: -6px;
  box-shadow: var(--shadow);
}

.q-opt.locked { pointer-events: none; }
.q-opt.ok {
  border-color: var(--ok);
  background: var(--ok-soft);
  font-weight: 700;
}
.q-opt.ok .opt-letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.q-opt.ko {
  border-color: var(--err);
  background: var(--err-soft);
}
.q-opt.ko .opt-letter { background: var(--err); border-color: var(--err); color: #fff; }

.feedback {
  margin-top: 18px;
  border-radius: 14px;
  padding: 18px 20px;
  animation: fbIn .3s ease;
}
@keyframes fbIn { from { opacity: 0; transform: translateY(8px); } }
.feedback.good { background: var(--ok-soft); border: 1px solid #bfe6cf; }
.feedback.bad { background: var(--err-soft); border: 1px solid #f2cccc; }
.feedback .fb-title { font-weight: 800; font-size: 16px; color: var(--navy-deep); margin-bottom: 6px; }
.feedback.good .fb-title { color: var(--ok); }
.feedback .fb-correct { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.feedback .fb-exp { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.feedback .btn { margin-top: 4px; }

/* En práctica no hay navegación manual ni temporizador */
.mode-practica .sim-nav,
.mode-practica .q-dots,
.mode-practica #examTimer { display: none; }

/* Confeti de celebración */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -14px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  opacity: .95;
  animation: cae linear forwards;
}
@keyframes cae {
  to { transform: translateY(105vh) rotate(720deg); opacity: .6; }
}

/* ---------- Checklist de trámites ---------- */
.ck-tramites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ck-tram {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.ck-tram.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ck-tram:disabled { cursor: default; color: var(--muted); background: var(--bg-soft); }
.ck-tram small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-left: 4px; opacity: .8; }
.ck-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 38px 38px;
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}
.ck-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 14px; }
.ck-steps li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--muted); }
.ck-steps li b {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 2px solid var(--line);
  background: #fff;
  position: relative;
  transition: background .3s, border-color .3s, color .3s;
}
.ck-steps li span { font-size: 13px; font-weight: 700; }
.ck-steps li.on { color: var(--blue); }
.ck-steps li.on b { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(33, 84, 207, .15); }
.ck-steps li.done { color: var(--ok); }
.ck-steps li.done b { border-color: var(--ok); background: var(--ok); color: transparent; animation: rsvPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.ck-steps li.done b::after { content: "✓"; color: #fff; position: absolute; font-size: 14px; }
.ck-prog-row { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.ck-prog { flex: 1; height: 8px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.ck-prog i, .ck-docbar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), #4f8df5 60%, #25D366);
  transition: width .55s cubic-bezier(.3, 1.3, .5, 1);
  position: relative;
  overflow: hidden;
}
.ck-prog i::after, .ck-docbar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%);
  animation: rsvBrillo 2.2s ease-in-out infinite;
}
.ck-prog-txt { font-size: 12.5px; font-weight: 800; color: var(--blue); min-width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.ck-step h2 { font-family: var(--serif); font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.ck-label { display: block; font-size: 15px; font-weight: 800; color: var(--navy-deep); margin: 20px 0 8px; }
.ck-label strong { color: var(--blue); }
.ck-hint { font-size: 13.5px; color: var(--muted); margin: -2px 0 10px; }
.ck-field { border: 0; padding: 0; margin: 0; }
.ck-field legend { padding: 0; }
.ck-input {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
}
.ck-input + .ck-input { margin-top: 10px; }
.ck-input:focus { outline: none; border-color: var(--blue); }
.ck-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ck-opts button {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s, transform .15s, box-shadow .15s;
  position: relative;
}
.ck-opts button:hover { border-color: #c6d6e4; }
.ck-opts button.sel { border-color: var(--blue); background: var(--tint); color: var(--navy); box-shadow: 0 6px 16px rgba(33, 84, 207, .16); padding-right: 34px; }
.ck-opts button.sel::after {
  content: "✓";
  position: absolute;
  right: 9px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}
.ck-opts-yn button { min-width: 90px; text-align: center; }
.ck-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--ink); cursor: pointer; }
.ck-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.ck-error {
  margin-top: 16px;
  background: var(--err-soft);
  border: 1px solid #f2cccc;
  color: var(--err);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 12px;
  padding: 11px 14px;
}
.ck-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ck-nav .btn-primary:only-child { margin-left: auto; }

.ck-verdict { border-radius: 16px; padding: 20px 22px; margin-bottom: 24px; }
.ck-verdict strong { display: block; font-size: 19px; margin-bottom: 6px; }
.ck-verdict p { font-size: 15px; color: var(--ink); margin: 0; }
.ck-verdict.ok { background: var(--ok-soft); border: 1px solid #bfe6cf; }
.ck-verdict.ok strong { color: var(--ok); }
.ck-verdict.pronto { background: var(--tint); border: 1px solid #c9d7f1; }
.ck-verdict.pronto strong { color: var(--blue); }
.ck-verdict.revisar { background: #fff8e6; border: 1px solid #ecd9a0; }
.ck-verdict.revisar strong { color: #8a6a1f; }
.ck-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ck-list-head h2 { margin: 0; }
.ck-print { padding: 9px 16px; font-size: 13.5px; }
.ck-list { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; }
.ck-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border-radius: 12px; padding: 13px 15px; }
.ck-list input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ok); }
.ck-list label { cursor: pointer; }
.ck-list label strong { display: block; font-size: 15.5px; color: var(--navy-deep); }
.ck-list label span { font-size: 13.5px; color: var(--muted); }
.ck-list label a { font-weight: 700; color: var(--blue); }
.ck-list li:has(input:checked:not(:disabled)) label strong { text-decoration: line-through; color: var(--muted); }
.ck-list li.exento { background: var(--ok-soft); }
.ck-cta { border-radius: 18px; padding: 24px 26px; margin-bottom: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.ck-cta.ok { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%); border: 0; color: #fff; }
.ck-cta h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.ck-cta.ok h3 { color: #fff; }
.ck-cta p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.ck-cta.ok p { color: rgba(255, 255, 255, .8); }
.ck-cta.ok .btn-primary { background: #fff; color: var(--navy); }
.ck-legal { font-size: 12.5px; color: var(--muted); }

/* Checklist: pop-up del resultado */
.ckm-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(7, 25, 50, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.ckm-overlay.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.ckm-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  transform: translateY(30px) scale(.94);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2);
}
.ckm-overlay.open .ckm-modal { transform: none; }
.ckm-img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--bg-soft); }
.ckm-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 6s ease-out; }
.ckm-overlay.open .ckm-img img { transform: scale(1); }
.ckm-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 9%; background: linear-gradient(transparent, rgba(255, 255, 255, .9)); pointer-events: none; }
.ckm-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.ckm-cuerpo { padding: 4px 26px 24px; text-align: center; }
.ckm-chip {
  display: inline-block;
  margin: -6px 0 10px;
  position: relative;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ok-soft);
  border: 1px solid #bfe6cf;
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 800;
}
.ckm-chip-ambar { background: #fff8e6; border-color: #ecd9a0; color: #8a6a1f; }
.ckm-cuerpo h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--navy); margin-bottom: 10px; }
.ckm-cuerpo p { font-size: 15px; color: var(--ink); line-height: 1.55; margin: 0 0 10px; }
.ckm-cuerpo b { color: var(--navy-deep); }
.ckm-gracias { color: var(--muted) !important; font-size: 14px !important; }
.ckm-acciones { display: grid; gap: 10px; margin-top: 16px; }
.ckm-acciones .btn { width: 100%; justify-content: center; }
.ckm-reservar { animation: rsvLatido 1.8s ease-in-out infinite; }
.ckm-confeti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 4; border-radius: inherit; }
.ckm-confeti i { position: absolute; top: 45%; width: 9px; height: 14px; border-radius: 2px; animation: rsvConfeti 2.1s cubic-bezier(.15, .7, .4, 1) both; }
@media (max-width: 560px) {
  .ckm-overlay { padding: 0; align-items: flex-end; }
  .ckm-modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 96vh; }
  .ckm-img { border-radius: 22px 22px 0 0; }
  .ckm-cuerpo { padding: 4px 18px 20px; }
  .ckm-cuerpo h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ckm-modal, .ckm-img img { transition: none; transform: none; }
  .ckm-reservar { animation: none; }
}
@media print { .ckm-overlay { display: none !important; } }

/* Checklist: nacionalidad con buscador y banderas */
.ck-oculto { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ck-pais-pick { position: relative; }
.ck-pp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s;
}
.ck-pp-btn:focus-visible, .ck-pp-btn[aria-expanded="true"] { outline: none; border-color: var(--blue); }
.ck-pp-btn .tp-car { margin-left: auto; }
.ck-pp-ph { color: var(--muted); font-weight: 600; }

/* Checklist: microinteracciones */
.ck-card { position: relative; }
.ck-field { position: relative; border-radius: 14px; transition: background .4s, box-shadow .4s; }
.ck-field .ck-label::after {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 11px;
  vertical-align: 2px;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.ck-field.ck-hecho .ck-label::after { transform: scale(1); }
.ck-field.ck-foco { background: var(--tint); box-shadow: 0 0 0 8px var(--tint); }
.ck-pop { animation: rsvPop .4s cubic-bezier(.3, 1.6, .5, 1); }
.ck-verdict.ck-pop, .ck-docprog.ck-pop, .ck-list li.ck-pop, select.ck-pop { animation: ckPopSuave .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ckPopSuave { 40% { transform: scale(1.02); } }
.ck-entra { animation: rsvIn .3s ease; }
.ck-card.ck-tiembla { animation: rsvTiembla .4s ease; }
.ck-nav .ck-ready { animation: rsvLatido 1.8s ease-in-out infinite; position: relative; overflow: hidden; }
.ck-nav .ck-ready::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45), transparent 70%);
  transform: translateX(-100%);
  animation: rsvBrillo 1.8s ease-in-out infinite;
}
.ck-telrow { display: flex; gap: 8px; align-items: stretch; }
.ck-telrow .ck-fieldw { flex: 1; min-width: 0; }
.ck-pais-wrap {
  position: relative;
  flex: none;
  width: 104px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}
.ck-pais-wrap::after { content: "▾"; font-size: 12px; color: var(--muted); margin-left: 6px; }
.ck-pais-wrap:focus-within { border-color: var(--blue); }
.ck-pref { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.ck-fieldw { position: relative; }
.ck-fieldw .ck-input { padding-right: 46px; transition: border-color .2s, background .2s; }
.ck-okmark {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.ck-fieldw.ok .ck-okmark { transform: scale(1); }
.ck-fieldw.ok .ck-input { border-color: #9fdcb6; background: #fbfffc; }
.ck-fieldw.mal .ck-input { border-color: #f0b4b4; background: #fffafa; }
.ck-telhint { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 18px; }
.ck-telhint.mal { color: var(--err); font-weight: 700; }
.ck-verdict { display: flex; gap: 14px; align-items: flex-start; }
.ck-v-ico { font-size: 30px; line-height: 1; }
.ck-docprog {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: background .4s, border-color .4s;
}
.ck-docbar { height: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.ck-docmsg { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.ck-docmsg b { color: var(--navy); font-variant-numeric: tabular-nums; }
.ck-docprog.ck-full { background: var(--ok-soft); border-color: #bfe6cf; }
.ck-docprog.ck-full .ck-docmsg { color: var(--ok); font-weight: 700; }
.ck-list li { position: relative; transition: background .3s, transform .2s, box-shadow .2s; }
.ck-list input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  border: 2px solid #c6d2e0;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}
.ck-list input[type=checkbox]::after {
  content: "✓";
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transform: scale(0);
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.ck-list input[type=checkbox]:checked { background: var(--ok); border-color: var(--ok); }
.ck-list input[type=checkbox]:checked::after { transform: scale(1); }
.ck-list input[type=checkbox]:focus-visible { outline: 3px solid rgba(33, 84, 207, .35); outline-offset: 2px; }
.ck-list li:has(input:checked) { background: var(--ok-soft); }
.ck-list label strong { transition: color .25s; }
.ck-aparece li { animation: rsvSube .35s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ck-cta.ck-brilla { animation: ckBrilla 1.6s ease 2; }
@keyframes ckBrilla { 50% { box-shadow: 0 0 0 6px rgba(26, 143, 77, .25), 0 18px 40px rgba(26, 143, 77, .2); } }
.ck-confeti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 5; }
.ck-confeti i {
  position: absolute;
  top: 30%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: rsvConfeti 2.1s cubic-bezier(.15, .7, .4, 1) both;
}
@media (hover: hover) and (pointer: fine) {
  .ck-opts button:not(.sel):hover { transform: translateY(-2px); }
  .ck-list li:hover { box-shadow: 0 6px 16px rgba(11, 40, 80, .08); }
}
@media (prefers-reduced-motion: reduce) {
  .ck-pop, .ck-verdict.ck-pop, .ck-docprog.ck-pop, .ck-list li.ck-pop, select.ck-pop, .ck-entra, .ck-card.ck-tiembla, .ck-nav .ck-ready, .ck-nav .ck-ready::after, .ck-prog i::after, .ck-docbar i::after, .ck-aparece li, .ck-cta.ck-brilla, .ck-steps li.done b { animation: none !important; }
}
@media print {
  .ck-prog-row, .ck-confeti, .ck-docprog { display: none !important; }
  .ck-list input[type=checkbox] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.ck-restart { background: none; border: 0; padding: 0; margin-top: 10px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline; }
@media (max-width: 680px) {
  .ck-card { padding: 24px 18px 26px; border-radius: 18px; }
  .ck-steps { gap: 12px; }
  .ck-steps li span { display: none; }
  .ck-opts button { width: 100%; }
  .ck-opts-yn button { width: auto; flex: 1; }
}
@media print {
  .topbar, .site-header, .page-hero .ck-tramites, .ck-steps, .ck-cta, .ck-print, .ck-restart,
  .site-footer, .wa-float, .rsv-overlay { display: none !important; }
  .top-stack { position: static; }
  .ck-card { box-shadow: none; border: 0; padding: 0; }
  .page-hero { padding: 0 0 10px; background: none; }
}

/* ---------- Páginas legales ---------- */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal-tabs a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.legal-tabs a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.legal-body {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.legal-body h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin: 30px 0 10px;
  line-height: 1.25;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.legal-body p, .legal-body li { font-size: 15.5px; color: var(--ink); line-height: 1.75; }
.legal-body p { margin-bottom: 12px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin-bottom: 12px; }
.legal-body strong { color: var(--navy-deep); }
.site-footer .footer-bottom a { color: inherit; }
@media (max-width: 680px) {
  .legal-body { padding: 26px 20px; border-radius: 16px; }
  .legal-body h2 { font-size: 19px; }
  .legal-body p, .legal-body li { font-size: 15px; }
}

/* ---------- Pop-up de reservas ---------- */
.rsv-overlay[hidden] { display: none; } /* imprescindible: nuestro display:flex anularía el atributo hidden */
.rsv-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 25, 50, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .25s ease;
}
.rsv-overlay.open { opacity: 1; }
.rsv-modal {
  background: #fff;
  border-radius: 22px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  position: relative;
  transform: translateY(26px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.rsv-overlay.open .rsv-modal { transform: none; }
.rsv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 15px;
  cursor: pointer;
  color: var(--muted);
  z-index: 2;
}
.rsv-head { padding: 24px 26px 14px; border-bottom: 1px solid var(--line); }
.rsv-head h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); margin-bottom: 14px; }
.rsv-steps { display: flex; gap: 22px; }
.rsv-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
.rsv-dot b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  border: 2px solid var(--line);
  background: #fff;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.rsv-dot small { font-weight: 700; font-size: 13px; }
.rsv-dot.on { color: var(--blue); }
.rsv-dot.on b { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(33, 84, 207, .15); }
.rsv-dot.done { color: var(--ok); }
.rsv-dot.done b { border-color: var(--ok); background: var(--ok); color: transparent; position: relative; animation: rsvPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.rsv-dot.done b::after { content: "✓"; color: #fff; position: absolute; font-size: 14px; }
.rsv-prog-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rsv-prog { flex: 1; height: 8px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden; }
.rsv-prog i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), #4f8df5 60%, #25D366);
  transition: width .5s cubic-bezier(.3, 1.3, .5, 1);
  position: relative;
  overflow: hidden;
}
.rsv-prog i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: translateX(-100%);
  animation: rsvBrillo 2.2s ease-in-out infinite;
}
.rsv-prog-txt { font-size: 12.5px; font-weight: 800; color: var(--blue); min-width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.rsv-body { padding: 20px 26px; overflow-y: auto; flex: 1; }
.rsv-body.in { animation: rsvIn .28s ease; }
@keyframes rsvIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes rsvPop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes rsvBrillo { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes rsvSube { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes rsvTiembla { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes rsvConfeti {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  45% { transform: translate(calc(var(--x) * .75), var(--y)) rotate(calc(var(--r) * .5)); opacity: 1; }
  100% { transform: translate(var(--x), 260px) rotate(var(--r)); opacity: 0; }
}
@keyframes rsvTrazo { to { stroke-dashoffset: 0; } }
.rsv-q { font-size: 17px; font-weight: 800; color: var(--navy-deep); margin: 10px 0 12px; }
.rsv-days { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.rsv-day {
  flex: none;
  width: 72px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: border-color .12s, background .12s;
}
.rsv-day small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: capitalize; }
.rsv-day strong { display: block; font-size: 22px; color: var(--navy); }
.rsv-day.sel { border-color: var(--blue); background: var(--tint); }
.rsv-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rsv-hour {
  padding: 13px 0;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.rsv-hour.sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.rsv-hour.off {
  background: var(--bg-soft);
  color: #b6c0cd;
  text-decoration: line-through;
  cursor: not-allowed;
}
.rsv-tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.rsv-tipo {
  padding: 14px 8px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 22px;
  cursor: pointer;
  text-align: center;
}
.rsv-tipo span { display: block; font-size: 14.5px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.rsv-tipo small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rsv-tipo.sel { border-color: var(--blue); background: var(--tint); }
.rsv-label { display: block; font-size: 14px; font-weight: 800; color: var(--navy-deep); margin: 14px 0 6px; }
.rsv-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: inherit;
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.rsv-input:focus { outline: none; border-color: var(--blue); }
.rsv-resumen {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.rsv-resumen p { font-size: 16px; color: var(--ink); margin: 4px 0; }
.rsv-pago {
  background: #fff8e6;
  border: 1px solid #ecd9a0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  text-align: center;
}
.rsv-pago p { font-size: 14.5px; margin-bottom: 10px; }
.rsv-wa { width: 100%; font-size: 17px; }
.rsv-mail {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--blue);
  font-weight: 700;
}
.rsv-nota { font-size: 13px; color: var(--muted); margin-top: 14px; }
.rsv-aviso {
  margin-top: 14px;
  background: var(--err-soft);
  border: 1px solid #f2cccc;
  color: var(--err);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 12px;
  padding: 11px 14px;
  animation: rsvIn .25s ease;
}
.rsv-ok { font-size: 54px; text-align: center; margin-top: 10px; }
.rsv-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid var(--line);
}

/* Reserva: teléfono con prefijo, avisos por modalidad y confirmación */
.rsv-telrow { display: flex; gap: 8px; align-items: stretch; }
.rsv-telrow .rsv-field { flex: 1; min-width: 0; }
.rsv-pais-wrap {
  position: relative;
  flex: none;
  width: 104px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  transition: border-color .2s;
}
.rsv-pais-wrap::after { content: "▾"; font-size: 12px; color: var(--muted); margin-left: 4px; }
.rsv-pais-wrap:focus-within { border-color: var(--blue); }
.rsv-pais { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.rsv-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; min-height: 18px; }
.rsv-hint.mal { color: var(--err); font-weight: 700; }
.rsv-field.mal .rsv-input { border-color: #f0b4b4; background: #fffafa; }
.rsv-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e6;
  border: 1px solid #f0dfae;
  animation: rsvSube .35s cubic-bezier(.2, .9, .3, 1.2);
}
.rsv-tip span { font-size: 20px; line-height: 1.2; }
.rsv-tip p { font-size: 13.5px; color: #5b4a1a; line-height: 1.5; margin: 0; }
.rsv-tip b { color: #3f3210; }
.rsv-resumen + .rsv-tip { margin: -4px 0 16px; }
.rsv-confirmar { width: 100%; font-size: 17px; margin-top: 4px; }
.rsv-confirmar:disabled { opacity: .7; cursor: wait; }
.rsv-cuando { font-size: 14.5px; color: var(--muted); font-weight: 600; margin-top: -4px; }
.rsv-gcal { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 12px; }
.rsv-wa-box {
  background: #effbf3;
  border: 1px solid #cdeedb;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  text-align: center;
}
.rsv-wa-box p { font-size: 14px; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }
.rsv-wa-box .rsv-wa { width: 100%; }

/* Reserva: elegir sede */
.rsv-q-sede { margin-top: 2px; }
.rsv-sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.rsv-sede {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.rsv-sede-ico { grid-row: span 2; font-size: 20px; }
.rsv-sede b { font-size: 15px; color: var(--navy); }
.rsv-sede small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.rsv-sede.sel { border-color: var(--blue); background: var(--tint); box-shadow: 0 8px 20px rgba(33, 84, 207, .18); }
.rsv-sede.sel::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.rsv-tip a { font-weight: 800; color: var(--blue); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .rsv-sede:not(.sel):hover { border-color: #b9cbf2; transform: translateY(-2px); } }
@media (max-width: 560px) { .rsv-sedes { grid-template-columns: 1fr; } }
.rsv-sede.cerrada { opacity: .55; cursor: not-allowed; background: #f4f5f8; border-style: dashed; }
.rsv-day.parcial::before {
  content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.rsv-festivo { margin: -4px 0 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rsv-festivo b { color: var(--navy); }

/* Sedes (portada) */
.sedes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.sede-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.sede-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.sede-media iframe, .sede-media img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.sede-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(11, 40, 80, .12);
}
.sede-badge.nueva { background: var(--blue); color: #fff; }
.sede-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sede-body h3 { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.sede-body p { font-size: 14.5px; color: var(--ink); margin: 0; }
.sede-body .note { color: var(--muted); font-size: 13px; }
.sede-acc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; }
.sede-acc .btn { padding: 10px 16px; font-size: 14px; }
.sede-fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sede-fotos img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; display: block; cursor: pointer; transition: filter .2s, opacity .2s; opacity: .85; }
.sede-fotos img.on { opacity: 1; box-shadow: inset 0 -3px 0 var(--blue); }
.sede-media iframe + .sede-badge { left: auto; right: 12px; }
.sede-media.mapa { aspect-ratio: auto; flex: 1; min-height: 240px; }
.sede-media.mapa ~ .sede-body { flex: none; }
.sede-fotos img:hover { filter: brightness(1.06); }
.sede-media .sede-main { transition: opacity .35s ease; }
@media (max-width: 760px) { .sedes-grid { grid-template-columns: 1fr; } }
.contact-grid.uno { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Selector de país con buscador (reserva y checklist) */
.tp-host { padding: 0; }
.tp-host::after { content: none !important; }
.tp-btn {
  width: 100%;
  height: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 10px;
}
.tp-btn:focus-visible { outline: 3px solid rgba(33, 84, 207, .3); }
.tp-car { font-size: 11px; color: var(--muted); }
.tp-flag { font-size: 18px; line-height: 1; }
.tp-panel {
  margin-top: 8px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11, 40, 80, .16);
  overflow: hidden;
  animation: rsvSube .25s cubic-bezier(.2, .9, .3, 1.2);
}
.tp-buscar { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 13px 14px; font-family: inherit; font-size: 16px; color: var(--ink); outline: none; }
.tp-lista { list-style: none; max-height: 250px; overflow-y: auto; margin: 0; padding: 4px 0; overscroll-behavior: contain; }
.tp-grupo { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 14px 4px; }
.tp-op { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; font-size: 14.5px; color: var(--ink); }
.tp-op.foco, .tp-op:hover { background: var(--tint); }
.tp-op.sel .tp-nom { font-weight: 800; color: var(--blue); }
.tp-nom { flex: 1; }
.tp-pre { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13.5px; }
.tp-vacio { padding: 12px 14px; font-size: 14px; color: var(--muted); }
.rsv-gcal-alt { display: block; text-align: center; margin: -4px 0 12px; font-size: 13.5px; font-weight: 700; color: var(--blue); }

/* Barra de reserva fija: solo móvil y tablet (donde se oculta el botón de la cabecera) */
.tb-barra { display: none; }
@media (max-width: 860px) {
  .con-tb-barra .wa-float { display: none; }
  .con-tb-barra .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .tb-barra {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 70;
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 55, 107, .1);
    box-shadow: 0 12px 34px rgba(11, 40, 80, .22);
    transform: translateY(140%);
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.1);
  }
  .tb-barra.ver { transform: none; }
  .teclado .tb-barra, .rsv-abierta .tb-barra, .ckm-abierto .tb-barra { transform: translateY(140%); }
  .tb-barra-res {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--blue), #1a45b0);
    color: #fff;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(33, 84, 207, .35);
    position: relative;
    overflow: hidden;
  }
  .tb-barra-res b { color: #ffe08a; }
  .tb-barra-res::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .35), transparent 65%);
    transform: translateX(-100%);
    animation: tbBrillo 4.5s ease-in-out 1.5s infinite;
  }
  @keyframes tbBrillo { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
  .tb-barra-res:active { transform: scale(.98); }
  .tb-barra-wa { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .35); }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) { .tb-barra { transition: none; } .tb-barra-res::after { animation: none; } }
@media print { .tb-barra { display: none !important; } }

/* Reserva: microinteracciones */
.rsv-day, .rsv-hour, .rsv-tipo { position: relative; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.rsv-day.sel, .rsv-hour.sel, .rsv-tipo.sel { box-shadow: 0 8px 20px rgba(33, 84, 207, .18); }
.rsv-day.sel::after, .rsv-tipo.sel::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(33, 84, 207, .35);
}
.rsv-days { padding-top: 10px; padding-right: 10px; }
.rsv-tipos { padding-top: 4px; }
.pop { animation: rsvPop .4s cubic-bezier(.3, 1.6, .5, 1); }
.aparece > * { animation: rsvSube .35s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 30ms); }
.rsv-bien {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(100deg, #e9f9ef, #eef3ff);
  border: 1px solid #cdeedb;
  color: var(--navy-deep);
  font-size: 14.5px;
  animation: rsvSube .4s cubic-bezier(.2, .9, .3, 1.2);
}
.rsv-bien b { color: #1a8a4a; }
.rsv-field { position: relative; }
.rsv-field .rsv-input { padding-right: 46px; transition: border-color .2s, background .2s; }
.rsv-check {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.rsv-field.ok .rsv-check { transform: scale(1); }
.rsv-field.ok .rsv-input { border-color: #9fdcb6; background: #fbfffc; }
#rsvNext.ready { animation: rsvLatido 1.8s ease-in-out infinite; position: relative; overflow: hidden; }
#rsvNext.ready::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45), transparent 70%);
  transform: translateX(-100%);
  animation: rsvBrillo 1.8s ease-in-out infinite;
}
@keyframes rsvLatido { 0%, 100% { box-shadow: 0 0 0 0 rgba(33, 84, 207, .45); } 50% { box-shadow: 0 0 0 8px rgba(33, 84, 207, 0); } }
.rsv-modal.tiembla { animation: rsvTiembla .4s ease; }
.rsv-confeti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 5; }
.rsv-confeti i {
  position: absolute;
  top: 62%;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: rsvConfeti 1.9s cubic-bezier(.15, .7, .4, 1) both;
}
.rsv-exito { text-align: center; padding: 10px 0 4px; animation: rsvSube .4s ease; }
.rsv-exito .rsv-nota { font-size: 15px; }
.rsv-tick { width: 84px; height: 84px; margin: 6px auto 4px; display: block; }
.rsv-tick circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 152; stroke-dashoffset: 152; animation: rsvTrazo .6s ease forwards; }
.rsv-tick path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rsvTrazo .4s ease .5s forwards; }
@media (hover: hover) and (pointer: fine) {
  .rsv-day:not(.sel):hover, .rsv-hour:not(.off):not(.sel):hover, .rsv-tipo:not(.sel):hover { border-color: #b9cbf2; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .pop, .aparece > *, .rsv-bien, #rsvNext.ready, #rsvNext.ready::after, .rsv-prog i::after, .rsv-modal.tiembla, .rsv-dot.done b, .rsv-exito { animation: none !important; }
  .rsv-tick circle, .rsv-tick path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 560px) {
  .rsv-overlay { padding: 0; align-items: flex-end; }
  .rsv-modal { max-width: none; border-radius: 22px 22px 0 0; max-height: 94vh; }
  .rsv-hours { grid-template-columns: repeat(3, 1fr); }
  .rsv-tipos { grid-template-columns: 1fr; }
  .rsv-tipo { display: flex; align-items: center; gap: 12px; text-align: left; }
  .rsv-tipo span { margin-top: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stat { gap: 12px; padding: 20px 18px 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .tools-band, .relief-band { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tiktok-grid { grid-template-columns: 1fr 1fr; max-width: 680px; }
  .t-head-row { grid-template-columns: 1fr; }
  .rating-ring { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tools-band { padding: 40px 28px; }
}

/* El menú completo en una línea necesita ~1.050 px; por debajo pasa a hamburguesa */
@media (max-width: 1100px) {
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 20px 18px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 11px 0; font-size: 16px; }
  .nav-links a.nav-tools { display: inline-flex; margin-top: 6px; }
  .nav-toggle { display: block; }
  /* Hay sitio para el botón de reserva junto a la hamburguesa */
  .nav-cta { margin-left: auto; }
}

@media (max-width: 860px) {
  .nav-cta { display: none; }
  /* En móvil/tablet el acceso al portal vive dentro del menú hamburguesa */
  .tb-portal { display: none; }
  .nav-links a.nav-portal { display: block; }
  /* Sin hover táctil: en móvil/tablet la foto completa se abre al tocar la tarjeta */
  .team-card { flex-wrap: wrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .team-card > div:not(.team-pop) { flex: 1; min-width: 0; }
  .team-card::after {
    content: "";
    order: 2;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-right: 2.4px solid var(--blue);
    border-bottom: 2.4px solid var(--blue);
    transform: rotate(45deg);
    transition: transform .25s ease;
    flex: none;
  }
  .team-card.open::after { transform: rotate(-135deg); }
  .team-grid .team-card .team-pop,
  .team-grid .team-card:hover .team-pop {
    display: none;
    order: 3;
    position: static;
    width: 100%;
    margin-top: 14px;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    background: var(--bg-soft);
  }
  .team-grid .team-card.open .team-pop { display: block; animation: fbIn .3s ease; }
  .team-pop > img { height: auto; max-height: 460px; border-radius: 14px 14px 0 0; }
  .team-pop .tp-info strong, .team-pop .tp-info em { display: none; }
  .team-pop .tp-info { padding: 12px 14px 14px; }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  /* Cifras: 4 columnas hasta móvil; aquí 2 */
  .stats-band { margin-top: -36px; }
  .stats-card { border-radius: 18px; }
  .stat { justify-content: center; text-align: center; padding: 16px 6px 12px; }
  .stat + .stat::before { top: 14px; bottom: 12px; }
  .stat-body { align-items: center; }
  .stat .stat-ico, .stat .stat-sub { display: none; }
  .stat strong.stat-num { font-size: 26px; margin-bottom: 2px; }
  .stat .stat-label { font-size: 12.5px; font-weight: 700; }
  .stat .stat-stars { font-size: 10px; letter-spacing: 1px; margin: 1px 0 0; order: 3; }
  .stats-foot { font-size: 12.5px; gap: 8px; padding: 8px 12px; text-align: center; }
  .stats-foot { flex-wrap: nowrap; }
  .stats-foot .stat-days { font-size: 15px; gap: 4px; padding-bottom: 4px; margin: 0; }
  .stats-foot .foot-extra { display: none; }
  /* Barrita superior compacta en móvil: una sola línea baja */
  .topbar { font-size: 11.5px; }
  .topbar .container {
    justify-content: space-between;
    min-height: 28px;
    padding-top: 2px;
    padding-bottom: 2px;
    gap: 8px;
  }
  .topbar svg { width: 12px; height: 12px; }
  .topbar .tb-hours { display: none; }
  .brand-word { font-size: 19px; }
  .brand-ring { width: 44px; height: 44px; font-size: 18px; border-width: 2.5px; }
  .services-grid, .tools-grid, .contact-grid, .team-grid,
  .result-breakdown, .footer-grid { grid-template-columns: 1fr; }
  /* TikToks: en móvil, carrusel horizontal deslizable en vez de apilarlos */
  .tiktok-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 10px;
  }
  .tiktok-grid .tt-card { flex: 0 0 82%; scroll-snap-align: center; }
  .tt-player, .tt-cover, .tt-card iframe, .tt-card video.tt-video { height: 480px; }
  .marquee .t-card { width: 300px; }
  /* Servicios en móvil: una fila compacta por servicio */
  .services-grid { gap: 10px; }
  .svc-head { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .svc-head .service-icon { width: 40px; height: 40px; margin-bottom: 0; flex: none; }
  .svc-title { font-size: 16px; padding-right: 0; flex: 1; }
  .svc-chev { position: static; flex: none; }
  .svc-body p { padding: 0 16px 16px; }
  .rating-ring { width: 196px; height: 196px; }
  .gold-num { font-size: 58px; }
  .sim-specs { grid-template-columns: 1fr 1fr; }
  .sim-intro-card { padding: 28px 22px; }
  .mode-grid { grid-template-columns: 1fr; }
  .q-illus { width: 72px; height: 72px; }
  .page-hero .ph-img { width: 100%; opacity: .18; }
  .q-card { padding: 26px 20px; }
  .q-text { font-size: 18px; }
  .sim-topbar { top: 0; border-radius: 0 0 14px 14px; }
  .sim-nav { flex-wrap: wrap; }
  .sim-nav .btn { flex: 1; }
  .relief-band .rb-content { padding: 30px 24px; }
  .deco { display: none; }
  .float-chip { left: 10px; }
}
