/* ============================================
   EMPRENDER EN ÁLAVA — Design System v3
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Paleta principal */
  --blue-950: #0d2a4a;
  --blue-900: #163E6F;
  --blue-800: #1a4f8a;
  --blue-700: #245FAE;
  --blue-500: #3b7fd4;
  --blue-200: #bdd6f0;
  --blue-100: #ddeaf8;
  --blue-50:  #f0f6fd;

  /* Acento */
  --accent:   #e8a020;
  --accent-light: #fef3dc;

  /* Neutros */
  --bg:       #F4F7FB;
  --paper:    #FFFFFF;
  --text:     #1A2535;
  --muted:    #556070;
  --subtle:   #8796a8;
  --line:     #dce6f0;

  /* Tipografía */
  --font: 'Inter', Arial, sans-serif;

  /* Layout */
  --max:      1200px;
  --reading:  760px;
  --radius:   16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-xs: 0 1px 3px rgba(22,62,111,.07);
  --shadow-sm: 0 4px 16px rgba(22,62,111,.08);
  --shadow:    0 8px 32px rgba(22,62,111,.11);
  --shadow-lg: 0 20px 60px rgba(22,62,111,.15);

  /* Transiciones */
  --ease: cubic-bezier(.22,.68,0,1.2);
  --transition: .2s var(--ease);
}

/* ── Reset & base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a  { color: var(--blue-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-900); text-decoration: underline; }
ul, ol { list-style: none; }

/* ── Layout helpers ──────────────────────── */
.wrap    { max-width: var(--max);     margin: 0 auto; padding: 0 32px; }
.reading { max-width: var(--reading); margin: 0 auto; }

/* ============================================
   HEADER & NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.03em;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Desktop nav */
.menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.menu a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-900);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.menu a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  text-decoration: none;
}
.menu a.active {
  background: var(--blue-100);
  color: var(--blue-700);
}
.menu a.nav-cta {
  background: var(--blue-900);
  color: #fff;
  margin-left: 8px;
  padding: 9px 15px;
  border-radius: 999px;
}
.menu a.nav-cta:hover {
  background: var(--blue-800);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--blue-50); }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 0 20px;
  box-shadow: var(--shadow);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-900);
  padding: 12px 28px;
  border-bottom: 1px solid var(--blue-50);
  transition: background var(--transition);
}
.nav-mobile a:hover { background: var(--blue-50); text-decoration: none; }
.nav-mobile a.nav-cta-mobile {
  margin: 12px 24px 0;
  background: var(--blue-900);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  padding: 14px 24px;
}
.nav-mobile a.nav-cta-mobile:hover { background: var(--blue-800); }

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4 {
  letter-spacing: -0.03em;
  color: var(--blue-900);
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 3.75rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.375rem); margin-bottom: 16px; line-height: 1.15; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 10px; line-height: 1.25; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 5px 12px;
  border-radius: 100px;
}
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 0;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  margin-bottom: 36px;
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head--tight {
  margin-bottom: 28px;
}
.section-head .intro {
  max-width: 62ch;
  margin-bottom: 0;
}
.section-header {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-header p {
  max-width: 62ch;
}
.eyebrow--on-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.9);
}

