/* ──────────────────────────────────────────────
   TIERRA VIVA — Leonardita de Paraguay
   Editorial · Premium · Azules profundos
────────────────────────────────────────────── */

:root {
  /* Brand — Deep Blue */
  --blue-50:  #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;
  --blue-950: #172554;

  /* Accent — Tierra / ocre (apoyo cálido) */
  --earth-500: #B45309;
  --earth-600: #92400E;
  --earth-50:  #FEF3C7;

  /* Neutrals — Slate */
  --ink-900: #0F172A;
  --ink-800: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50:  #F8FAFC;

  /* Surfaces */
  --bg:      #FFFFFF;
  --surface: #F8FAFC;
  --cream:   #F5F9FF;

  /* Semantic */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #DC2626;

  /* Typography */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 32px 64px rgba(15, 23, 42, 0.14);
  --shadow-brand: 0 16px 40px rgba(30, 64, 175, 0.22);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 240ms var(--ease);
  --t-slow: 420ms var(--ease);

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 860px;
  --nav-h: 76px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--blue-200); color: var(--blue-900); }

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

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

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-variation-settings: "opsz" 96, "SOFT" 25;
}
h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {
  font-size: clamp(1.875rem, 2.5vw + 1rem, 3rem);
  letter-spacing: -0.025em;
}
h3 { font-size: 1.5rem; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p  { color: var(--ink-600); }

em, .italic {
  font-style: italic;
  color: var(--blue-700);
}

/* ─── Utilities ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
}
.container-wide { max-width: var(--container-wide); }
.container-narrow { max-width: var(--container-narrow); }
@media (max-width: 640px) { .container { padding-inline: var(--s-4); } }

.section { padding-block: clamp(var(--s-16), 8vw, var(--s-24)); }
.section-surface { background: var(--surface); }
.section-cream   { background: var(--cream); }
.section-ink     { background: var(--ink-900); color: #fff; }
.section-brand   { background: var(--blue-950); color: #fff; position: relative; overflow: hidden; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: var(--s-5);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-header { max-width: 760px; margin-bottom: var(--s-16); }
.section-header.center { margin-inline: auto; text-align: center; }
.section-header.center .eyebrow::before { display: none; }
.section-header.center .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.section-header h2 { margin-bottom: var(--s-4); }
.section-header p { font-size: 1.125rem; color: var(--ink-500); line-height: 1.6; }

.text-muted { color: var(--ink-500); }
.text-brand { color: var(--blue-700); }
.text-earth { color: var(--earth-600); }
.text-center { text-align: center; }
.font-display { font-family: var(--font-display); }
.italic-display { font-family: var(--font-display); font-style: italic; }

.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3); }

/* ─── Icons ─── */
.icon    { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 40px; height: 40px; }

/* ─── Buttons ─── */
.btn {
  --btn-bg: var(--blue-700);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-base), box-shadow var(--t-base), border-color var(--t-base), color var(--t-base);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-primary { --btn-bg: var(--blue-700); }
.btn-primary:hover { --btn-bg: var(--blue-800); }

.btn-dark { --btn-bg: var(--ink-900); }
.btn-dark:hover { --btn-bg: var(--ink-800); }

.btn-earth { --btn-bg: var(--earth-500); }
.btn-earth:hover { --btn-bg: var(--earth-600); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-border: var(--ink-200);
}
.btn-outline:hover {
  --btn-fg: var(--blue-700);
  --btn-border: var(--blue-600);
  background: var(--blue-50);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-700);
  --btn-border: transparent;
}
.btn-ghost:hover { --btn-bg: var(--ink-50); --btn-fg: var(--ink-900); }

.btn-on-dark {
  --btn-bg: rgba(255,255,255,0.1);
  --btn-fg: #fff;
  --btn-border: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-on-dark:hover {
  --btn-bg: rgba(255,255,255,0.2);
  --btn-border: rgba(255,255,255,0.5);
}

.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: 0.875rem; }
.btn-lg { min-height: 60px; padding: 0 var(--s-8); font-size: 1rem; }
.btn-xl { min-height: 68px; padding: 0 var(--s-10); font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* ─── Navbar ─── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--ink-200);
}
.nav-inner {
  height: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.nav-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--blue-950);
  color: var(--blue-200);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.nav-brand-mark svg { width: 22px; height: 22px; }
