/* ==========================================================================
   PagosApuestas CR — pagosapuestascr.com
   Sistema de diseño único para todo el sitio (TOR §1–§5)
   Paleta, tipografía Gabarito/Instrument Sans, bloques Б1–Б14,
   header/footer/barra flotante. Breakpoints: 1120 / 900 / 600.
   ========================================================================== */

:root {
  --dark: #1C2733;        /* base oscuro: header, footer, héroe */
  --accent: #1B6CA8;      /* acento: enlaces, H2, activos */
  --accent-light: #E8F1F8;/* fondos de bloque, badges */
  --cta: #FF9F1C;         /* botones, placa de bono */
  --cta-hover: #E88A08;
  --page-bg: #F6F7F9;     /* fondo de página */
  --white: #FFFFFF;
  --text: #22303C;
  --muted: #5E6B77;
  --border: #DDE3E9;
  --pro: #128A5E;
  --con: #C0392B;
  --con-bg: #FDEDEA;      /* placa "Solo depósito" */

  --font-head: "Gabarito", sans-serif;
  --font-body: "Instrument Sans", sans-serif;

  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-badge: 8px;
  --shadow: 0 2px 12px rgba(28, 39, 51, .07);
  --shadow-hover: 0 6px 20px rgba(28, 39, 51, .12);
  --tr: all .18s ease;

  --header-h: 64px;
  --bar-h: 64px;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  font-weight: 400;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: var(--tr); }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 16px; }

h1 {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  color: var(--dark);
}

h2 {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: var(--accent);
}

h3 {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  color: var(--dark);
}

h4 {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--dark);
}

p { margin: 0 0 16px; }

ul, ol { margin: 0 0 16px; }

strong { font-weight: 600; }

.small, small {
  font-size: 14px;
  line-height: 22px;
}

.num, .table td, .pill__value {
  font-variant-numeric: tabular-nums;
}

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

/* ---------- Estructura ---------- */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 64px 0;
  background: var(--white);
}

.section--gray { background: var(--page-bg); }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--white); }

/* La última sección antes del footer deja libre la altura de la barra
   flotante para que esta nunca tape el bloque de FAQ (TOR §4.3). */
.section--prefooter { padding-bottom: calc(64px + var(--bar-h)); }

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--tr);
}

.btn:hover { text-decoration: none; }

.btn--cta {
  background: var(--cta);
  color: var(--dark);   /* contraste: sobre #FF9F1C solo #1C2733 */
}

.btn--cta:hover { background: var(--cta-hover); color: var(--dark); }

.btn--dark {
  background: var(--dark);
  color: var(--white);
}

.btn--dark:hover { background: #2A3847; color: var(--white); }

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn--outline:hover { background: var(--accent); color: var(--white); }

.btn--block { display: block; width: 100%; }

/* ---------- Header (§4.1) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--dark);
  color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.logo:hover { text-decoration: none; color: var(--white); }

.logo__cr { color: var(--cta); }

.nav { display: flex; align-items: center; gap: 8px; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-badge);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav__link:hover { color: var(--cta); text-decoration: none; }

.nav__caret {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: var(--tr);
}

.dropdown { position: relative; }

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 8px 0 0;
  padding: 8px;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--tr);
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__menu a {
  display: block;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  border-radius: var(--radius-badge);
}

.dropdown__menu a:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }

.site-header .btn { padding: 9px 18px; font-size: 15px; line-height: 22px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
  transition: var(--tr);
}

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

/* ---------- Б1 — Héroe ---------- */

.hero {
  background: var(--dark);
  color: var(--white);
  padding: 72px 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero__content { max-width: 760px; }

.hero__badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 12px;
  background: var(--cta);
  color: var(--dark);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-badge);
}

.hero h1 { color: var(--white); margin-bottom: 12px; }

.hero__meta {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(221, 227, 233, .75);
}

.hero__lead {
  margin: 0;
  font-size: 19px;
  line-height: 30px;
  color: rgba(255, 255, 255, .92);
}

.hero__icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow-hover);
}

/* ---------- Б2 — Tarjetas de métodos ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  transition: var(--tr);
}

.method-card:hover { box-shadow: var(--shadow-hover); }

.method-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.method-card__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.method-card__head h3 { margin: 0; font-size: 19px; line-height: 26px; }

.method-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-badge);
}

.method-card__text {
  flex: 1 0 auto;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 24px;
}

.method-card__pills {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  flex: 1 1 0;
  padding: 10px 12px;
  background: var(--page-bg);
  border-radius: var(--radius-badge);
}

.pill__label {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.pill__value {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

/* Firma del sitio: "Solo depósito" en rojo (TOR §5 Б2, checklist 12) */
.pill--neg { background: var(--con-bg); }
.pill--neg .pill__value { color: var(--con); }

.method-card .btn { margin-top: auto; }

/* ---------- Б3 — Bloque de texto ---------- */

