/**
 * miniprestamos.online — estilos globales
 * Base visual: claridad, confianza, seriedad (finanzas / SEO).
 * Mobile-first. Sin dependencias externas.
 */

/* -------------------------------------------------------------------------- */
/* Reset suave                                                                */
/* -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* -------------------------------------------------------------------------- */
/* Variables globales (:root)                                                 */
/* -------------------------------------------------------------------------- */

:root {
  /* Color */
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #4a5568;
  --color-border: #e2e8f0;
  --color-primary: #1e4a8c;
  --color-primary-hover: #163a70;
  --color-primary-soft: #e8eef7;
  --color-accent: #2d7a4f;
  --color-accent-soft: #e6f4ec;
  --color-warning-bg: #fff8e6;
  --color-warning-border: #e6d399;

  /* Tipografía */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 0.8125rem;
  --font-size-sm: 0.9375rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --line-tight: 1.25;
  --line-normal: 1.55;
  --line-relaxed: 1.65;

  /* Espaciado (sistema 4px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container-max: 72rem;
  --container-pad: var(--space-4);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 35, 50, 0.08);

  /* Header */
  --z-header: 100;
  --z-overlay: 90;
}

/* -------------------------------------------------------------------------- */
/* Base global                                                                */
/* -------------------------------------------------------------------------- */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-home {
  color: #0f172a;
}

main {
  flex: 1 0 auto;
}

/* Tipografía */
h1,
h2,
h3,
h4 {
  line-height: var(--line-tight);
  font-weight: 700;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

small,
.text-small {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Contenedor y layout                                                        */
/* -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-10);
}

.section--tight {
  padding-block: var(--space-8);
}

.section__intro {
  max-width: 40rem;
  margin-bottom: var(--space-8);
}

.section__title {
  margin-bottom: var(--space-3);
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner,
.site-header .container.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.site-logo,
.site-header__logo,
.site-header__brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(720px, 78vw);
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.site-logo img,
.site-header__logo img {
  display: block;
  width: auto;
  height: calc(72px - 16px);
  max-height: calc(72px - 16px);
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-header nav,
.site-nav,
.site-header__nav {
  margin-left: auto;
}

.site-logo:hover,
.site-logo:focus-visible {
  text-decoration: none;
}

.site-logo:hover img,
.site-logo:focus-visible img {
  opacity: 0.9;
}

.site-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: var(--color-surface);
}

.site-nav-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.site-nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 1.25rem;
}

.site-nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-header__inner,
  .site-header .container,
  .site-header .container.site-header__inner,
  .site-header__content {
    display: grid;
    grid-template-columns: minmax(2.75rem, 1fr) auto minmax(2.75rem, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 68px;
    padding: 12px 16px;
    box-sizing: border-box;
  }

  .site-logo,
  .site-header__logo,
  .site-header__brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    max-width: min(100%, calc(100vw - 2 * 2.75rem - 32px));
    margin: 0;
  }

  .site-logo img,
  .site-header__logo img {
    height: calc(68px - 24px);
    max-height: calc(68px - 24px);
    max-width: 100%;
    width: auto;
    display: block;
    object-position: center center;
  }

  .site-nav-toggle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
  }

  .site-nav {
    margin-left: 0;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.site-nav.is-open {
  display: block;
}

.site-nav__list {
  padding: var(--space-4) var(--container-pad) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-nav__link {
  display: block;
  padding: var(--space-3) var(--space-2);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-text);
  color: #cbd5e1;
  padding-block: var(--space-10);
  margin-top: auto;
  font-size: var(--font-size-sm);
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: underline;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.site-footer__title {
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer__list li {
  margin-bottom: var(--space-2);
}

.site-footer__list a {
  text-decoration: none;
}

.site-footer__list a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: var(--font-size-xs);
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  background: linear-gradient(165deg, #f4f7fc 0%, var(--color-surface) 45%, #eef2f8 100%);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-12);
}

.hero__inner {
  max-width: 40rem;
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.hero__title {
  margin-bottom: var(--space-4);
}

.hero__lead {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero — sistema (layout global, dos columnas en escritorio) */
.hero--system .hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.hero--system .hero__content {
  min-width: 0;
}

.hero--system .hero__eyebrow {
  margin-bottom: var(--space-4);
}

.hero--system .hero__title {
  font-size: clamp(1.65rem, 1.15rem + 2vw, 2.35rem);
  line-height: var(--line-tight);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.hero--system .hero__lead {
  line-height: var(--line-relaxed);
  max-width: 38rem;
  margin-bottom: var(--space-6);
}

.hero--system .hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero--system .hero__actions .btn--primary {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  box-shadow: 0 2px 12px rgba(30, 74, 140, 0.2);
}

.hero--system .hero__trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero--system .hero__trust-item {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-normal);
}

.hero--system .hero__trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.hero__panel {
  min-width: 0;
}

.hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 28px rgba(26, 35, 50, 0.08);
  padding: var(--space-6);
}

@media (min-width: 48rem) {
  .hero--system .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero--system .hero__actions .btn {
    width: auto;
  }

  .hero--system .hero__actions .btn--primary {
    flex: 1 1 auto;
    min-width: 14rem;
  }
}

.hero-card__eyebrow {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
}

.hero-card__title {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
  line-height: var(--line-tight);
}

.hero-card__list {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-relaxed);
}

