/* =========================================================
   Credito Contigo — Sitio corporativo
   Trust Green theme, alineado con la app móvil H5
   Paleta principal: #0F7A55 (verde) · #F5C24C (dorado)
   ========================================================= */

:root {
  /* Brand */
  --brand: #0F7A55;
  --brand-dark: #0B5C40;
  --brand-darker: #084430;
  --brand-soft: #E8F5EE;
  --brand-soft-2: #F4FBF7;
  --gold: #F5C24C;
  --gold-dark: #E5A518;
  --gold-soft: rgba(245, 194, 76, 0.14);

  /* Neutrals */
  --bg: #FBFAF6;
  --bg-warm: #FBFAF6;
  --surface: #ffffff;
  --text: #1A2B22;
  --text-regular: #3F4E47;
  --text-secondary: #6B7772;
  --text-muted: #9AA39F;
  --text-tertiary: #B5BDB9;
  --border: #EEF2F0;
  --border-soft: #F1F4F2;

  /* Status */
  --danger: #EF4757;
  --danger-soft: rgba(239, 71, 87, 0.1);
  --info: #3B82F6;

  /* Effects */
  --shadow-sm: 0 4px 12px rgba(11, 92, 64, 0.05);
  --shadow-md: 0 8px 22px rgba(11, 92, 64, 0.08);
  --shadow-lg: 0 20px 44px rgba(11, 92, 64, 0.14);
  --shadow-gold: 0 12px 28px rgba(245, 194, 76, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --gradient-brand: linear-gradient(140deg, #0F7A55 0%, #0B5C40 60%, #084430 100%);
  --gradient-gold: linear-gradient(135deg, #F5C24C 0%, #E5A518 100%);
}

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

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

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-secondary); }
.small { font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(11, 92, 64, 0.24);
  background: transparent;
}
.brand-mark img,
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.brand-text small {
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--text-regular);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.main-nav a.active {
  color: var(--brand);
  font-weight: 700;
  border-bottom-color: var(--brand);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* -----------------------------------------------------------
 * Embed mode
 * -----------------------------------------------------------
 * Cuando la página se carga dentro de un iframe (por ejemplo el
 * WebView de la app Credito Contigo H5), ocultamos la barra de
 * navegación, el pie de página y las decoraciones. Sólo queda el
 * contenido legal, para que la app aporte su propio topbar y
 * botón "atrás".
 * Activado automáticamente por js/main.js (window.top !== window.self).
 */
body.is-embed .site-header,
body.is-embed .site-footer { display: none !important; }

body.is-embed .legal {
  padding: 0;
  min-height: auto;
  background: #fff;
}
body.is-embed .legal::before { display: none; }
body.is-embed .legal-container { padding: 0; max-width: none; }
body.is-embed .legal-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 24px clamp(16px, 4.5vw, 32px);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -140px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: rgba(15, 122, 85, 0.35);
}
.hero::after {
  top: 20px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: rgba(245, 194, 76, 0.35);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero h1 .hi {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin: 0 0 26px;
  max-width: 560px;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-regular);
  box-shadow: var(--shadow-sm);
}
.badge svg { color: var(--brand); flex-shrink: 0; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(11, 92, 64, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: #fff; text-decoration: none; }

/* Hero card (loan amount preview) — inspirado en la hero-card de la app */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.credit-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 26px 26px 24px;
  border-radius: 28px;
  background: var(--gradient-brand);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(11, 92, 64, 0.35);
  animation: floatIn 0.9s ease-out both;
}
.credit-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 76, 0.35) 0%, rgba(245, 194, 76, 0) 70%);
}
.credit-card::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 227, 176, 0.28) 0%, rgba(127, 227, 176, 0) 70%);
}
.credit-card__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 1;
}
.credit-card__label {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.credit-card__amount {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.credit-card__amount .unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
}
.credit-card__amount .value {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.credit-card__stats {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 14px 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.credit-card__stats .stat {
  text-align: center;
}
.credit-card__stats .stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}
.credit-card__stats .stat-value {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.credit-card__stats .divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
}
.credit-card__cta {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-gold);
  color: #3D2C10;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.credit-card__cta:hover { text-decoration: none; }
.credit-card__hint {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, #fff 0%, var(--brand-soft-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 122, 85, 0.1);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 800;
}
.section-text {
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 0 20px;
  font-size: 1.02rem;
}

/* Steps / Cómo funciona */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
}
.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card__num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(11, 92, 64, 0.22);
}
.step-card__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.step-card__desc { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

/* Benefits grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.benefit-card {
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-card__ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.benefit-card__ico.is-a { background: linear-gradient(140deg, #0F7A55 0%, #0B5C40 100%); }
.benefit-card__ico.is-b { background: linear-gradient(140deg, #F5C24C 0%, #E5A518 100%); }
.benefit-card__ico.is-c { background: linear-gradient(140deg, #10B981 0%, #059669 100%); }
.benefit-card__ico.is-d { background: linear-gradient(140deg, #3B82F6 0%, #2563EB 100%); }
.benefit-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.benefit-card__desc { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

/* Stats strip */
.stats-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stats-item { text-align: center; }
.stats-item__num {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 900;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}
.stats-item__num .u {
  font-size: 0.6em;
  color: var(--gold);
  margin-left: 4px;
}
.stats-item__label {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Info cards (about / product features) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 18px;
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h3::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.data-list { list-style: none; padding: 0; margin: 0; }
.data-list li {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.94rem;
}
.data-list li:last-child { border-bottom: 0; }
.data-list li span { flex: 0 0 40%; color: var(--text-secondary); }
.data-list li strong { flex: 1; font-weight: 700; color: var(--text); }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 9px 0 9px 30px;
  position: relative;
  font-size: 0.98rem;
  color: var(--text-regular);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 4px rgba(15, 122, 85, 0.08);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Tech partner */
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin-top: 32px;
}
.tech-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.tech-logo {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(11, 92, 64, 0.25);
}
.tech-header h3 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.tech-header p { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.tech-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(15, 122, 85, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-regular);
}

/* Reviews / Testimonials */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.review-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card__stars { display: flex; gap: 2px; }
.review-card__quote {
  font-size: 0.98rem;
  color: var(--text-regular);
  line-height: 1.55;
  font-style: italic;
}
.review-card__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-card__name { font-weight: 700; color: var(--text); font-size: 0.94rem; }
.review-card__city { color: var(--text-secondary); font-size: 0.85rem; }

/* FAQ */
.faq-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: rgba(15, 122, 85, 0.35); box-shadow: var(--shadow-sm); }
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.faq-item__toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15, 122, 85, 0.08);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item.is-open .faq-item__toggle { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  transition: max-height .28s ease, opacity .22s ease, margin-top .28s ease;
}
.faq-item.is-open .faq-item__a {
  max-height: 320px;
  opacity: 1;
  margin-top: 12px;
}