.prose { max-width: 760px; }

.prose p:last-child { margin-bottom: 0; }

/* ---------- Б4 — Ventajas y desventajas ---------- */

.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pc-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--pro);
}

.pc-card--cons { border-color: var(--con); }

.pc-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--dark);
}

.pc-card__title svg { flex: 0 0 auto; }

.pc-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-card li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 24px;
}

.pc-card li:last-child { margin-bottom: 0; }

.pc-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.pc-card--pros li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.9 2.9 8.4l-1.3 1.3 4.8 4.8L14.8 6.1l-1.3-1.3z' fill='%23128A5E'/%3E%3C/svg%3E");
}

.pc-card--cons li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.7 4.7 11.3 3.3 8 6.6 4.7 3.3 3.3 4.7 6.6 8l-3.3 3.3 1.4 1.4L8 9.4l3.3 3.3 1.4-1.4L9.4 8z' fill='%23C0392B'/%3E%3C/svg%3E");
}

/* El lead en negrita va en su propia línea dentro del punto (TOR §5 Б4) */
.pc-card li strong { display: block; }

/* ---------- Б5 — Instrucción paso a paso ---------- */

.steps {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.steps:last-child { margin-bottom: 0; }

.steps__caption {
  margin: 0 0 20px;
}

.step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}

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

/* Línea vertical entre pasos */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.step__num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 17px;
  line-height: 36px;
  font-weight: 600;
  text-align: center;
}

.step__title {
  margin: 6px 0 6px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--dark);
}

.step__body p { margin: 0 0 8px; font-size: 15px; line-height: 24px; }
.step__body p:last-child { margin-bottom: 0; }

/* ---------- Б6 — Criterios ---------- */

.criteria {
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
}

.criteria li:last-child { margin-bottom: 0; }

.criteria li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--cta);
}

/* ---------- Б7 — Tabla ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

/* Marco destacado 2px para tablas centrales (p. ej. «Las dos rutas», §6.2) */
.table-wrap--framed { border: 2px solid var(--accent); }

.table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}

.table th {
  padding: 14px 16px;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.table td.cell--text { font-weight: 400; font-variant-numeric: normal; }

.table tbody tr:nth-child(odd) { background: var(--white); }
.table tbody tr:nth-child(even) { background: var(--page-bg); }

/* Primera columna: nombre del método con icono, fija al hacer scroll */
.table th:first-child,
.table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--border);
}

.table th:first-child { background: var(--dark); }
.table tbody tr:nth-child(odd) td:first-child { background: var(--white); }
.table tbody tr:nth-child(even) td:first-child { background: var(--page-bg); }

.table .cell-method {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.cell-method__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

/* «No disponible» / «Solo depósito» siempre en rojo (TOR §5 Б7) */
.neg { color: var(--con); font-weight: 600; }

/* ---------- Б8 — Banner CTA ---------- */

.cta-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 28px;
  background: var(--cta);
  border-radius: var(--radius-card);
}

.cta-banner__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--dark);
  border-radius: var(--radius-btn);
}

.cta-banner__brand img { display: block; height: 22px; width: auto; }

.cta-banner__text { flex: 1 1 auto; color: var(--dark); }

.cta-banner__title {
  display: block;
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}

.cta-banner__subtitle {
  display: block;
  font-size: 15px;
  line-height: 22px;
}

.cta-banner .btn { flex: 0 0 auto; }

/* ---------- Б9 — Cronología ---------- */

.timeline {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  position: relative;
  flex: 1 1 0;
  padding-top: 26px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.timeline__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__year {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 32px;
  font-weight: 700;
  color: var(--accent);
}

.timeline__caption {
  display: block;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

/* ---------- Б10 — Tarjeta de operador ---------- */

.operator-card {
  margin-top: 32px;
  padding: 28px;
  background: var(--accent-light);
  border-radius: var(--radius-card);
}

.operator-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.operator-card__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--dark);
  border-radius: var(--radius-btn);
}

.operator-card__brand img { display: block; height: 22px; width: auto; }

.operator-card__name { margin: 0; }

.operator-card__facts {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.operator-card__facts li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 24px;
}

.operator-card__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.4 11.9 2.9 8.4l-1.3 1.3 4.8 4.8L14.8 6.1l-1.3-1.3z' fill='%23128A5E'/%3E%3C/svg%3E") center/contain no-repeat;
}

.operator-card__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}

/* ---------- Б11 — Fuentes ---------- */

.sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources li { margin-bottom: 12px; font-size: 15px; line-height: 24px; }
.sources li:last-child { margin-bottom: 0; }

.sources a { font-weight: 500; }

.sources__domain { color: var(--muted); }
.sources__date { color: var(--muted); }

.sources__sep { color: var(--border); margin: 0 4px; }

/* ---------- Б12 — FAQ ---------- */

.faq { border-top: 1px solid var(--border); }