.hero-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.55;
}

.hero-card__note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  line-height: var(--line-relaxed);
}

.hero--simple .hero__layout {
  grid-template-columns: 1fr;
}

/* -------------------------------------------------------------------------- */
/* Botones                                                                    */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--font-size-sm);
  line-height: 1.2;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--accent:hover {
  filter: brightness(0.95);
}

/* -------------------------------------------------------------------------- */
/* Cards y grid simple                                                        */
/* -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  gap: var(--space-6);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.card__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* -------------------------------------------------------------------------- */
/* Trust strip                                                                */
/* -------------------------------------------------------------------------- */

.trust-strip {
  background: var(--color-primary-soft);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-5);
}

.trust-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-strip__item::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Tabla comparativa (responsive)                                             */
/* -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.compare-table th,
.compare-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.compare-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------- */
/* Listas de beneficios                                                       */
/* -------------------------------------------------------------------------- */

.benefit-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--color-accent);
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                        */
/* -------------------------------------------------------------------------- */

.faq {
  max-width: 42rem;
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  background: var(--color-surface);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border: none;
  background: var(--color-surface);
}

.faq__question:hover {
  background: var(--color-bg);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
}

.faq__icon {
  flex-shrink: 0;
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  transition: transform 0.15s ease;
}

.faq__panel {
  padding: 0 var(--space-5) var(--space-4);
  display: none;
}

.faq__panel.is-open {
  display: block;
}

.faq__panel p {
  font-size: var(--font-size-sm);
}

/* -------------------------------------------------------------------------- */
/* CTA banner                                                                 */
/* -------------------------------------------------------------------------- */

.cta-banner {
  background: var(--color-primary);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-6);
  box-sizing: border-box;
}

.cta-banner__content {
  min-width: 0;
  max-width: 100%;
}

.cta-banner__title {
  color: #fff;
  font-size: var(--font-size-2xl);
  margin: 0 0 var(--space-3);
}

.cta-banner__text {
  color: #cbd5e1;
  margin: 0;
  max-width: 36rem;
}

.cta-banner__text p {
  color: inherit;
}

.cta-banner__action {
  display: flex;
  align-items: stretch;
}

.cta-banner__action .btn {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-5);
  white-space: normal;
  text-align: center;
}