/* ============================================
   BOTONES
   ============================================ */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--blue-900);
  color: #fff;
  box-shadow: 0 6px 24px rgba(22,62,111,.22);
}
.btn-primary:hover {
  background: var(--blue-800);
  color: #fff;
  box-shadow: 0 10px 32px rgba(22,62,111,.28);
}
.btn-secondary {
  background: #fff;
  color: var(--blue-900);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--blue-200);
  background: var(--blue-50);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232,160,32,.3);
}
.btn-accent:hover {
  background: #d4911a;
  color: #fff;
  box-shadow: 0 10px 28px rgba(232,160,32,.38);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 6px 20px rgba(37,211,102,.25);
}
.btn-whatsapp:hover { background: #1fb956; color: #fff; }
.btn-lg { padding: 17px 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============================================
   SECCIONES
   ============================================ */
.section       { padding: clamp(64px, 7vw, 104px) 0; }
.section-alt   {
  background:
    radial-gradient(circle at 10% 0%, rgba(36,95,174,.08), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
  border-top: 1px solid rgba(189,214,240,.7);
  border-bottom: 1px solid rgba(189,214,240,.7);
}
.section-dark  {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 100%);
  color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p, .section-dark li  { color: rgba(255,255,255,.85); }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 70% 60% at 110% -10%, rgba(36,95,174,.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at -10% 100%, rgba(22,62,111,.06) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero .btn-primary {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-700) 100%);
  box-shadow: 0 14px 34px rgba(22,62,111,.25);
}
.hero .btn-primary:hover {
  box-shadow: 0 18px 42px rgba(22,62,111,.3);
}
.hero .btn-secondary {
  background: rgba(255,255,255,.86);
  border-color: rgba(189,214,240,.9);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23245FAE' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-grid > *,
.grid-2 > *,
.grid-3 > *,
.guides-grid > *,
.services-grid > *,
.content-layout > *,
.contact-grid > * {
  min-width: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-700);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero .actions {
  margin-bottom: 6px;
}
.hero-trust-logo {
  height: 30px;
  width: auto;
  opacity: .92;
}
.hero-trust-text {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}
.hero-trust-text strong {
  display: block;
  color: var(--blue-900);
  font-weight: 700;
}

/* Panel lateral del hero */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.panel::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 28px;
  font-size: 72px;
  line-height: 1;
  color: var(--blue-100);
  font-family: Georgia, serif;
  font-weight: 900;
}
.panel h3 {
  font-size: 1.15rem;
  color: var(--blue-900);
  margin-bottom: 16px;
  line-height: 1.35;
  padding-top: 16px;
}
.panel p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.panel p:last-child { margin-bottom: 0; }
.hero--home-main {
  padding-top: 68px;
  padding-bottom: 96px;
}
.hero-grid--home-main {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-grid--home-main > :first-child {
  padding-top: 0;
  max-width: 680px;
}
.hero-grid--home-main h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: .96;
}
.hero-grid--home-main .lead {
  max-width: 46ch;
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
}
.hero-visual-stage {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0;
}
.hero-visual-image {
  display: block;
  width: min(100%, 1120px);
  max-width: none;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  opacity: .9;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(13, 37, 66, 0.18);
}
.hero-support-panel {
  position: absolute;
  right: 0;
  bottom: -18px;
  max-width: 300px;
  padding: 16px 18px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px rgba(13, 37, 66, 0.12);
}
.hero-support-panel h3 {
  font-size: .96rem;
  margin-bottom: 10px;
}
.hero-support-panel p {
  font-size: 13.5px;
  line-height: 1.58;
  margin-bottom: 8px;
}

/* ============================================
   CARDS
   ============================================ */
.grid-2, .grid-3 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: linear-gradient(180deg, #fff 0%, #fafdff 100%);
  border: 1px solid rgba(189,214,240,.9);
  border-radius: 22px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 8px 28px rgba(22,62,111,.07);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(22,62,111,.12);
  border-color: rgba(36,95,174,.32);
}
.grid-3 .card:first-child {
  border-color: rgba(36,95,174,.32);
  box-shadow: 0 18px 46px rgba(22,62,111,.11);
}
.card-icon:empty {
  display: none;
}
.card-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(180deg, var(--blue-50), #fff);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.card-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 4px;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  box-shadow: 0 5px 14px rgba(36,95,174,.24);
}
.card:hover .card-icon {
  background: var(--blue-100);
  border-color: var(--blue-200);
}
.card h3 { margin-bottom: 10px; font-size: 1.08rem; line-height: 1.25; }
.card h3 a { color: var(--blue-900); }
.card h3 a:hover { color: var(--blue-700); text-decoration: none; }
.card p { color: var(--muted); font-size: 14.75px; line-height: 1.65; margin-bottom: 0; flex-grow: 1; }
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 13.5px;
  margin-top: 18px;
  transition: gap var(--transition), color var(--transition);
}
.link-cta::after { content: '→'; font-size: 14px; }
.link-cta:hover { gap: 10px; color: var(--blue-900); text-decoration: none; }
.hub-grid .card {
  min-height: 100%;
}
.hub-note {
  margin-bottom: 0;
}
.hub-cta {
  margin-top: 32px;
}

/* Pricing blocks */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.price-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--blue-100);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-700), var(--accent));
}
.price-card--featured {
  border-color: rgba(36,95,174,.25);
  box-shadow: var(--shadow);
}
.price-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.price-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #eaf2fb 100%);
  border: 1px solid var(--blue-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.price-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
  font-weight: 800;
  margin-bottom: 10px;
}
.price-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}
.price-subcopy {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}
.price-value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: .95;
  color: var(--blue-900);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 8px;
}
.price-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.price-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--blue-100);
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 700;
}
.price-pill::before {
  content: '•';
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}
.price-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}
.price-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(189,214,240,.8);
}
.price-block h4 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-900);
  margin-bottom: 10px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.price-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid rgba(221,234,248,.9);
}
.price-list li:last-child {
  border-bottom: none;
}
.price-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-weight: 800;
}
.price-list--include li::before {
  content: '✓';
  color: var(--blue-700);
}
.price-list--exclude li::before {
  content: '–';
  color: var(--muted);
}
.price-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.price-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a2a 0%, #ff5a1f 100%);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(255,90,31,.22);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.price-action:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(255,90,31,.28);
}
.price-action--ghost {
  background: transparent;
  color: var(--blue-700);
  box-shadow: none;
  border: 1px solid var(--blue-100);
}
.price-action--ghost:hover {
  color: var(--blue-900);
  box-shadow: var(--shadow-xs);
}
.scope-note {
  margin-top: 28px;
  padding: 20px 22px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #f8fbff 100%);
  border: 1px solid var(--blue-100);
  border-radius: 20px;
}
.scope-note p:last-child {
  margin-bottom: 0;
}
.summary-box {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
}
.summary-box h3 {
  margin-bottom: 8px;
}
.summary-box p {
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .price-body {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .price-card {
    padding: 22px;
    border-radius: 20px;
  }
  .price-top {
    gap: 14px;
    margin-bottom: 16px;
  }
  .price-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 21px;
  }
  .price-highlights {
    gap: 8px;
  }
  .price-pill {
    padding: 8px 10px;
    font-size: 12px;
  }
  .scope-note,
  .summary-box {
    padding: 18px;
    border-radius: 16px;
  }
}