.nav-brand strong {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-family: var(--font-body);
}
.nav-brand .dot {
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
  color: var(--blue-700);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-list a:hover { color: var(--ink-900); background: var(--ink-50); }
.nav-list a[aria-current="page"] {
  color: var(--blue-800);
  font-weight: 600;
}
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--ink-50); }

.nav-drawer { display: none; }

@media (max-width: 980px) {
  .nav-list { display: none; }
  .nav-actions .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav-drawer {
    display: block;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--ink-200);
    box-shadow: var(--shadow-lg);
    padding: var(--s-4) var(--s-6) var(--s-8);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-base), opacity var(--t-base);
  }
  .nav-open .nav-drawer { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-drawer ul { display: flex; flex-direction: column; gap: 4px; }
  .nav-drawer a {
    display: flex;
    padding: 14px 12px;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--ink-700);
    font-family: var(--font-display);
  }
  .nav-drawer a[aria-current="page"] { color: var(--blue-700); }
  .nav-drawer .btn { margin-top: var(--s-4); }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s-16));
  padding-bottom: var(--s-20);
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(37,99,235,0.14), transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(30,58,138,0.08), transparent 60%),
    var(--cream);
}
.hero-inner {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--s-5); }
.hero-copy h1 .script {
  font-style: italic;
  font-weight: 500;
  color: var(--blue-700);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.hero-copy .lead {
  font-size: clamp(1.0625rem, 0.8vw + 0.9rem, 1.25rem);
  color: var(--ink-600);
  margin-bottom: var(--s-8);
  max-width: 540px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-10);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--ink-200);
  max-width: 520px;
}
.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta span { font-size: 0.8125rem; color: var(--ink-500); display: block; margin-top: 4px; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(23,37,84,0.35));
  pointer-events: none;
}

.hero-card {
  position: absolute;
  bottom: var(--s-6);
  left: var(--s-6);
  right: var(--s-6);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  text-align: center;
}
.hero-card div + div { border-left: 1px solid var(--ink-100); padding-left: var(--s-4); }
.hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue-900);
  margin-bottom: 2px;
}
.hero-card span { font-size: 0.75rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-visual { aspect-ratio: 16/10; max-width: 720px; margin-inline: auto; width: 100%; }
}
@media (max-width: 540px) {
  .hero-card { position: static; margin-top: var(--s-4); background: var(--surface); }
}

/* ─── Page hero ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--s-16));
  padding-bottom: var(--s-16);
  background: var(--cream);
  border-bottom: 1px solid var(--ink-200);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 340px at 85% -20%, rgba(37,99,235,0.12), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero p { font-size: 1.125rem; color: var(--ink-600); max-width: 640px; margin-inline: auto; }
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-400);
  margin-bottom: var(--s-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--blue-700); }
.breadcrumb svg { color: var(--ink-300); }

/* ─── Grid ─── */
.grid {
  display: grid;
  gap: var(--s-6);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

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

/* ─── Feature card ─── */
.feature {
  padding: var(--s-8) var(--s-6);
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--ink-100);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.feature-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
}
.feature h3 { margin-bottom: var(--s-2); font-family: var(--font-display); font-size: 1.375rem; }
.feature p { font-size: 0.9375rem; }