.cta-banner .btn--secondary {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.cta-banner .btn--secondary:hover {
  background: var(--color-primary-soft);
}

/* -------------------------------------------------------------------------- */
/* Avisos / disclaimers                                                       */
/* -------------------------------------------------------------------------- */

.notice {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-warning-border);
  background: var(--color-warning-bg);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

.notice p {
  color: inherit;
  margin-bottom: var(--space-2);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Utilidades mínimas                                                         */
/* -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.stack > * + * {
  margin-top: var(--space-4);
}

/* -------------------------------------------------------------------------- */
/* Breakpoints (mobile-first)                                                 */
/* -------------------------------------------------------------------------- */

@media (min-width: 48rem) {
  :root {
    --container-pad: var(--space-6);
  }

  .site-header__inner,
  .site-header .container.site-header__inner {
    display: flex;
    gap: var(--space-4);
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-logo,
  .site-header__logo,
  .site-header__brand {
    grid-column: auto;
    justify-self: auto;
    max-width: min(720px, 52vw);
  }

  .site-nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    border: none;
    box-shadow: none;
    background: transparent;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    padding: 0;
  }

  .site-nav__link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .hero {
    padding-block: var(--space-16);
  }

  .hero--system .hero__layout {
    grid-template-columns: minmax(0, 56%) minmax(0, 44%);
    gap: var(--space-10);
    align-items: center;
  }

  .hero--system .hero__actions {
    margin-bottom: var(--space-8);
  }

  .hero-card {
    padding: var(--space-8);
  }

  .hero--simple .hero__layout {
    grid-template-columns: 1fr;
  }

  .cta-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-6) var(--space-8);
    padding: var(--space-8) 2.25rem;
  }

  .cta-banner__content {
    max-width: 38rem;
  }

  .cta-banner__action {
    justify-content: flex-end;
    align-items: center;
  }

  .cta-banner__action .btn {
    width: auto;
    min-width: 16rem;
    white-space: nowrap;
  }
}

/* -------------------------------------------------------------------------- */
/* Home hero + trust compact (page-home)                                      */
/* -------------------------------------------------------------------------- */

.home-hero {
  position: relative;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  min-height: auto;
  max-height: none;
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 24px;
  margin-top: 0;
  overflow: visible;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(270deg, #f7f9fc 0%, rgba(247, 249, 252, 0) 100%);
  pointer-events: none;
  z-index: 3;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0) 0%, #f7f9fc 100%);
  pointer-events: none;
  z-index: 3;
}

.home-hero__content {
  position: relative;
  z-index: 4;
  overflow: visible;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: grid;
  grid-template-columns: minmax(420px, 540px) 1fr;
  gap: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.home-hero__text {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 560px;
  padding-top: 24px;
  padding-bottom: 48px;
  margin-top: 0;
  align-self: start;
}

.home-hero h1,
.home-hero__text h1 {
  margin: 0 0 18px;
  font-size: clamp(4rem, 6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.93;
  max-width: 9ch;
  color: var(--color-text);
  letter-spacing: -0.04em;
}

.home-hero__sub {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);
  max-width: 34ch;
  color: #1e293b;
  line-height: 1.55;
}

.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 14px;
}

.hero-proof__rating {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-proof__text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.35;
}

.hero-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 1.25rem;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.hero-trust-points li {
  position: relative;
  padding-left: 1.1em;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: #334155;
}

.hero-trust-points li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-size: 0.85em;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  padding-inline-start: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #64748b;
  opacity: 0.85;
}

.hero-steps li {
  list-style: none;
  display: inline;
}

.hero-steps li::after {
  content: "→";
  margin: 0 6px;
  opacity: 0.5;
}

.hero-steps li:last-child::after {
  content: "";
  margin: 0;
}

.home-hero__cta {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  min-width: 0;
  max-width: 100%;
  padding: 18px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.page-home .btn-primary,
.page-home .success-scroll a.btn-primary,
.page-home .home-hero .btn,
.page-home .home-hero .btn-primary,
.page-home .home-hero__cta {
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25);
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.page-home .home-hero .btn,
.page-home .home-hero .btn-primary,
.page-home .home-hero__cta {
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.28);
}

.page-home .btn-primary:hover,
.page-home .success-scroll a.btn-primary:hover,
.page-home .home-hero .btn:hover,
.page-home .home-hero .btn-primary:hover,
.page-home .home-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.3);
  filter: none;
}

.home-hero .btn:hover,
.home-hero .btn-primary:hover {
  transform: translateY(-2px);
}

.page-home .cta-banner .btn,
.page-home .cta-banner .btn--secondary {
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.25);
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.page-home .cta-banner .btn:hover,
.page-home .cta-banner .btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(46, 125, 50, 0.3);
}

