:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --accent: #1A56FF;
  --accent-dark: #0E3ACC;
  --accent-soft: #E8EEFF;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.06), 0 10px 20px -5px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(17, 24, 39, 0.08), 0 20px 40px -10px rgba(17, 24, 39, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 86, 255, 0.25);
}
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ───────── NAVBAR ───────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  font-weight: 700;
  color: var(--text);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-logo .ppc { color: var(--accent); font-weight: 600; }
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 0;
    box-shadow: 0 12px 28px rgba(17,24,39,0.12);
  }
  .nav-links.open a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    text-align: left;
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 480px) {
  .nav-cta-desktop { display: none; }
  .hero-ctas .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* ───────── HERO ───────── */
.hero { padding: 80px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  font-size: 0.875rem;
  color: var(--muted);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .check {
  width: 18px; height: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@media (max-width: 920px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { aspect-ratio: 1 / 1; max-width: 420px; margin: 0 auto; width: 100%; }
}

/* ───────── LOGOS ───────── */
.logos { background: var(--bg-alt); padding: 56px 0; }
.logos-label {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.logos-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 12px;
  scrollbar-width: none;
}
.logos-row::-webkit-scrollbar {
  display: none;
}
@media (max-width: 860px) {
  .logos-row {
    margin: 0 -24px;
    padding: 2px 24px 12px;
  }
}
.logo-item {
  flex: 0 0 184px;
  height: 64px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
}
.logo-item img {
  max-width: 100%;
  max-height: 36px;
  object-fit: contain;
}

/* ───────── SECTION HEADERS ───────── */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }

/* ───────── PAIN ───────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.pain-card:hover { border-color: var(--text); transform: translateY(-2px); }
.pain-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}
.pain-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.pain-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.pain-card p { color: var(--muted); font-size: 0.9375rem; }

/* ───────── COMPARISON ───────── */
.compare { background: var(--bg-alt); }
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 768px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-col {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
}
.compare-col.bad { background: #FAFAFA; border-color: var(--border); }
.compare-col.good {
  background: linear-gradient(180deg, #fff 0%, #F8FAFF 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 12px 32px -8px rgba(26, 86, 255, 0.18);
  position: relative;
}
.compare-col.good::before {
  content: 'Tu mejor opción';
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.compare-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}
.compare-col.bad .compare-tag { background: var(--danger-soft); color: var(--danger); }
.compare-col.good .compare-tag { background: var(--accent-soft); color: var(--accent); }
.compare-title { font-weight: 700; font-size: 1.125rem; }
.compare-list { list-style: none; padding: 0; margin: 0; }
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.9375rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.compare-list li:last-child { border-bottom: none; }
.compare-mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}
.compare-col.bad .compare-mark { background: var(--danger-soft); color: var(--danger); }
.compare-col.good .compare-mark { background: var(--accent-soft); color: var(--accent); }
.compare-col.bad li { color: var(--muted); }

/* ───────── SERVICIOS ───────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card .desc { color: var(--muted); margin-bottom: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

/* ───────── PROCESO ───────── */
.process { background: var(--bg-alt); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  position: relative;
  padding: 36px 28px 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.process-num {
  position: absolute;
  top: -12px;
  right: -4px;
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}
.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  position: relative;
}
.process-step p {
  font-size: 0.9375rem;
  color: var(--muted);
  position: relative;
}

/* ───────── RESULTADOS ───────── */
.results { background: var(--accent); color: #fff; }
.results .section-head h2 { color: #fff; }
.results .section-head p { color: rgba(255, 255, 255, 0.8); }
.results .section-head .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
  background: #fff;
  color: var(--text);
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.result-sector {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
}
.result-metric {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}
.result-desc { color: var(--muted); font-size: 0.9375rem; }
.result-time {
  font-size: 0.8125rem;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ───────── PRICING ───────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 12px 32px -8px rgba(26, 86, 255, 0.18);
  position: relative;
}
.price-card.featured::before {
  content: 'Más popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.price-name { font-size: 0.875rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.price-tag {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-tag .from { font-size: 0.875rem; font-weight: 500; color: var(--muted); display: block; margin-bottom: 4px; }
.price-tag .unit { font-size: 0.9375rem; font-weight: 500; color: var(--muted); }
.price-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 16px 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text);
}
.price-features .tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 3px;
}
.price-card .btn { width: 100%; }

/* ───────── FAQ ───────── */
.faq { background: var(--bg-alt); }
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s;
}
.faq-item.open .chevron { transform: rotate(180deg); background: var(--accent-soft); }
.faq-item.open .chevron svg { stroke: var(--accent); }
.chevron svg { width: 12px; height: 12px; stroke: var(--muted); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.9375rem;
}
.faq-item.open .faq-a { max-height: 400px; }

/* ───────── LEAD MAGNET ───────── */
.lead-magnet { padding: 64px 0; }
.lead-card {
  background: linear-gradient(135deg, #0E3ACC 0%, #1A56FF 100%);
  border-radius: 20px;
  padding: 48px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) { .lead-card { grid-template-columns: 1fr; padding: 36px 28px; } }
.lead-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.lead-card .lead-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.lead-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.lead-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; max-width: 460px; }
.lead-form {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}
.lead-form input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  outline: none;
  min-width: 0;
}
.lead-form button {
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}
.lead-form button:hover { background: #000; }

/* ───────── CONTACTO ───────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-card .btn-primary { width: 100%; padding: 14px; margin-top: 4px; }


.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.contact-row:hover { border-color: var(--text); }
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-row .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.contact-row .value { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.whatsapp-cta {
  background: #25D366;
  color: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.whatsapp-cta:hover { background: #1FB957; }
.whatsapp-cta .contact-icon { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* ───────── FOOTER ───────── */
.footer {
  background: #111827;
  color: #9CA3AF;
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.footer-tag { font-size: 0.875rem; max-width: 380px; line-height: 1.6; }
.footer-nap {
  font-style: normal;
  font-size: 0.8125rem;
  color: #9CA3AF;
  line-height: 1.7;
  margin-top: 14px;
}
.footer-nap a { color: #D1D5DB; }
.footer-nap a:hover { color: #fff; }
.footer-zonas { font-size: 0.8125rem; color: #9CA3AF; margin-top: 10px; }
.footer-zonas a { color: #D1D5DB; }
.footer-zonas a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ───────── FORM FEEDBACK ───────── */
.form-feedback {
  font-size: 0.875rem;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.form-feedback--ok {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.form-feedback--error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #FECACA;
}

/* ───────── ARTICLE PAGE ───────── */
.article-hero {
  padding: 64px 0 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.article-hero h1 {
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 800;
  max-width: 820px;
  margin-bottom: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--muted);
  align-items: center;
}
.article-meta strong { color: var(--text); }

.article-body {
  padding: 56px 0 72px;
}
.article-content {
  max-width: 760px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 2px solid var(--accent-soft);
}
.article-content h2:first-child { margin-top: 0; border-top: none; }
.article-content p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 18px;
}
.article-content ul {
  margin: 0 0 20px 0;
  padding-left: 0;
  list-style: none;
}
.article-content ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.65;
  border-bottom: 1px solid var(--border);
}
.article-content ul li:last-child { border-bottom: none; }
.article-content ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.article-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-callout p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}
.article-warning {
  background: var(--danger-soft);
  border-left: 4px solid var(--danger);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.article-warning p {
  margin: 0;
  font-size: 0.9375rem;
  color: #7f1d1d;
  line-height: 1.6;
}
.article-cta-box {
  background: linear-gradient(135deg, #0E3ACC 0%, #1A56FF 100%);
  border-radius: 16px;
  padding: 40px;
  color: #fff;
  text-align: center;
  margin-top: 56px;
}
.article-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.article-cta-box p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.15s;
}
.article-back:hover { color: var(--text); }

/* ───────── ARTICLE TABLE ───────── */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 0.9375rem;
}
.article-table th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.article-table th:first-child { border-radius: 8px 0 0 0; }
.article-table th:last-child  { border-radius: 0 8px 0 0; }
.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
  line-height: 1.5;
}
.article-table tr:nth-child(even) td { background: var(--bg-alt); }
.article-table tr:last-child td { border-bottom: none; }
.article-table tr.highlight td {
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--accent);
}

/* ───────── COOKIE BANNER ───────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(17, 24, 39, 0.10);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-text { flex: 1; min-width: 260px; }
.cookie-banner-text p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--accent-dark); }
.cookie-btn-reject {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.cookie-btn-reject:hover { border-color: var(--text); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject { flex: 1; text-align: center; }
}

/* ───────── PAGE CTA (páginas secundarias) ───────── */
.page-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.page-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-cta-text p {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.page-cta-text span {
  font-size: 0.875rem;
  color: var(--muted);
}
.page-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .page-cta-inner { flex-direction: column; align-items: flex-start; }
  .page-cta-actions { width: 100%; }
  .page-cta-actions .btn { flex: 1; text-align: center; }
}

/* ───────── BLOG GRID ───────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(26, 86, 255, 0.1);
  transform: translateY(-2px);
}
.blog-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.blog-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.blog-card-read {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}

/* ───────── MODAL ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  /* Oculto por defecto sin usar display:none → permite transición */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.modal-is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--surface, #fff);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.modal-overlay.modal-is-open .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted, #888);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--surface-2, #f3f4f6);
  color: var(--text, #111);
}
.modal-head {
  margin-bottom: 1.75rem;
}
.modal-head .eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #3b6ef7);
  display: block;
  margin-bottom: 0.5rem;
}
.modal-head h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.modal-head p {
  color: var(--muted, #666);
  font-size: 0.9rem;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .modal-box {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 12px;
  }
  .modal-head h2 { font-size: 1.2rem; }
}

/* ───────── ARTÍCULO: freshness, citas, fuentes, bio ───────── */

/* Fecha de actualización visible (freshness) */
.article-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(26, 86, 255, 0.07);
  padding: 5px 12px;
  border-radius: 999px;
  margin-top: 14px;
}

/* Pull-quote de experto (E-E-A-T) */
.article-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-2, #f7f8fa);
  border-radius: 0 10px 10px 0;
}
.article-quote p {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.article-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

/* Bloque de fuentes / referencias */
.article-sources {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface-2, #f7f8fa);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.article-sources h3 {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}
.article-sources ul {
  margin: 0;
  padding-left: 1.1rem;
}
.article-sources li {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.article-sources a { color: var(--accent); }

/* Bio del autor (E-E-A-T) */
.article-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--surface-2, #f7f8fa);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.article-author-bio img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.article-author-bio .bio-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.article-author-bio .bio-role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.article-author-bio p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
@media (max-width: 560px) {
  .article-author-bio { flex-direction: column; gap: 0.75rem; }
}