/* ============================================
   SECCIÓN DE CONTENIDO / ARTÍCULO
   ============================================ */
.content { padding: 80px 0; }
.content article { max-width: var(--reading); }
.content article > h2 { margin-top: 60px; margin-bottom: 18px; }
.content article > h2:first-child { margin-top: 0; }
.content article > h3 { margin-top: 34px; margin-bottom: 12px; }
.content p, .content li { font-size: 1.05rem; color: var(--text); }
.content p { margin-bottom: 20px; }
.content ul { padding-left: 0; margin-bottom: 24px; }
.content ul li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--blue-50);
}
.content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}
.content li + li { margin-top: 4px; }

/* CTA box dentro de contenido */
.cta-box {
  margin-top: 48px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-box::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.cta-box h2, .cta-box h3 { color: #fff; position: relative; z-index: 1; }
.cta-box p, .cta-box li   { color: rgba(255,255,255,.88); position: relative; z-index: 1; }
.cta-box ul li::before    { background: rgba(255,255,255,.5); }
.cta-box ul li            { border-bottom-color: rgba(255,255,255,.08); }
.cta-box .actions         { position: relative; z-index: 1; }

/* Services list inside cta-box */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0 32px;
  position: relative;
  z-index: 1;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  font-weight: 500;
}
.service-item .s-icon { font-size: 18px; flex-shrink: 0; }

/* ============================================
   SECCIÓN GUÍAS DESTACADAS
   ============================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.guide-card {
  background: linear-gradient(180deg, #fff 0%, #fafdff 100%);
  border: 1px solid rgba(189,214,240,.9);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  box-shadow: 0 6px 22px rgba(22,62,111,.055);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(22,62,111,.095);
  border-color: rgba(36,95,174,.28);
  text-decoration: none;
}
.guide-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-700);
}
.guide-body h3 {
  font-size: 1rem;
  color: var(--blue-900);
  margin-bottom: 5px;
  line-height: 1.3;
}
.guide-body p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   SECCIÓN CREDIBILIDAD / VADILLO
   ============================================ */
.trust-section {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 60%, var(--blue-800) 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.trust-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.trust-logo-wrap img {
  height: 58px;
  width: auto;
  opacity: .92;
  margin-bottom: 20px;
}
.trust-inner h2 { color: #fff; margin-bottom: 16px; }
.trust-inner p  { color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.7; margin-bottom: 0; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--blue-950);
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo {
  height: 42px;
  width: auto;
  opacity: 1;
  margin-bottom: 0;
  display: block;
}
.footer-tagline {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
}
.footer-location {
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }

/* ============================================
   PAGE HERO (páginas internas)
   ============================================ */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero .reading { padding: 0; }
.page-hero h1 { max-width: 18ch; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--blue-700); text-decoration: none; }
.breadcrumb span { color: var(--subtle); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-action-section {
  padding: 0 0 clamp(36px, 5vw, 64px);
}
.contact-direct-card {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-700));
  color: #fff;
  border-radius: 30px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 28px 80px rgba(13,37,66,.22);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.contact-direct-card h2 {
  color: #fff;
  margin-bottom: 12px;
}
.contact-direct-card p {
  color: rgba(255,255,255,.82);
  max-width: 58ch;
  margin: 0;
}
.contact-direct-card a {
  color: #fff;
}
.contact-direct-card .contact-chip {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
}
.contact-direct-card .btn {
  background: #fff;
  color: var(--blue-950);
  border-color: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
}
.contact-direct-actions {
  display: grid;
  gap: 12px;
}
.contact-direct-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  font-weight: 800;
}
.contact-direct-link:hover {
  background: rgba(255,255,255,.14);
  text-decoration: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}
.contact-grid--single {
  grid-template-columns: minmax(0, 720px);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card--direct {
  border-color: var(--blue-200);
  box-shadow: var(--shadow);
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.contact-card .c-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.contact-card .btn { margin-top: 20px; align-self: flex-start; }
.contact-list {
  margin: 8px 0 0;
}
.contact-list li {
  padding: 10px 0 10px 22px;
  position: relative;
  border-bottom: 1px solid var(--blue-50);
  color: var(--text);
  font-size: 15px;
}
.contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}
.contact-list a {
  font-weight: 700;
}
.contact-hours {
  margin-top: 8px !important;
}
.offices-grid {
  gap: 18px;
}
.office-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}
.office-card p {
  margin-bottom: 0;
}
.soft-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  border: 1px solid var(--blue-100);
  color: var(--muted);
}
.soft-panel strong {
  color: var(--blue-900);
}
.soft-panel--accent {
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  background: var(--accent-light);
  border-color: #f5d88a;
}
.contact-next-step .btn-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.contact-next-step .btn-secondary:hover {
  background: rgba(255,255,255,.18);
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mb-0  { margin-bottom: 0 !important; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.authority-section {
  padding-top: 64px;
  padding-bottom: 64px;
}
.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.authority-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(22,62,111,.08);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.authority-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.authority-card strong {
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--blue-900);
  letter-spacing: -0.03em;
}
.authority-card span:last-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.authority-copy-grid .card p + p {
  margin-top: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid   { gap: 32px; }
  .trust-inner { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1120px) {
  .menu        { display: none !important; }
  .nav-toggle  { display: flex; }
}

@media (max-width: 900px) {
  /* Hero */
  .hero        { padding: 64px 0 52px; }
  .hero-grid   { grid-template-columns: 1fr; gap: 32px; }
  .lead        { max-width: none; font-size: 18px; }
  h1           { max-width: none; }

  /* Grids */
  .grid-2, .grid-3, .guides-grid, .trust-inner, .services-grid, .authority-grid { grid-template-columns: 1fr; }
  .contact-direct-card { grid-template-columns: 1fr; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }

  /* Secciones */
  .section, .content, .page-hero { padding: 56px 0; }
  .cta-box { padding: 32px 28px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap        { padding: 0 16px; }
  h1           { font-size: 2.2rem; }
  h2           { font-size: 1.6rem; }
  .btn         { width: 100%; justify-content: center; white-space: normal; line-height: 1.35; }
  .actions     { flex-direction: column; }
  .panel       { padding: 24px; }
  .card        { padding: 22px; }
  .cta-box     { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .trust-stats { grid-template-columns: 1fr; }
  .stat-card   { padding: 18px; }
  .authority-card { padding: 20px; }
  .contact-card { padding: 24px; }
  .nav         { gap: 12px; height: 64px; }
  .brand       { gap: 10px; min-width: 0; flex: 1; }
  .brand-text  { min-width: 0; }
  .brand-name  { font-size: 15px; }
  .brand-sub   { font-size: 10px; line-height: 1.25; }
  .nav-toggle  { flex-shrink: 0; }
  .brand-logo  { height: 36px; }
}

/* ============================================
   HERO DE ARTÍCULO (páginas de detalle)
   ============================================ */
.hero--article {
  padding: 64px 0 52px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero--article .reading {
  padding: 0;
}
.hero--article h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 22ch;
  margin-bottom: 18px;
}
.hero--article .lead {
  max-width: 56ch;
  font-size: 18px;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-meta-item {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ============================================
   LAYOUT ARTÍCULO + SIDEBAR
   ============================================ */
.content-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.article-body {
  min-width: 0;
}
.article-body > h2 {
  margin-top: 60px;
  margin-bottom: 18px;
}
.article-body > h2:first-child {
  margin-top: 0;
}
.article-body > h3 {
  margin-top: 34px;
  margin-bottom: 12px;
}
.article-body p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.85;
}
.article-body > p:first-of-type {
  font-size: 1.12rem;
  color: #27364b;
  line-height: 1.9;
}
.article-body ul,
.article-body ol {
  padding-left: 0;
  margin-bottom: 28px;
  list-style: none;
}
.article-body ul li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--blue-50);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  flex-shrink: 0;
}
.article-body li + li { margin-top: 4px; }
.article-body a {
  color: var(--blue-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--blue-900);
}
.article-body strong {
  color: var(--blue-900);
  font-weight: 700;
}

.article-callout {
  border-radius: 22px;
  padding: 24px 26px;
  background: #f3f7fc;
  border: 1px solid rgba(189,214,240,.9);
  box-shadow: 0 14px 34px rgba(22,62,111,.07);
}
.article-callout strong {
  color: var(--blue-950);
  font-weight: 800;
}
.article-callout p {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #33465f;
}
.article-callout .link-cta {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue-800);
  font-weight: 800;
  text-decoration: none;
}
.article-callout--mid {
  margin: 34px 0 42px;
}

/* ============================================
   SIDEBAR DE ARTÍCULO
   ============================================ */
.article-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.sidebar-card h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-toc {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-toc li {
  padding: 0 !important;
  border: none !important;
}
.sidebar-toc li::before { display: none !important; }
.sidebar-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-toc a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  text-decoration: none;
}
.sidebar-card--accent {
  background: var(--accent-light);
  border-color: #f5d88a;
}
.sidebar-card--accent h4 { color: #a06b0a; }
.sidebar-link {
  display: block;
  font-size: 13.5px;
  color: var(--blue-700);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid rgba(232,160,32,.2);
  text-decoration: none;
  transition: color var(--transition);
}
.sidebar-link:hover { color: var(--blue-900); text-decoration: none; }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-card--blue {
  background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 100%);
  border: none;
}
.sidebar-card--blue h4 { color: rgba(255,255,255,.5); }
.sidebar-card--blue p {
  font-size: 14px;
  color: rgba(255,255,255,.82);
  line-height: 1.55;
  margin-bottom: 16px;
}
.sidebar-logo {
  height: 30px;
  width: auto;
  opacity: .92;
  margin-bottom: 14px;
}

/* Responsive artículo + sidebar */
@media (max-width: 960px) {
  .content-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1 1 260px;
  }
}
@media (max-width: 640px) {
  .hero--article { padding: 48px 0 40px; }
  .hero--article h1 { max-width: none; }
  .article-sidebar { flex-direction: column; }
  .sidebar-card { flex: none; }
}


/* ============================================
   VISUALES EDITORIALES BLOQUE 1
   ============================================ */
.visual-card,
.article-inline-figure,
.page-hero-figure {
  background: #fff;
  border: 1px solid rgba(189,214,240,.85);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(13,37,66,.12);
}
.visual-card {
  padding: 14px;
}
.visual-card img,
.article-inline-figure img,
.page-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.visual-card img {
  border-radius: 20px;
}
.section-story {
  background:
    linear-gradient(90deg, rgba(232,160,32,.08) 0%, transparent 30%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-top: 1px solid rgba(22,62,111,.06);
  border-bottom: 1px solid rgba(22,62,111,.06);
}
.home-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.section-story .home-story-copy {
  max-width: 640px;
}
.home-story-copy p:last-child {
  margin-bottom: 0;
}
.home-story-visual img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.home-story-visual {
  max-width: 520px;
  justify-self: end;
}
.home-roadmap-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.home-roadmap-copy p:last-child {
  margin-bottom: 0;
}
.visual-card--roadmap {
  max-width: 560px;
  justify-self: end;
}
.hub-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}
.hub-hero-copy {
  min-width: 0;
}
.hub-hero-copy .lead {
  max-width: 34ch;
}
.page-hero-figure {
  max-width: 460px;
  justify-self: end;
  align-self: start;
}
.page-hero-figure--textual {
  max-width: 520px;
}
.page-hero-figure--portrait {
  max-width: 420px;
}
.article-inline-figure {
  margin: 30px auto 38px;
  max-width: 760px;
}
.article-inline-figure--diagram {
  max-width: 520px;
}
.article-inline-figure--poster {
  max-width: 560px;
}
.article-inline-figure--story {
  max-width: 420px;
}
.article-inline-figure--dashboard {
  max-width: 460px;
}
.article-inline-figure--landscape {
  max-width: 720px;
}
.article-inline-figure--textwide {
  max-width: 860px;
}
.article-inline-figure--compact {
  max-width: 520px;
}
.visual-caption {
  margin-top: 14px;
  padding: 0 6px 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 900px) {
  .home-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .home-roadmap-band,
  .hub-hero-layout,
  .hero-grid--home-main {
    grid-template-columns: 1fr;
  }
  .home-story-visual {
    max-width: 100%;
    justify-self: stretch;
  }
  .page-hero-figure {
    max-width: 100%;
    justify-self: stretch;
  }
  .hero-grid--home-main > :first-child {
    padding-top: 0;
  }
  .hero-grid--home-main h1,
  .hero-grid--home-main .lead {
    max-width: none;
  }
  .hero-visual-stage {
    min-height: auto;
    display: grid;
    gap: 18px;
    padding-top: 0;
  }
  .hero-visual-image {
    width: 100%;
    max-width: 100%;
  }
  .hero-support-panel {
    position: static;
    max-width: none;
    padding: 16px 18px;
    backdrop-filter: none;
  }
}
@media (max-width: 640px) {
  .home-roadmap-band,
  .hub-hero-layout,
  .home-story-grid {
    gap: 20px;
  }
  .article-inline-figure,
  .visual-card,
  .page-hero-figure {
    border-radius: var(--radius);
  }
  .article-inline-figure {
    margin: 24px 0 28px;
  }
}

/* ============================================
   HOME — Bloques visuales editoriales
   ============================================ */
.home-roadmap-band,
.home-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.home-story-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
}