.home-hero__cta:focus-visible {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

.home-hero__image {
  position: absolute;
  right: 10px;
  bottom: -38px;
  width: 58%;
  height: auto;
  min-height: 0;
  z-index: 2;
  min-width: 0;
  margin-top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  background: transparent !important;
  pointer-events: none;
}

.home-hero__image img,
.home-hero__image .hero__img,
.home-hero__image .hero-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: none;
  transform: none;
}

@media (min-width: 769px) {
  .home-hero {
    overflow: hidden;
  }

  .home-hero__image {
    right: 0;
    bottom: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
  }

  .home-hero__image img,
  .home-hero__image .hero__img,
  .home-hero__image .hero-image {
    width: auto;
    height: 92%;
    max-height: 520px;
    max-width: none;
    object-fit: contain;
  }
}

@media (min-width: 1200px) {
  .home-hero__image img,
  .home-hero__image .hero__img,
  .home-hero__image .hero-image {
    max-height: 560px;
  }
}

/* ================================
   BLOQUE CONFIANZA MEDALLAS
================================ */

.trust-awards {
  padding: clamp(24px, 4vw, 48px) 0;
  background: #f8fafc;
}

.trust-awards__panel {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.trust-awards__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 20px;
}

.trust-awards__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.trust-awards__text {
  font-size: 16px;
  color: #475569;
  line-height: 1.5;
}

.trust-awards__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: center;
  justify-items: center;
}

.trust-awards__item {
  width: 100%;
  max-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-awards__item img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.08));
  transition: transform 0.25s ease;
}

.trust-awards__item img:hover {
  transform: translateY(-4px);
}

/* ================================
   TABLET
================================ */

@media (max-width: 1024px) {
  .trust-awards__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================
   MÓVIL
================================ */

@media (max-width: 640px) {
  .trust-awards__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-awards__item {
    max-width: 120px;
  }

  .trust-awards__grid div:last-child {
    grid-column: span 2;
    justify-self: center;
  }
}

@media (max-width: 63.99rem) {
  .home-hero {
    min-height: auto;
    max-height: none;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding-top: 0;
    padding-bottom: 16px;
    overflow: visible;
    align-items: flex-start;
  }

  .home-hero__content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 10px 0;
    align-items: start;
    text-align: left;
    overflow: visible;
  }

  .home-hero__text {
    order: 1;
    max-width: 100%;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-hero h1,
  .home-hero__text h1 {
    display: block;
    width: 100%;
    max-width: none;
    font-size: clamp(2.6rem, 9.5vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    margin: 0 0 14px;
    text-wrap: balance;
  }

  .home-hero p,
  .home-hero__sub,
  .home-hero__text p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-proof {
    margin: 12px 0 10px;
  }

  .hero-proof__rating {
    font-size: 0.95rem;
  }

  .hero-proof__text {
    font-size: 0.8125rem;
  }

  .hero-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 10px 0 14px;
    padding: 0;
    list-style: none;
  }

  .hero-trust-points li {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .home-hero .btn,
  .home-hero .btn-primary,
  .home-hero__cta,
  .page-home .home-hero .btn,
  .page-home .home-hero .btn-primary,
  .page-home .home-hero__cta {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .home-hero__image {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    order: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: 6px;
    max-height: none;
    overflow: visible;
    background: transparent !important;
    pointer-events: auto;
  }

  .home-hero__image img,
  .home-hero__image .hero__img,
  .home-hero__image .hero-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 92%;
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
  }
}

/* -------------------------------------------------------------------------- */
/* Success scroll — narrativa 7 escenas (home)                                */
/* -------------------------------------------------------------------------- */

.success-scroll {
  background: linear-gradient(180deg, #f8fafc, #eef2f7, #f8fafc);
}

.success-scroll .scene {
  position: relative;
  min-height: 260px;
  padding: 20px 0;
  box-sizing: border-box;
  scroll-margin-top: 80px;
}

.success-scroll .scene--cta .scene__text {
  position: relative;
}

.success-scroll .scene--cta .scene__text::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  width: 4px;
  height: 28px;
  background: #2e7d32;
  border-radius: 2px;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .success-scroll .scene--cta .scene__text::before {
    display: none;
  }
}

.success-scroll .scene-1 {
  min-height: 280px;
}

.success-scroll .scene-4 {
  min-height: 300px;
}

.success-scroll .scene-7 {
  min-height: 320px;
}

.success-scroll .scene--highlight {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.success-scroll .scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 56px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 65%,
    rgba(255, 255, 255, 0.75) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.success-scroll .scene__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: center;
  box-sizing: border-box;
  text-align: left;
  opacity: 1;
  transform: none;
}

.success-scroll .scene__text {
  min-width: 0;
  max-width: 520px;
  color: #1a2332;
}

.success-scroll .scene__text p:first-child {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  max-width: 12ch;
  color: #0f172a;
}

.success-scroll .scene__text p:not(:first-child) {
  margin: 0 0 16px;
}

.success-scroll .scene__text p:nth-child(2) {
  font-size: 1.05rem;
  max-width: 40ch;
  color: #1e293b;
  line-height: var(--line-relaxed);
}

.success-scroll .scene__text p:last-child {
  margin-bottom: 0;
}

.success-scroll .scene__text p:nth-child(3) {
  margin-top: 0.25rem;
}

.success-scroll .scene__image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  min-width: 0;
  background: transparent;
}

.success-scroll .scene__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -24px;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, #f7f9fc 0%, rgba(247, 249, 252, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

.success-scroll .scene__image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0) 0%, #f7f9fc 100%);
  pointer-events: none;
  z-index: 2;
}