/* ─── Split (image + text) ─── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.split-grid.reverse > :first-child { order: 2; }
.split-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-bottom: var(--s-5); }
.split-text p { font-size: 1.0625rem; line-height: 1.7; margin-bottom: var(--s-4); }
.split-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.split-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  font-size: 1rem;
  color: var(--ink-700);
}
.split-list .ic {
  flex: none;
  width: 24px; height: 24px;
  color: var(--blue-600);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .split-grid.reverse > :first-child { order: initial; }
  .split-media { aspect-ratio: 16/10; }
}

/* ─── Data card (ficha técnica) ─── */
.spec-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--ink-100);
  gap: var(--s-4);
  align-items: center;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .key {
  font-size: 0.9375rem;
  color: var(--ink-500);
  font-weight: 500;
}
.spec-row .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.spec-row .value .unit {
  font-size: 0.875rem;
  color: var(--ink-500);
  font-weight: 400;
  font-family: var(--font-body);
  margin-left: 4px;
}
.spec-row .value .badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* ─── Crop card ─── */
.crop-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-900);
  display: block;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.crop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.crop-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform var(--t-slow), opacity var(--t-base);
}
.crop-card:hover img { transform: scale(1.05); opacity: 1; }
.crop-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23,37,84,0.88));
  pointer-events: none;
}
.crop-body {
  position: absolute;
  left: var(--s-6);
  right: var(--s-6);
  bottom: var(--s-6);
  color: #fff;
  z-index: 1;
}
.crop-body h3 {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.crop-body p {
  color: rgba(255,255,255,0.82);
  font-size: 0.875rem;
  margin-bottom: var(--s-3);
}
.crop-body .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-200);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.crop-body .arrow svg { transition: transform var(--t-fast); }
.crop-card:hover .crop-body .arrow svg { transform: translateX(4px); }

/* ─── Format card (presentaciones) ─── */
.format-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.format-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.format-card .pkg {
  height: 140px;
  display: grid; place-items: center;
  margin-bottom: var(--s-5);
  background: linear-gradient(160deg, var(--blue-50), var(--ink-50));
  border-radius: var(--r-lg);
  color: var(--blue-800);
}
.format-card .pkg svg { width: 72px; height: 72px; stroke-width: 1.25; }
.format-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: var(--s-2); }
.format-card .size {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blue-700);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}
.format-card p { font-size: 0.9375rem; margin-bottom: var(--s-5); }

/* ─── Timeline (proceso) ─── */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--blue-100);
}
.timeline-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-6);
  padding: var(--s-4) 0 var(--s-8);
  position: relative;
}
.timeline-step::before {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  counter-increment: step;
  content: counter(step);
  box-shadow: 0 0 0 4px var(--cream);
  position: relative;
  z-index: 1;
}
.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: var(--s-2);
}
.timeline-step p { font-size: 1rem; line-height: 1.65; }
.timeline { counter-reset: step; }

/* ─── Stats dark ─── */
.stats-dark {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  padding: var(--s-16) var(--s-10);
  background: var(--blue-950);
  color: #fff;
  border-radius: var(--r-2xl);
  position: relative;
  overflow: hidden;
}
.stats-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% -20%, rgba(59,130,246,0.25), transparent 60%);
  pointer-events: none;
}
.stat { position: relative; }
.stat h3 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--s-1);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat h3 .unit {
  color: var(--blue-300);
  font-style: italic;
  font-weight: 400;
}
.stat p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; }

@media (max-width: 760px) {
  .stats-dark { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); padding: var(--s-10); }
}

/* ─── Testimonial ─── */
.quote {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: var(--s-10);
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 20px; left: 28px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--blue-100);
  font-weight: 700;
}
.quote p {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink-800);
  margin-bottom: var(--s-6);
  position: relative;
  z-index: 1;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.quote footer {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink-100);
}
.quote .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid; place-items: center;
  font-size: 1rem;
}
.quote strong { display: block; color: var(--ink-900); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; }
.quote span { font-size: 0.8125rem; color: var(--ink-500); }

