/* ─────────────────────────────────────────────────────────────
   Motor SEO Afer — estilos de landing geo
   Usa las CSS variables de colors_and_type.css
───────────────────────────────────────────────────────────── */

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

body { margin: 0; font-family: var(--font-sans, system-ui, sans-serif); color: var(--fg-default, #1e293b); background: #fff; }

/* ── Layout ── */
.seo-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.seo-main      { min-height: 100vh; }

/* ── Header ── */
.seo-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default, #e2e8f0);
}
.seo-header__inner {
  height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.seo-header__logo img { display: block; }
.seo-header__nav { display: flex; gap: 4px; }
.seo-header__nav a {
  font-size: 14px; font-weight: 500; color: var(--fg-strong, #0f172a);
  text-decoration: none; padding: 7px 11px; border-radius: 7px;
  transition: background 120ms;
}
.seo-header__nav a:hover { background: var(--surface-subtle, #f1f5f9); }
.seo-header__ctas  { display: flex; align-items: center; gap: 8px; }
.seo-header__login { font-size: 14px; color: var(--fg-muted, #64748b); text-decoration: none; padding: 7px 11px; }

/* ── Botones ── */
.seo-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; border-radius: 9px;
  text-decoration: none; padding: 11px 20px; transition: opacity 150ms, transform 150ms;
  cursor: pointer; border: none; white-space: nowrap;
}
.seo-btn:hover { opacity: .88; transform: translateY(-1px); color: inherit; text-decoration: none; }
.seo-btn--primary {
  background: var(--accent, #2563eb); color: #fff;
}
.seo-btn--ghost {
  background: transparent; color: var(--fg-strong, #0f172a);
  border: 1.5px solid var(--border-default, #e2e8f0);
}
.seo-btn--sm { font-size: 13px; padding: 8px 14px; border-radius: 7px; }

/* ── Breadcrumb ── */
.seo-breadcrumb { margin-bottom: 20px; }
.seo-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.seo-breadcrumb li { font-size: 13px; color: var(--fg-muted, #64748b); }
.seo-breadcrumb li + li::before { content: '/'; margin-right: 4px; }
.seo-breadcrumb a { color: var(--fg-muted, #64748b); text-decoration: none; }
.seo-breadcrumb a:hover { text-decoration: underline; }
.seo-breadcrumb [aria-current] { color: var(--fg-default, #1e293b); font-weight: 500; }

/* ── Hero ── */
.seo-hero {
  background: linear-gradient(180deg, #f8fafc 0%, var(--surface-warm, #faf8f5) 100%);
  padding: 72px 0 80px;
}
.seo-hero__tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent, #2563eb) 10%, transparent);
  color: var(--accent, #2563eb); margin-bottom: 18px;
}
.seo-hero__h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 800;
  line-height: 1.08; letter-spacing: -.025em;
  color: var(--fg-strong, #0f172a); margin: 0 0 20px; max-width: 760px;
}
.seo-hero__lead {
  font-size: 18px; line-height: 1.6; color: var(--fg-default, #334155);
  max-width: 640px; margin: 0 0 32px;
}
.seo-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.seo-hero__trust {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 20px;
  font-size: 13px; color: var(--fg-muted, #64748b);
}

/* ── Features ── */
.seo-features { padding: 64px 0; }
.seo-section-title {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700;
  letter-spacing: -.02em; color: var(--fg-strong, #0f172a);
  margin: 0 0 32px;
}
.seo-feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.seo-feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--fg-default, #334155); line-height: 1.5;
}
.seo-feature-check { font-size: 15px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── Stats highlight ── */
.seo-highlight { background: var(--surface-subtle, #f1f5f9); padding: 64px 0; }
.seo-highlight__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
.seo-stat { text-align: center; }
.seo-stat__n { display: block; font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--fg-strong, #0f172a); letter-spacing: -.03em; }
.seo-stat__l { display: block; font-size: 14px; color: var(--fg-muted, #64748b); margin-top: 4px; }

/* ── CTA band ── */
.seo-cta-band { background: var(--accent, #2563eb); padding: 56px 0; }
.seo-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.seo-cta-band__title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; color: #fff; margin: 0 0 6px; }
.seo-cta-band__sub { font-size: 15px; color: rgba(255,255,255,.8); margin: 0; }
.seo-cta-band .seo-btn--primary { background: #fff; color: var(--accent, #2563eb); }

/* ── Related links ── */
/* ── Geo battery — lista h3 texto plano ── */
.geo-battery {
  padding: 28px 0 32px;
  border-top: 1px solid var(--border-default, #e2e8f0);
  background: var(--surface-subtle, #f8fafc);
}
.geo-battery__label {
  margin: 0 0 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-muted, #94a3b8);
}
.geo-battery__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px 24px;
}
.geo-battery__h3 {
  font-size: 13px; font-weight: 400; margin: 0; line-height: 1;
}
.geo-battery__h3 a {
  display: block; padding: 5px 0;
  color: var(--fg-default, #475569); text-decoration: none;
  transition: color 120ms;
}
.geo-battery__h3 a:hover {
  color: var(--brand-primary, #2563eb);
}

/* ── Otros productos ── */
.seo-otros { padding: 64px 0; }
.seo-otros__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.seo-otros__card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border: 1.5px solid var(--border-default, #e2e8f0);
  border-radius: 12px; text-decoration: none; transition: border-color 150ms, box-shadow 150ms;
}
.seo-otros__card:hover { border-color: var(--brand-primary, #2563eb); box-shadow: 0 4px 16px rgba(37,99,235,.1); }
.seo-otros__card strong { font-size: 15px; font-weight: 600; color: var(--fg-strong, #0f172a); }
.seo-otros__card span  { font-size: 13px; color: var(--brand-primary, #2563eb); }

/* ── Responsive SEO ── */
@media (max-width: 768px) {
  .seo-highlight__grid { grid-template-columns: repeat(2, 1fr); }
  .seo-cta-band__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .seo-highlight__grid { grid-template-columns: 1fr 1fr; }
  .seo-hero__ctas { flex-direction: column; }
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#afer-header { font-family: var(--font-body, system-ui, sans-serif); }

.afer-nav-link {
  font-size: 14px; font-weight: 500; color: var(--fg-strong, #0f172a);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
  transition: background 120ms, color 120ms; white-space: nowrap;
}
.afer-nav-link:hover { background: var(--surface-subtle, #f1f5f9); color: var(--fg-strong, #0f172a); text-decoration: none; }

.afer-btn-primary {
  padding: 9px 18px; border-radius: 9px;
  background: var(--brand-primary, #1B3FA0); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: opacity 150ms; white-space: nowrap;
}
.afer-btn-primary:hover { opacity: .88; color: #fff; text-decoration: none; }

.afer-nav-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: var(--fg-strong, #0f172a);
  background: transparent; border: 0; padding: 8px 12px; border-radius: 8px;
  cursor: pointer; font-family: inherit; transition: background 120ms;
  white-space: nowrap;
}
.afer-nav-btn:hover { background: var(--surface-subtle, #f1f5f9); }

/* Dropdown */
.afer-drop { position: relative; padding-bottom: 12px; margin-bottom: -12px; }

.afer-dropdown {
  display: none;
  position: absolute; top: 100%; left: -200px; padding-top: 8px;
  width: 640px;
  background: #fff;
  border: 1px solid var(--border-default, #e2e8f0); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.14); padding: 16px;
  grid-template-columns: repeat(2, 1fr); gap: 4px;
  z-index: 200;
}
.afer-dropdown--sectores {
  left: -100px; width: 480px;
  grid-template-columns: 1fr;
}
.afer-drop:hover .afer-dropdown { display: grid; }
.afer-drop:hover .afer-dropdown--sectores { display: block; }

.afer-drop-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px; border-radius: 10px;
  text-decoration: none; color: inherit; transition: background 120ms;
}
.afer-drop-item:hover { background: var(--surface-subtle, #f1f5f9); text-decoration: none; }
.afer-drop-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--brand-primary-soft, #EEF2FF);
  display: flex; align-items: center; justify-content: center;
}
.afer-drop-title { font-size: 14px; font-weight: 600; color: var(--fg-strong, #0f172a); margin-bottom: 2px; }
.afer-drop-desc  { font-size: 12px; color: var(--fg-muted, #64748b); line-height: 1.4; }

.afer-sec-item {
  padding: 10px 12px; border-radius: 8px; font-size: 14px;
  color: var(--fg-strong, #0f172a); text-decoration: none;
  transition: background 120ms; display: block;
}
.afer-sec-item:hover { background: var(--surface-subtle, #f1f5f9); text-decoration: none; }

@media (max-width: 920px) {
  .afer-desktop-nav  { display: none !important; }
  .afer-drop         { display: none !important; }
  .afer-mobile-toggle { display: block !important; }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.afer-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.afer-footer-col-title {
  font-size: 12px; font-weight: 600; color: #fff;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.afer-footer-link {
  display: block; font-size: 14px; color: #94A3B8;
  text-decoration: none; padding: 6px 0;
  transition: color 120ms;
}
.afer-footer-link:hover { color: #fff; text-decoration: none; }
.afer-footer-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 120ms;
}
.afer-footer-social:hover { background: rgba(255,255,255,.12); }

@media (max-width: 900px) {
  .afer-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .afer-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .afer-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ── Hero 2 columnas con visual de producto ── */
.seo-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.seo-hero__content { /* columna texto — sin cambios */ }
.seo-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Browser chrome (compartido con product pages) */
.pp-browser {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15,23,42,.14);
  overflow: hidden;
  width: 100%;
}
.pp-browser__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #F1F5F9;
  border-bottom: 1px solid var(--border-default, #e2e8f0);
}
.pp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; }
.pp-dot--red    { background: #FCA5A5; }
.pp-dot--yellow { background: #FCD34D; }
.pp-dot--green  { background: #86EFAC; }
.pp-browser__url { margin-left: 12px; font-size: 11px; color: var(--fg-muted, #64748b); font-family: var(--font-mono, monospace); }
.pp-browser__body { height: calc(100% - 36px); overflow: hidden; }

@media (max-width: 860px) {
  .seo-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .seo-hero__visual { display: none; }
}