.success-scroll .scene__img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  background: transparent;
  object-fit: contain;
  object-position: center center;
  filter: none;
  opacity: 1;
}

.success-scroll a.btn-primary {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  margin-top: 0.25rem;
}

.success-scroll a.btn-primary:hover {
  filter: brightness(0.95);
}

.success-scroll a.btn-primary:focus-visible {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .success-scroll .scene__content {
      opacity: 0;
      transform: translateY(40px);
      animation: success-scroll-reveal 0.85s ease-out forwards;
      animation-timeline: view();
      animation-range: entry 5% cover 45%;
    }
  }
}

@keyframes success-scroll-reveal {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .success-scroll .scene__content {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 63.99rem) {
  .success-scroll .scene,
  .success-scroll .scene-1,
  .success-scroll .scene-4,
  .success-scroll .scene-7 {
    min-height: auto;
    padding: 24px 0;
  }

  .success-scroll .scene__content {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .success-scroll .scene__image {
    order: -1;
    justify-content: center;
  }

  .success-scroll .scene__img {
    max-width: 280px;
    margin: 0 auto;
  }

  .success-scroll .scene__text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .success-scroll .scene {
    padding: 20px 0;
  }

  .success-scroll .scene__content {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .success-scroll .scene__image {
    order: -1;
    justify-content: center;
    overflow: visible;
  }

  .success-scroll .scene__img {
    max-width: min(520px, 92vw);
    margin: 0 auto;
    filter: none;
    opacity: 1;
  }

  .success-scroll .scene__text {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .success-scroll .scene__text h2,
  .success-scroll .scene__text .scene__title,
  .success-scroll .scene__text p:first-child {
    width: 100%;
    max-width: none;
    font-size: clamp(2.35rem, 8.2vw, 3.2rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .success-scroll .scene h2,
  .success-scroll .scene p,
  .success-scroll .scene .btn,
  .success-scroll .scene .btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* Home — bloque comparador destacado                                         */
/* -------------------------------------------------------------------------- */

.page-home section#comparador.section--compare-hybrid {
  max-width: 1100px;
  margin-top: 100px;
  margin-bottom: 120px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px var(--container-pad);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.page-home .compare-kicker {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-home .featured-offer.offer-card--featured {
  transform: scale(1.02);
  border: 2px solid rgba(46, 125, 50, 0.2);
}

@media (max-width: 768px) {
  .page-home .featured-offer.offer-card--featured {
    transform: none;
  }
}

.page-home section#comparador.section--compare-hybrid .container {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

@media (max-width: 63.99rem) {
  .page-home section#comparador.section--compare-hybrid {
    margin: 48px 16px;
    padding: 24px 20px;
  }
}