/* Security badges */
.badges {
  padding: 60px 0;
}
.badges-title {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.badges-title .line { flex: 0 0 60px; height: 1px; background: var(--border); }
.badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.badge-item {
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge-item__ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(15, 122, 85, 0.1);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-item__text {
  font-size: 0.92rem;
  color: var(--text-regular);
  font-weight: 600;
  line-height: 1.3;
}

/* Phone shell for app preview */
.phone-shell {
  position: relative;
  width: 268px;
  aspect-ratio: 9 / 19.5;
  background: #0f1a15;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 3px #1a2e24;
  margin: 0 auto;
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 20px;
  background: #0f1a15;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: linear-gradient(180deg, #E8F5EE 0%, #f4fbf7 100%);
}
.phone-img.missing {
  background: repeating-linear-gradient(45deg, #E8F5EE 0 10px, #f4fbf7 10px 20px);
}
.phone-img.missing::after {
  content: "Falta la imagen";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--brand-dark); font-size: 0.85rem; font-weight: 600;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 40px;
  justify-items: center;
}
.preview-item {
  text-align: center;
  max-width: 320px;
  margin: 0;
}
.preview-item figcaption {
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 15px;
  background: var(--gradient-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 18px rgba(11, 92, 64, 0.24);
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.contact-card p { margin: 4px 0; color: var(--text-regular); }

.doc-links {
  margin-top: 40px;
  text-align: center;
  color: var(--text-secondary);
}
.doc-links a { margin: 0 6px; font-weight: 600; }

/* ---------- Legal pages ---------- */
.legal {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 260px, var(--bg) 100%);
  padding: 60px 0 80px;
  position: relative;
  min-height: 60vh;
}
.legal::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(15, 122, 85, 0.22);
  filter: blur(80px);
  pointer-events: none;
}
.legal-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px clamp(22px, 5vw, 60px);
  box-shadow: var(--shadow-md);
}
.legal h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.legal .updated {
  color: var(--text-secondary);
  margin: 0 0 24px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(15, 122, 85, 0.08);
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-dark);
}
.legal h2 {
  font-size: 1.28rem;
  margin: 34px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text);
}
.legal h2 .num {
  color: #fff;
  background: var(--gradient-brand);
  width: 32px; height: 32px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(11, 92, 64, 0.22);
}
.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; font-weight: 700; color: var(--text); }
.legal h4 { font-size: 0.98rem; margin: 16px 0 8px; font-weight: 700; }
.legal p { margin: 10px 0; color: var(--text-regular); line-height: 1.7; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; color: var(--text-regular); line-height: 1.65; }
.legal strong { color: var(--text); }

.legal .callout {
  background: rgba(15, 122, 85, 0.06);
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 22px 0;
}
.legal .callout p:first-child { margin-top: 0; }
.legal .callout p:last-child { margin-bottom: 0; }
.legal .info-block {
  background: var(--brand-soft-2);
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 16px 0;
  font-size: 0.95rem;
}
.legal .info-block p { margin: 4px 0; color: var(--text-regular); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}
.legal-table th, .legal-table td {
  padding: 11px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-table th {
  background: var(--brand-soft-2);
  font-weight: 700;
  color: var(--text);
}
.legal-table td { color: var(--text-regular); }

.signature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 26px;
}
.signature-block .sign {
  padding: 20px;
  border: 1px dashed rgba(15, 122, 85, 0.35);
  border-radius: 12px;
  background: var(--brand-soft-2);
}
.signature-block .sign p { margin: 4px 0; }
.signature-block .line {
  border-top: 1px solid var(--text);
  margin: 34px 0 6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, #0F7A55 0%, #084430 100%);
  color: #E8F5EE;
  padding: 46px 0 30px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 194, 76, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.site-footer strong { color: #fff; font-weight: 800; }
.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-brand .brand-mark {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.footer-links {
  display: flex;
  gap: 22px;
  align-items: center;
  padding-top: 8px;
}
.footer-links a { color: #E8F5EE; font-weight: 500; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.copyright {
  grid-column: 1 / -1;
  color: rgba(232, 245, 238, 0.65);
  font-size: 0.85rem;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; }
  .credit-card { max-width: 380px; }
  .section { padding: 56px 0; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: inline-flex; }
  .header-inner { position: relative; }
  .brand-text small { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .signature-block { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; gap: 14px; }
  .legal-card { padding: 26px 20px; }
  .legal h2 { font-size: 1.15rem; }
  .credit-card__amount .value { font-size: 34px; }
}
