/* ════════════════════════════════════════════════════
   LANDING TEMPLATE — SISTEMA DE DISEÑO
   ════════════════════════════════════════════════════
   PERSONALIZA: Cambia los valores de :root para
   adaptar colores y radios a la marca del cliente.
   ════════════════════════════════════════════════════ */

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

:root {
  /* ── Colores de marca ── */
  --primary:       #0057FF;             /* Azul corporativo */
  --primary-glow:  rgba(0,87,255,0.22);
  --accent:        #00D4FF;             /* Azul claro / acento */
  --cta:           #FF6B2B;             /* Naranja CTA */
  --cta-hover:     #E55A1F;
  --cta-glow:      rgba(255,107,43,0.28);

  /* ── Fondos ── */
  --black:    #000000;   /* Header / Footer */
  --navy:     #0C1A2E;   /* Hero (azul marino) */
  --dark:     #060E1A;   /* Secciones oscuras */
  --dark-2:   #0B1624;   /* Secciones oscuras alternas */
  --white:    #FFFFFF;   /* Sección testimonios */

  /* ── Texto sobre fondos oscuros ── */
  --text:         #FFFFFF;
  --text-body:    #C8D8E8;
  --text-muted:   #7A90A8;

  /* ── Texto sobre fondo blanco ── */
  --text-w:       #0D1927;
  --text-w-body:  #3A4E62;
  --text-w-muted: #6A7E94;

  /* ── Bordes ── */
  --border:     rgba(255,255,255,0.09);
  --border-w:   rgba(13,25,39,0.1);

  /* ── Forma ── */
  --radius:    14px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══ Tipografía ══ */
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; color: #fff; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; color: #fff; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; color: #fff; }
p  { color: var(--text-body); line-height: 1.8; }

/* ══ Utilidades ══ */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 100px 0; }
.text-center { text-align: center; }