/* ─── Badge certificación ─── */
.cert-card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.cert-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.cert-card .seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-50), var(--cream));
  display: grid; place-items: center;
  color: var(--blue-800);
  border: 2px solid var(--blue-100);
}
.cert-card h3 { font-family: var(--font-display); font-size: 1.25rem; }
.cert-card .issuer { font-size: 0.8125rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.cert-card p { font-size: 0.9375rem; }

/* ─── FAQ ─── */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq details {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq details[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-5) var(--s-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-weight: 600;
  color: var(--ink-900);
  font-size: 1.0625rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E3A8A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform var(--t-base);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body {
  padding: 0 var(--s-6) var(--s-6);
  color: var(--ink-600);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Banner CTA ─── */
.cta-banner {
  position: relative;
  padding: clamp(var(--s-12), 6vw, var(--s-20));
  background: linear-gradient(135deg, var(--blue-900), var(--blue-950));
  color: #fff;
  border-radius: var(--r-2xl);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.cta-banner::before {
  width: 400px; height: 400px;
  background: var(--blue-500);
  top: -140px; left: -120px;
  opacity: 0.25;
}
.cta-banner::after {
  width: 440px; height: 440px;
  background: var(--earth-500);
  bottom: -180px; right: -160px;
  opacity: 0.14;
}
.cta-banner > * { position: relative; }
.cta-banner .eyebrow { color: var(--blue-300); }
.cta-banner h2 { color: #fff; margin-bottom: var(--s-4); max-width: 680px; margin-inline: auto; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto var(--s-8); font-size: 1.0625rem; }
.cta-banner .actions {
  display: flex; flex-wrap: wrap;
  gap: var(--s-3); justify-content: center;
}

/* ─── Forms ─── */
.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field label .req { color: var(--blue-700); }
.field .error { font-size: 0.8125rem; color: var(--danger); display: none; }
.field[data-invalid="true"] .error { display: block; }

.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-md);
  color: var(--ink-900);
  font-size: 1rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-family: var(--font-body);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #FEE2E2;
}
.textarea { min-height: 128px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-check {
  display: flex; align-items: flex-start;
  gap: 10px; font-size: 0.875rem; color: var(--ink-500);
}
.field-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue-700); }
.field-check a { color: var(--blue-700); text-decoration: underline; }

.form-success {
  display: none;
  padding: var(--s-4);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-900);
}
.form-success[data-visible="true"] { display: block; }

.chip-group {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.chip-group label {
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}
.chip-group .chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: all var(--t-fast);
}
.chip-group .chip:hover { border-color: var(--ink-300); }
.chip-group input:checked + .chip {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
}

/* Info items */
.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-12);
}
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-list { display: flex; flex-direction: column; gap: var(--s-4); }
.info-item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-lg);
  transition: border-color var(--t-base);
}
.info-item:hover { border-color: var(--blue-200); }
.info-item .ic {
  width: 44px; height: 44px;
  flex: none;
  display: grid; place-items: center;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--r-md);
}
.info-item h4 { font-size: 0.8125rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-family: var(--font-body); }
.info-item p, .info-item a { color: var(--ink-900); font-weight: 500; }
.info-item a:hover { color: var(--blue-700); }

.map-wrap {
  margin-top: var(--s-8);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-100);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ─── Footer ─── */
.footer {
  background: var(--blue-950);
  color: rgba(255,255,255,0.65);
  padding: var(--s-20) var(--s-6) var(--s-10);
  margin-top: var(--s-16);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 500px at 90% 0%, rgba(37,99,235,0.18), transparent 60%);
  pointer-events: none;
}
.footer > * { position: relative; }
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-10);
}
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,0.65); font-size: 0.9375rem; transition: color var(--t-fast); }
.footer a:hover { color: #fff; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
}
.footer-brand .mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue-700);
  border-radius: 50%;
}
.footer-desc { max-width: 360px; font-size: 0.9375rem; line-height: 1.7; margin-bottom: var(--s-5); color: rgba(255,255,255,0.6); }
.footer-social {
  display: flex;
  gap: var(--s-2);
}
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
}
.footer-social a:hover { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: var(--s-12) auto 0;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }

/* ─── Floating WhatsApp ─── */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 56px; height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform var(--t-base);
}
.wa-fab:hover { transform: translateY(-2px) scale(1.05); }
.wa-fab svg { width: 28px; height: 28px; }

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -50px;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 100;
  transition: top var(--t-base);
}
.skip-link:focus { top: var(--s-4); }
