/*
Theme Name: Estratega 360 — Landing
Theme URI: https://estratega360.co
Author: Estratega 360
Author URI: https://estratega360.co
Description: Landing corporativa de alto impacto para Estratega 360 — plataforma de campañas políticas. Estética "índigo abisal" (bioluminescent terminal), 100% editable desde el Personalizador nativo: textos, colores, fondos, botones/URLs, tamaño de logo, animaciones por sección, footer y SEO/OG en <head>. Sin plugins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estratega360
Tags: landing, one-page, dark, custom-colors, custom-logo, custom-menu, full-width-template, featured-images, translation-ready
*/

/* ============================================================
   ESTRATEGA 360 — Índigo abisal
   Los colores base se inyectan como variables desde el
   Personalizador (functions.php → e360_inline_css). Aquí van
   los valores por defecto y toda la maquetación.
   ============================================================ */

:root {
  /* Superficies (stack de profundidad índigo) */
  --e-abyss:   #0a0a1a;   /* lienzo principal */
  --e-deep:    #060612;   /* recesado: footer / paneles hundidos */
  --e-raised:  #15152e;   /* tarjetas elevadas */
  --e-tint:    #1d1d3a;   /* borde/tinte sutil */

  /* Texto */
  --e-white:   #ffffff;   /* titulares, nav */
  --e-mist:    #eef0ff;   /* texto enfatizado */
  --e-silver:  #b9bdd6;   /* cuerpo */
  --e-muted:   #7c7f9e;   /* terciario / captions */

  /* Marca + acentos */
  --e-brand:   #4f46e5;   /* índigo Estratega */
  --e-violet:  #8b5cf6;
  --e-phosphor:#f0abfc;   /* rosa-lavanda: estadísticas */
  --e-grad:    linear-gradient(90deg, #4f46e5 0%, #8b5cf6 45%, #f0abfc 100%);
  --e-grad-soft: linear-gradient(90deg, rgba(79,70,229,.18) 0%, rgba(240,171,252,.12) 100%);

  /* Tipografía */
  --e-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --e-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --e-max:     1200px;
  --e-radius:  16px;
  --e-radius-sm: 8px;
  --e-logo-h:  40px;      /* alto del logo (editable) */
  --e-section-y: 96px;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--e-abyss);
  color: var(--e-silver);
  font-family: var(--e-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--e-silver); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--e-white); }
h1, h2, h3, h4 {
  font-family: var(--e-display);
  font-weight: 500;
  color: var(--e-white);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; }

/* ---------- Utilidades ---------- */
.e-container { width: 100%; max-width: var(--e-max); margin: 0 auto; padding: 0 24px; }
.e-section { padding: var(--e-section-y) 0; position: relative; }
.e-eyebrow {
  font-family: var(--e-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 500;
  color: var(--e-silver);
  display: inline-block;
  margin-bottom: 18px;
}
.e-eyebrow.grad {
  background: var(--e-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.e-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--e-silver); max-width: 620px; }
.e-center { text-align: center; margin-left: auto; margin-right: auto; }
.e-grad-text {
  background: var(--e-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botones ---------- */
.e-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--e-body); font-weight: 600; font-size: 14px;
  padding: 14px 26px; border-radius: var(--e-radius-sm);
  cursor: pointer; border: 1px solid transparent; transition: all .22s ease;
  text-transform: none; white-space: nowrap;
}
.e-btn--primary { background: var(--e-grad); color: #0a0a1a; }
.e-btn--primary:hover { color: #0a0a1a; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(139,92,246,.6); }
.e-btn--ghost { background: transparent; color: var(--e-white); border-color: var(--e-tint); }
.e-btn--ghost:hover { color: var(--e-white); border-color: var(--e-violet); background: rgba(139,92,246,.08); }
.e-btn .e-arrow { transition: transform .22s ease; }
.e-btn:hover .e-arrow { transform: translateX(3px); }

/* ============================================================
   NAVBAR
   ============================================================ */
.e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.e-header.scrolled {
  background: rgba(10,10,26,.72);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--e-tint);
}
.e-nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.e-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.e-brand img, .e-brand svg { height: var(--e-logo-h); width: auto; transition: height .2s ease; }
.e-brand .e-wordmark { font-family: var(--e-display); font-weight: 600; color: var(--e-white); font-size: 20px; letter-spacing: -0.02em; }
.e-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.e-menu a {
  font-family: var(--e-display); text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.1em; color: var(--e-silver);
}
.e-menu a:hover, .e-menu .current-menu-item > a { color: var(--e-white); }
.e-nav__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.e-burger { display: none; background: none; border: 0; color: var(--e-white); cursor: pointer; padding: 8px; }
.e-mobile-menu { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.e-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 76px; }
.e-hero__globe { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }
.e-hero__orb { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.e-hero__glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; max-width: 120vw; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(79,70,229,.28) 0%, rgba(139,92,246,.12) 35%, transparent 68%);
  filter: blur(20px);
}
.e-hero__inner { position: relative; z-index: 3; text-align: center; max-width: 860px; margin: 0 auto; padding: 40px 0; }
.e-hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  letter-spacing: -0.045em; line-height: 0.98; margin-bottom: 22px;
}
.e-hero .e-lead { margin: 0 auto 34px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.e-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.e-hero__note { margin-top: 22px; font-size: 13px; color: var(--e-muted); }

/* ============================================================
   TRUST / LOGOS
   ============================================================ */
.e-trust { padding: 44px 0; border-top: 1px solid var(--e-tint); border-bottom: 1px solid var(--e-tint); }
.e-trust__label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--e-muted); margin-bottom: 26px; }
.e-trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 48px; }
.e-trust__row span { font-family: var(--e-display); font-size: 18px; font-weight: 500; color: var(--e-muted); opacity: .8; }