.visual-card {
  background: #fff;
  border: 1px solid rgba(189,214,240,.85);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 70px rgba(13,37,66,.12);
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.visual-caption {
  margin-top: 14px;
  padding: 0 6px 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 980px) {
  .home-roadmap-band,
  .home-story-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOME — Ajuste fino del hero visual
   ============================================ */
.hero-visual-stage {
  min-height: auto;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual-image {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  opacity: .96;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(13,37,66,.16);
}

.hero-support-panel {
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  border-color: rgba(189,214,240,.9);
}

@media (max-width: 980px) {
  .hero-grid--home-main {
    grid-template-columns: 1fr;
  }

  .hero-visual-image {
    max-width: 100%;
  }

  .hero-support-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -24px;
    max-width: none;
  }
}

/* ============================================
   FORMULARIO DE CAPTACION
   ============================================ */
.lead-form-section {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid rgba(189,214,240,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lead-form-intro {
  position: sticky;
  top: 96px;
}

.lead-form-intro h2 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.lead-form-intro p {
  color: var(--muted);
}

.lead-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.lead-form textarea {
  min-height: 140px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59,127,212,.14);
}

.form-consent {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.form-consent input {
  min-height: auto;
  margin-top: 4px;
  padding: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.form-actions p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-result {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  background: #fff;
  border: 1px solid rgba(189,214,240,.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-result--ok {
  border-color: rgba(37,211,102,.35);
}

.form-result--error {
  border-color: rgba(190,50,50,.35);
}

@media (max-width: 860px) {
  .lead-form-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form-intro {
    position: static;
  }
}

@media (max-width: 520px) {
  .lead-form-section {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .form-actions .btn {
    width: 100%;
  }
}

/* ============================================
   FORMULARIO DE CAPTACION — capa visual final
   ============================================ */
.lead-form-section {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(240,246,253,.98) 0%, rgba(255,255,255,1) 44%, rgba(254,243,220,.42) 100%);
  border: 1px solid rgba(189,214,240,.9);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(13,42,74,.12);
}

.lead-form-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--blue-700), var(--accent));
}

.lead-form-intro {
  position: relative;
  top: auto;
  align-self: stretch;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255,255,255,.62);
  border-right: 1px solid rgba(189,214,240,.72);
}

.lead-form-intro h2 {
  max-width: 430px;
  color: var(--blue-950);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead-form-intro p {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.75;
}

.lead-form {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  gap: 20px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.lead-form label > span {
  display: block;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  appearance: none;
  min-height: 52px;
  border: 1px solid rgba(189,214,240,.95);
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(13,42,74,.04);
  color: var(--text);
  font-size: 15px;
}

.lead-form select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue-700) 50%),
    linear-gradient(135deg, var(--blue-700) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 22px,
    calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lead-form textarea {
  min-height: 158px;
}

.lead-form input:hover,
.lead-form select:hover,
.lead-form textarea:hover {
  border-color: rgba(59,127,212,.72);
}

.form-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(189,214,240,.68);
  border-radius: 16px;
  cursor: pointer;
}

.form-consent input {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--blue-700);
  box-shadow: none;
  cursor: pointer;
}

.form-consent span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.form-actions {
  margin-top: 2px;
  padding-top: 4px;
}

.form-actions .btn {
  min-height: 52px;
}

.form-actions p {
  max-width: 320px;
  line-height: 1.45;
}

.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

@media (max-width: 980px) {
  .lead-form-section {
    grid-template-columns: 1fr;
  }

  .lead-form-section::before {
    width: 100%;
    height: 6px;
    inset: 0 0 auto 0;
  }

  .lead-form-intro {
    border-right: 0;
    border-bottom: 1px solid rgba(189,214,240,.72);
  }
}

@media (max-width: 640px) {
  .lead-form-section {
    border-radius: 18px;
  }

  .lead-form-intro,
  .lead-form {
    padding: 24px 18px;
  }

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

  .form-actions {
    align-items: stretch;
  }

  .form-actions p {
    max-width: none;
  }
}
