/* ─────────────────────────────────────────────────────────────────────────
   Intelligent Analyst · Auditoría de Visibilidad de IA
   Sistema de diseño · Dark Enterprise (Azul medianoche + Esmeralda)
   ───────────────────────────────────────────────────────────────────────── */

:root {
  /* Colores base */
  --bg: #0a1628;
  --bg-elev: #0f1d33;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-faint: #475569;

  /* Acentos */
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --cyan: #06b6d4;
  --amber: #fbbf24;

  /* Sombras */
  --shadow-glow: 0 16px 40px rgba(16, 185, 129, 0.18);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background ambient */
body::before {
  content: "";
  position: fixed;
  top: -300px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: 40%;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─────────────────────────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────────────────────────── */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section-narrow {
  padding: 64px 0;
}

/* ─────────────────────────────────────────────────────────────────
   Navegación
   ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

/* Nuevo wordmark Escobedo IA (Logo C, estilo Stripe/Linear) */
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand-name-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline;
}

.brand-ia {
  background: linear-gradient(90deg, var(--emerald-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 4px;
}

.brand-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
}

/* Footer wordmark (versión un poco más grande) */
.footer-brand .brand-name-text {
  font-size: 24px;
}

.footer-brand .brand-sub {
  font-size: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--emerald);
  color: white !important;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.nav-cta:hover {
  background: var(--emerald-light);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────────────────────────────────
   Tipografía
   ───────────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.h-display {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.h-section {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 640px;
}

.text-emerald {
  color: var(--emerald-light);
}

.text-grad {
  background: linear-gradient(90deg, var(--emerald-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────────────────────────────────────────────────────────────
   Botones
   ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.btn-large {
  padding: 16px 32px;
  font-size: 15px;
}

/* ─────────────────────────────────────────────────────────────────
   Pill / Badge
   ───────────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.pill-emerald {
  background: var(--emerald-dim);
  border-color: var(--emerald-border);
  color: var(--emerald-light);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
}

/* ─────────────────────────────────────────────────────────────────
   Cards
   ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  transition: all 0.3s;
}

.card-hover:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.card-emerald {
  background: linear-gradient(135deg, var(--emerald-dim) 0%, rgba(6, 182, 212, 0.06) 100%);
  border-color: var(--emerald-border);
}

/* ─────────────────────────────────────────────────────────────────
   Grids
   ───────────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

/* ─────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .lead {
  font-size: 14px;
  margin-top: 14px;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 11px;
}

.footer a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--emerald-light);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-subtle);
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Utilidades
   ───────────────────────────────────────────────────────────────── */

.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: 12px;
}

.mt-md {
  margin-top: 24px;
}

.mt-lg {
  margin-top: 40px;
}

.mt-xl {
  margin-top: 60px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.gap-sm {
  gap: 10px;
}

.gap-md {
  gap: 16px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 60px 0;
}

/* ─────────────────────────────────────────────────────────────────
   Toggle Mensual/Anual
   ───────────────────────────────────────────────────────────────── */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 32px auto 0;
}

.billing-option {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.billing-option.active {
  background: var(--emerald);
  color: white;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.billing-badge {
  position: relative;
  background: var(--emerald-dim);
  color: var(--emerald-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 6px;
}

.price-monthly,
.price-annual {
  display: none;
}

.price-monthly.show,
.price-annual.show {
  display: flex;
}

/* ─────────────────────────────────────────────────────────────────
   Hero Visual SVG
   ───────────────────────────────────────────────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.score-visual {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.score-visual::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  filter: blur(40px);
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}

.score-circle svg {
  transform: rotate(-90deg);
}

.score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-num .num {
  font-size: 48px;
  font-weight: 700;
  color: var(--emerald-light);
  line-height: 1;
}

.score-num .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.score-bars {
  display: grid;
  gap: 14px;
}

.score-bar {
  position: relative;
  z-index: 1;
}

.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.score-bar-name {
  color: var(--text-muted);
  font-weight: 500;
}

.score-bar-value {
  color: var(--text);
  font-weight: 600;
}

.score-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan) 100%);
  border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────────
   AEO / GEO / LLMO cards
   ───────────────────────────────────────────────────────────────── */

.indicator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.indicator-card:hover {
  border-color: var(--emerald-border);
  background: var(--bg-card-hover);
}

.indicator-label {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  line-height: 1;
}

.indicator-name {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  font-weight: 500;
}

.indicator-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.indicator-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────────
   Animaciones
   ───────────────────────────────────────────────────────────────── */

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.pulse {
  animation: pulse-glow 2s infinite;
}

/* ─────────────────────────────────────────────────────────────────
   Mobile nav (simple)
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    padding: 8px 14px;
    font-size: 12px;
  }
  .section {
    padding: 64px 0;
  }
}


/* ─────────────────────────────────────────────────────────────────
   Fix scroll para anclas con nav sticky
   ───────────────────────────────────────────────────────────────── */

#faq, #faq-planes {
  scroll-margin-top: 100px;
}

/* ─────────────────────────────────────────────────────────────────
   Iconos sociales footer
   ───────────────────────────────────────────────────────────────── */

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--emerald-border);
  color: var(--emerald-light);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ─────────────────────────────────────────────────────────────────
   Foto del founder
   ───────────────────────────────────────────────────────────────── */

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid var(--emerald-border);
  box-shadow: 0 16px 40px rgba(16,185,129,0.25);
  display: block;
}

/* ─────────────────────────────────────────────────────────────────
   Banner de cookies
   ───────────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}

.cookie-banner.show { display: flex; }

.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-banner-text a {
  color: var(--emerald-light);
  text-decoration: underline;
}

.cookie-banner-btn {
  background: var(--emerald);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner-btn:hover {
  background: var(--emerald-light);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   Páginas legales (privacidad, cookies, aviso-legal)
   ───────────────────────────────────────────────────────────────── */

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  letter-spacing: -0.015em;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 16px;
  margin: 28px 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.legal-content p, .legal-content ul {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content ul li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--emerald-light);
  text-decoration: underline;
}

.legal-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-meta strong { color: var(--text); }