.faq__item { border-bottom: 1px solid var(--border); }

.faq__item summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  transition: var(--tr);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary:hover { color: var(--accent); }

.faq__item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: var(--tr);
}

.faq__item[open] summary::after { transform: rotate(225deg); }

.faq__answer { padding: 0 44px 20px 0; }

.faq__answer p { margin: 0 0 12px; font-size: 15px; line-height: 24px; }
.faq__answer p:last-child { margin-bottom: 0; }

/* ---------- Б13 — Autor ---------- */

.author-card {
  display: flex;
  gap: 22px;
  padding: 24px;
  background: var(--page-bg);
  border-radius: var(--radius-card);
}

.section--gray .author-card { background: var(--white); }

.author-card__photo {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__name {
  margin: 0 0 2px;
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--dark);
}

.author-card__role {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}

.author-card__bio { margin: 0; font-size: 15px; line-height: 24px; }

/* ---------- Б14 — Tarjetas de navegación ---------- */

.navcards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

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

.navcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 14px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--tr);
}

.section--white .navcard { border: 1px solid var(--border); }

.navcard:hover {
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  color: var(--accent);
}

.navcard__icon { width: 40px; height: 40px; border-radius: 12px; }

/* ---------- Aviso / callout ---------- */

.callout {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-badge);
  font-size: 15px;
  line-height: 24px;
}

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

.callout p { margin: 0; }

/* ---------- Footer (§4.2) ---------- */

.site-footer {
  background: var(--dark);
  color: var(--border);
  padding: 56px 0 40px;
  font-size: 15px;
  line-height: 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer__title {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 8px; }

.footer__list a { color: var(--border); }
.footer__list a:hover { color: var(--cta); text-decoration: none; }

.footer__brand p { margin: 12px 0 0; color: rgba(221, 227, 233, .75); }

.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.footer__badge {
  padding: 6px 14px;
  border: 1px solid rgba(221, 227, 233, .35);
  border-radius: var(--radius-badge);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--border);
}

.footer__disclaimer {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(221, 227, 233, .15);
  font-size: 13px;
  line-height: 20px;
  color: rgba(221, 227, 233, .55);
}

/* ---------- Barra flotante (§4.3) ---------- */

.floatbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: var(--bar-h);
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 -2px 12px rgba(28, 39, 51, .18);
  will-change: transform;
}

.floatbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--bar-h);
}

.floatbar__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, .9);
}

.floatbar__text strong { color: var(--cta); }

.floatbar__logo { flex: 0 0 auto; display: flex; align-items: center; }
.floatbar__logo img { display: block; height: 20px; width: auto; }

.floatbar .btn { padding: 9px 22px; font-size: 15px; line-height: 22px; }

/* Espaciador: garantiza que la barra nunca tape el último bloque (FAQ),
   incluso sin JS. */
.floatbar-spacer { height: var(--bar-h); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (max-width: 1120px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .navcards { grid-template-columns: repeat(3, 1fr); }
  .navcards--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 20px;
    background: var(--dark);
    border-top: 1px solid rgba(221, 227, 233, .15);
    box-shadow: 0 12px 24px rgba(28, 39, 51, .3);
  }

  .nav.nav--open { display: flex; }

  .nav__link { padding: 12px; font-size: 16px; }

  .dropdown__menu {
    position: static;
    margin: 4px 0 4px 12px;
    padding: 0 0 0 12px;
    border-left: 2px solid rgba(221, 227, 233, .25);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .dropdown.dropdown--open .dropdown__menu { display: block; }
  .dropdown.dropdown--open .nav__caret { transform: rotate(225deg) translateY(-2px); }

  .dropdown__menu a { color: var(--border); padding: 10px 12px; }
  .dropdown__menu a:hover { background: none; color: var(--cta); }

  .site-header .btn { margin-top: 8px; }

  .hero__inner { gap: 28px; }
  .hero__icon { width: 72px; height: 72px; }

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

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

  .cta-banner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 26px; }

  h1 { font-size: 30px; line-height: 38px; }
  h2 { font-size: 23px; line-height: 30px; }

  .container { padding-left: 16px; padding-right: 16px; }

  .section { padding: 40px 0; }
  .section--prefooter { padding-bottom: calc(40px + var(--bar-h)); }

  .hero { padding: 48px 0; }
  .hero__lead { font-size: 17px; line-height: 28px; }
  .hero__icon { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .method-card { padding: 18px; }
  .method-card__pills { flex-direction: column; }

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

  .cta-banner { padding: 20px; gap: 16px; }
  .cta-banner .btn { width: 100%; }

  .timeline { flex-direction: column; gap: 20px; }
  .timeline__item { padding: 0 0 0 28px; }
  .timeline__item::before { top: 0; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .timeline__item::after { top: 6px; left: 0; }

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

  .floatbar__text { display: none; }
  .floatbar__inner { justify-content: space-between; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