/* Texto con gradiente */
.g-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gold-text {
  background: linear-gradient(135deg, #F5A623 0%, #FAD76A 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Etiqueta de sección */
.slabel {
  display: block; font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.slabel-w { color: var(--cta); }   /* Label sobre fondo blanco */

/* Cabecera de sección centrada */
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p  { font-size: 1.05rem; }
.section-head.w h2 { color: var(--text-w); }
.section-head.w p  { color: var(--text-w-body); }

/* ══ Botones ══ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 9px; font-size: 0.96rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; transition: all 0.22s;
}
.btn-cta {
  background: var(--cta); color: #fff;
  box-shadow: 0 0 30px var(--cta-glow);
}
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 0 50px var(--cta-glow); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 0 28px var(--primary-glow);
}
.btn-primary:hover { background: #0044CC; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--accent); background: rgba(0,87,255,0.06); }
.btn-lg { padding: 18px 36px; font-size: 1rem; border-radius: 11px; }

/* ════════════════════════════════════════════════════
   HEADER — Negro fijo
   ════════════════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: border-color 0.3s;
}
.site-header.scrolled {
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

/* PERSONALIZA: Logo */
.header-logo {
  text-decoration: none; font-size: 1.35rem; font-weight: 900;
  letter-spacing: -0.02em; color: #fff;
  display: flex; align-items: center; gap: 2px;
}
.header-logo .plus { color: var(--primary); }
.header-logo .seo  { color: var(--accent); }

/* ════════════════════════════════════════════════════
   HERO — Azul marino, 2 columnas
   ════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  position: relative; overflow: hidden;
  /* PERSONALIZA: Fondo hero
     Para imagen real:
     background: url('/assets/img/hero-bg.webp') center/cover no-repeat, var(--navy);
     WebP, 1920×1080px, <180KB */
  background: linear-gradient(150deg, #0D1F38 0%, var(--navy) 55%, #091526 100%);
}
/* Brillo radial sutil */
.hero::before {
  content: ''; position: absolute; top: -15%; right: -5%;
  width: 62vw; height: 62vw;
  background: radial-gradient(ellipse, rgba(0,87,255,0.14) 0%, transparent 65%);
  pointer-events: none;
}
/* Grid de puntos de fondo */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px; pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 52px;
  align-items: center;
}

/* Columna izquierda — todo centrado */
.hero__copy { text-align: center; }

/* Descripción: texto grande y prominente (va ANTES del H1) */
.hero__desc {
  font-size: clamp(1.28rem, 2.3vw, 1.62rem);
  color: rgba(255,255,255,0.94);
  max-width: 520px; line-height: 1.72;
  margin-bottom: 20px;
  margin-left: auto; margin-right: auto;
}
/* H1: debajo de la descripción, más pequeño — el wireframe lo define así */
.hero__title {
  font-size: clamp(0.92rem, 1.35vw, 1.05rem) !important;
  font-weight: 700; letter-spacing: 0;
  line-height: 1.7; color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}
.hero__cta-wrap { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Dashboard SVG — debajo del CTA */
.hero__dashboard {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,87,255,0.1);
}

/* ════════════════════════════════════════════════════
   GHL FORM (columna derecha)
   ════════════════════════════════════════════════════ */
.form-card {
  background: rgba(10,20,36,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,87,255,0.08);
}
.form-card__head {
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.form-dots { display: flex; gap: 5px; }
.form-dot { width: 8px; height: 8px; border-radius: 50%; }
.form-dot-1 { background: rgba(255,255,255,0.12); }
.form-dot-2 { background: rgba(255,255,255,0.07); }
.form-dot-3 { background: rgba(255,255,255,0.04); }
.form-head-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }

/* Placeholder GHL */
.ghl-placeholder {
  height: 520px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 40px; text-align: center;
}
.ghl-placeholder__icon {
  width: 54px; height: 54px; border-radius: 14px;
  border: 1.5px dashed rgba(0,87,255,0.35);
  color: rgba(0,87,255,0.45);
  display: flex; align-items: center; justify-content: center;
}
.ghl-placeholder h4 { font-size: 1rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.ghl-placeholder p  { font-size: 0.83rem; color: var(--text-muted); max-width: 250px; line-height: 1.6; }
.ghl-placeholder code {
  font-size: 0.75rem; font-family: monospace;
  background: rgba(0,87,255,0.09); border: 1px solid rgba(0,87,255,0.2);
  border-radius: 6px; padding: 6px 12px; color: var(--accent);
}

/* Lead magnet */
.lead-magnet {
  margin-top: 14px;
  padding: 16px 20px;
  background: rgba(0,87,255,0.06);
  border: 1px solid rgba(0,87,255,0.15);
  border-radius: 12px;
}
.lead-magnet__label {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.lead-magnet__items { display: flex; flex-direction: column; gap: 5px; }
.lead-magnet__item {
  font-size: 0.81rem; color: var(--text-body);
  display: flex; align-items: flex-start; gap: 7px;
}
.lead-magnet__item::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ════════════════════════════════════════════════════
   MÉTRICAS — 4 tarjetas en fila
   ════════════════════════════════════════════════════ */
.metrics { padding: 100px 0; background: var(--dark); }
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.metric-card {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.metric-card:hover {
  border-color: rgba(0,87,255,0.3);
  background: rgba(0,87,255,0.04);
  transform: translateY(-4px);
}
.metric-val {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 12px;
}
.metric-lbl {
  font-size: 0.83rem; color: var(--text-muted); line-height: 1.55;
}

/* ════════════════════════════════════════════════════
   BENEFICIOS — 3 tarjetas
   ════════════════════════════════════════════════════ */
.benefits { padding: 100px 0; background: var(--dark-2); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit-card {
  background: rgba(255,255,255,0.032);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.benefit-card:hover {
  border-color: rgba(0,87,255,0.28);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-num {
  font-size: 2.8rem; font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  color: rgba(0,87,255,0.12);
  margin-bottom: 18px;
}
.benefit-card h3 { font-size: 1.14rem; margin-bottom: 12px; }
.benefit-card p  { font-size: 0.9rem; }

/* ════════════════════════════════════════════════════
   CTA INTERMEDIO — Tarjeta centrada
   ════════════════════════════════════════════════════ */
.cta-mid { padding: 100px 0; background: var(--dark); }
.cta-mid__box {
  max-width: 720px; margin: 0 auto;
  padding: 56px 48px;
  text-align: center;
  border: 1px solid rgba(0,87,255,0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,87,255,0.05) 0%, rgba(0,212,255,0.025) 100%);
}
.cta-mid__box h3 { margin-bottom: 14px; }
.cta-mid__box p  { margin-bottom: 32px; font-size: 1rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════
   TESTIMONIOS — Fondo blanco
   ════════════════════════════════════════════════════ */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border-w);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.12);
}
.t-quote {
  font-size: 1.8rem; font-weight: 900; line-height: 1;
  color: var(--primary); opacity: 0.35; margin-bottom: 10px;
}
.t-stars { font-size: 0.85rem; color: #F5A623; margin-bottom: 14px; }
.t-text {
  font-size: 0.92rem; color: var(--text-w-body);
  line-height: 1.8; font-style: italic; margin-bottom: 24px;
}
.t-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(13,25,39,0.08);
}
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff;
}
.t-name { font-size: 0.88rem; font-weight: 700; color: var(--text-w); }
.t-role { font-size: 0.74rem; color: var(--text-w-muted); }

/* ════════════════════════════════════════════════════
   CTA FINAL
   ════════════════════════════════════════════════════ */
.cta-bottom { padding: 100px 0; background: var(--dark-2); }
.cta-bottom__inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.cta-bottom__inner h2 { margin-bottom: 16px; }
.cta-bottom__inner p  { margin-bottom: 36px; font-size: 1.02rem; }

/* ════════════════════════════════════════════════════
   FOOTER — Negro
   ════════════════════════════════════════════════════ */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 0 28px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: -0.02em; color: #fff; margin-bottom: 14px;
}
.footer-logo .plus { color: var(--primary); }
.footer-logo .seo  { color: var(--accent); }
.footer__brand p {
  font-size: 0.85rem; max-width: 280px;
  line-height: 1.75; color: var(--text-muted);
}
.footer__col h4 {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5); margin-bottom: 18px;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.86rem; transition: color 0.2s;
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.77rem; color: var(--text-muted);
}

/* ════════════════════════════════════════════════════
   ANIMACIÓN REVEAL
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-mid__box { padding: 40px 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