/* ============================================================
   FEATURES
   ============================================================ */
.e-features__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.e-features__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.e-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.e-card {
  background: var(--e-raised); border: 1px solid var(--e-tint);
  border-radius: var(--e-radius); padding: 34px 30px; transition: transform .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.e-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.5); }
.e-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--e-grad-soft); border: 1px solid var(--e-tint); margin-bottom: 20px; color: var(--e-phosphor);
}
.e-card h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.e-card p { color: var(--e-silver); font-size: 15px; margin: 0; }

/* ============================================================
   STATS
   ============================================================ */
.e-stats { background: var(--e-deep); border-top: 1px solid var(--e-tint); border-bottom: 1px solid var(--e-tint); }
.e-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.e-stat { text-align: center; }
.e-stat__num {
  font-family: var(--e-display); font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--e-phosphor); line-height: 1; letter-spacing: -0.03em;
}
.e-stat__label { margin-top: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--e-mist); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.e-steps__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.e-steps__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.e-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.e-step { position: relative; padding: 30px; border-radius: var(--e-radius); background: var(--e-raised); border: 1px solid var(--e-tint); }
.e-step__n {
  font-family: var(--e-display); font-size: 14px; font-weight: 600; letter-spacing: .1em;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--e-grad); color: #0a0a1a; margin-bottom: 18px;
}
.e-step h3 { font-size: 1.25rem; }
.e-step p { font-size: 15px; margin: 0; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.e-quote { max-width: 860px; margin: 0 auto; text-align: center; }
.e-quote blockquote {
  font-family: var(--e-display); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25; letter-spacing: -0.02em; color: var(--e-mist); margin: 0 0 28px;
}
.e-quote cite { font-style: normal; color: var(--e-silver); font-size: 15px; }
.e-quote cite strong { color: var(--e-white); display: block; font-weight: 600; margin-bottom: 2px; }

/* ============================================================
   PRICING CTA
   ============================================================ */
.e-priceband {
  background: var(--e-raised); border: 1px solid var(--e-tint); border-radius: var(--e-radius);
  padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.e-priceband::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(139,92,246,.18), transparent 60%);
}
.e-priceband > * { position: relative; z-index: 1; }
.e-priceband h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ============================================================
   FAQ
   ============================================================ */
.e-faq { max-width: 780px; margin: 0 auto; }
.e-faq__head { text-align: center; margin-bottom: 44px; }
.e-faq__head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.e-acc { border-top: 1px solid var(--e-tint); }
.e-acc__item { border-bottom: 1px solid var(--e-tint); }
.e-acc__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--e-display); font-weight: 500; font-size: 1.1rem; color: var(--e-white);
}
.e-acc__q .e-plus { flex-shrink: 0; transition: transform .25s ease; color: var(--e-violet); }
.e-acc__item.open .e-plus { transform: rotate(45deg); }
.e-acc__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.e-acc__a p { padding: 0 0 22px; color: var(--e-silver); font-size: 15px; margin: 0; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.e-finalcta { text-align: center; }
.e-finalcta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.e-finalcta .e-lead { margin: 0 auto 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.e-footer { background: var(--e-deep); border-top: 1px solid var(--e-tint); padding: 84px 0 40px; }
.e-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.e-footer__brand .e-brand { margin-bottom: 18px; }
.e-footer__brand p { color: var(--e-silver); font-size: 14px; max-width: 300px; }
.e-footer__col h4 { font-family: var(--e-display); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--e-muted); margin-bottom: 16px; }
.e-footer__col ul { list-style: none; margin: 0; padding: 0; }
.e-footer__col li { margin-bottom: 10px; }
.e-footer__col a { font-size: 14px; color: var(--e-silver); }
.e-footer__social { display: flex; gap: 12px; margin-top: 18px; }
.e-footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--e-tint); color: var(--e-silver);
}
.e-footer__social a:hover { border-color: var(--e-violet); color: var(--e-white); }
.e-footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 26px; border-top: 1px solid var(--e-tint); font-size: 13px; color: var(--e-muted);
}
.e-footer__bottom a { color: var(--e-muted); }
.e-footer__bottom a:hover { color: var(--e-silver); }

/* ============================================================
   ANIMACIONES (reveal on scroll)
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; }
[data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; }
[data-reveal].d4 { transition-delay: .32s; }
[data-reveal].d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* Cuando las animaciones se desactivan por sección desde el Personalizador */
.e-noanim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .e-grid, .e-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .e-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .e-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --e-section-y: 72px; }
  .e-menu, .e-nav__cta .e-btn--ghost { display: none; }
  .e-burger { display: inline-flex; }
  .e-grid, .e-steps__grid, .e-footer__grid { grid-template-columns: 1fr; }
  .e-mobile-menu.open {
    display: block; position: fixed; inset: 76px 0 0; z-index: 90;
    background: rgba(10,10,26,.97); backdrop-filter: blur(10px); padding: 30px 24px;
  }
  .e-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .e-mobile-menu li { padding: 14px 0; border-bottom: 1px solid var(--e-tint); }
  .e-mobile-menu a { font-family: var(--e-display); text-transform: uppercase; letter-spacing: .1em; font-size: 15px; color: var(--e-white); }
  .e-priceband { padding: 40px 24px; }
}
