/* ══════════════════════════════════════════════════════════════════
   PLAN BASE — Motor de Ventas — BRADOC Marketing
   Hoja de estilos de la página de venta del plan Base
   Paleta, tipografía y componentes heredados de Motor de ventas/motor listo/styles.css
   (a su vez tomados de General/index.html — branding oficial BRADOC)
   ══════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:          #0B1B62;
  --blue:          #1E40AF;
  --blue-mid:      #2563EB;
  --sky:           #0EA5E9;
  --sky-light:     #38BDF8;
  --sky-lighter:   #BAE6FD;
  --sky-faint:     #F0F9FF;

  --text-primary:  #0F172A;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;

  --surface:       #FFFFFF;
  --surface-alt:   #F8FAFF;
  --border:        #E1EFFE;

  --grad-hero:     linear-gradient(135deg, #0B1B62 0%, #1A3494 55%, #0B1D70 100%);
  --grad-blue:     linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --grad-card:     linear-gradient(135deg, rgba(56,189,248,.07) 0%, rgba(37,99,235,.04) 100%);
  --grad-radial:   radial-gradient(circle at 50% 30%, rgba(56,189,248,.16) 0%, rgba(11,27,98,0) 60%);

  --shadow-sm:  0 1px 4px  rgba(11,27,98,.08);
  --shadow-md:  0 4px 16px rgba(11,27,98,.12);
  --shadow-lg:  0 8px 32px rgba(11,27,98,.16);
  --shadow-xl:  0 16px 48px rgba(11,27,98,.20);

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 9999px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ─── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  overflow-x: hidden;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
section { position: relative; }

/* ─── UTILS ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 900px; margin: 0 auto; padding: 0 24px; }

.eyebrow-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sky); background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  padding: 6px 14px; border-radius: var(--r-full);
  margin-bottom: 16px;
}
.eyebrow-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); flex-shrink: 0; }
.eyebrow-tag.on-dark { color: var(--sky-light); background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.3); }
.eyebrow-tag.on-dark::before { background: var(--sky-light); }
.eyebrow-tag.centered { margin-left: auto; margin-right: auto; }

.h-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; line-height: 1.16; color: var(--text-primary);
}
.h-title span { background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.h-title.on-dark { color: #fff; }
.h-title.on-dark span { background: linear-gradient(135deg,#38BDF8 0%,#BAE6FD 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.h-subtitle { font-size: 1.05rem; color: var(--text-secondary); max-width: 600px; line-height: 1.75; margin-top: 14px; }
.h-subtitle.on-dark { color: rgba(255,255,255,.68); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: var(--r-full);
  font-size: .95rem; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--grad-blue); color: #fff; box-shadow: 0 4px 20px rgba(37,99,235,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,.45); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline-dark { background: transparent; color: var(--blue-mid); border: 1.5px solid rgba(37,99,235,.3); }
.btn-outline-dark:hover { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.55); }
.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,.35); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.45); }
.btn-lg { padding: 18px 38px; font-size: 1.02rem; }
.btn-full { width: 100%; }

/* Diamond / rombo marker — motivo recurrente de las "piezas" del motor */
.rombo {
  width: 9px; height: 9px; flex-shrink: 0;
  background: var(--sky); transform: rotate(45deg);
  display: inline-block; border-radius: 2px;
}
.rombo.filled-strong { background: var(--sky-light); }
.rombo.empty { background: transparent; border: 1.5px solid var(--text-muted); }
.rombo.on-dark { background: var(--sky-light); }

/* ─── REVEAL ON SCROLL (progressive enhancement) ──────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.no-js .reveal { opacity: 1; transform: none; }

/* Blueprint grid background, usado detrás de bandas oscuras */
.grid-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0;
  background: rgba(11,27,98,.72);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 24px; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-img { height: 36px; width: auto; display: block; object-fit: contain; }
.logo-brandname { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.02rem; color: #fff; letter-spacing: -.01em; line-height: 1.15; }
.logo-brandname small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-light); margin-top: 1px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.75); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 2px; background: var(--sky-light); border-radius: 2px; transform: scaleX(0); transition: transform var(--transition); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { flex-shrink: 0; }
.nav-cta.btn-whatsapp { padding: 10px 22px; font-size: .85rem; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 132px 0 72px;
}
.hero .grid-bg { display: none; }
@media (min-width: 900px) { .hero .grid-bg { display: block; } }
.hero-glow-svg { position: absolute; top: -80px; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1300px; height: 560px; pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 780px; }

.hero-level { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-level .plan-meter { margin-bottom: 0; }
.hero-level-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sky-light); }

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
  color: #fff; margin-bottom: 22px;
}
.hero-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--sky-light); }
.hero-title .accent { color: var(--sky-light); }
.hero-desc { font-size: 1.08rem; color: rgba(255,255,255,.72); max-width: 620px; line-height: 1.8; margin-bottom: 38px; }
.hero-desc strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── LOS NÚMEROS DEL PLAN (ficha de 4 casillas) ─────────── */
.plan-facts { padding: 12px 0 72px; background: var(--surface); position: relative; overflow: hidden; }
.plan-facts-glow {
  position: absolute; top: -140px; left: 50%; width: 560px; height: 300px;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(56,189,248,.28) 0%, rgba(37,99,235,.12) 45%, rgba(56,189,248,0) 72%);
  filter: blur(6px);
  animation: fact-float 9s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes fact-float {
  0%, 100% { transform: translateX(-58%) translateY(0); }
  50%      { transform: translateX(-42%) translateY(22px); }
}

/* Marco con destello animado */
.plan-facts-shell {
  position: relative; z-index: 1;
  border-radius: var(--r-xl); padding: 2px;
  background: linear-gradient(115deg, var(--sky-light), var(--blue-mid), var(--sky), var(--sky-light));
  background-size: 300% 300%;
  animation: shimmer-border 6s ease infinite;
  box-shadow: var(--shadow-lg);
}
@keyframes shimmer-border {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.plan-facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border-radius: calc(var(--r-xl) - 2px); overflow: hidden;
  background: var(--border);
}
.fact-cell {
  background: var(--surface-alt); padding: 26px 20px 22px;
  position: relative; transition: var(--transition);
}
.fact-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-blue);
}
.fact-cell:hover { background: #fff; transform: translateY(-2px); }
.fact-cell-label { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.fact-cell-value { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .92rem; color: var(--text-primary); line-height: 1.4; }
@media (max-width: 760px) { .plan-facts-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .plan-facts-glow, .plan-facts-shell { animation: none; }
}

/* ─── PARA QUIÉN ES ──────────────────────────────────────── */
.forwho { padding: 96px 0; background: var(--surface); }
.forwho-header { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.forwho-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.forwho-plate {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 30px 26px; transition: var(--transition);
}
.forwho-plate:hover { border-color: var(--sky-light); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.forwho-plate-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.08rem; color: var(--text-primary); margin-bottom: 10px; }
.forwho-plate-desc { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; }
@media (max-width: 860px) { .forwho-grid { grid-template-columns: 1fr; } }

/* ─── QUÉ INCLUYE (entregables) ──────────────────────────── */
.deliverables { padding: 96px 0; background: var(--surface-alt); }
.deliverables-header { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.deliverables-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.deliverable-plate {
  display: flex; gap: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px 30px; transition: var(--transition);
}
.deliverable-plate:hover { border-color: var(--sky-light); box-shadow: var(--shadow-md); }
.deliverable-plate .rombo { margin-top: 8px; width: 11px; height: 11px; }
.deliverable-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary); margin-bottom: 8px; }
.deliverable-desc { font-size: .92rem; color: var(--text-secondary); line-height: 1.75; }

.kit-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.kit-cell { background: #fff; padding: 26px 18px; text-align: center; }
.kit-cell-num { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 2.1rem; color: var(--blue-mid); line-height: 1; }
.kit-cell-num.total { color: var(--sky); }
.kit-cell-label { font-size: .8rem; color: var(--text-secondary); margin-top: 8px; font-weight: 500; }
@media (max-width: 760px) { .kit-numbers { grid-template-columns: 1fr 1fr; } }

/* ─── MANTENIMIENTO ──────────────────────────────────────── */
.maintenance { padding: 96px 0; background: var(--surface); }
.maintenance-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.maint-argument-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; color: var(--blue-mid); margin-bottom: 4px; }
.maint-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maint-plate {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px 20px; transition: var(--transition);
}
.maint-plate:hover { border-color: var(--sky-light); box-shadow: var(--shadow-sm); }
.maint-plate-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .92rem; color: var(--text-primary); margin-bottom: 6px; }
.maint-plate-desc { font-size: .82rem; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 980px) { .maintenance-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 480px) { .maint-grid { grid-template-columns: 1fr; } }

/* ─── HONESTIDAD ──────────────────────────────────────────── */
.honesty { padding: 0 0 96px; background: var(--surface); }
.honesty-box {
  background: var(--surface-alt); border: 2px solid var(--sky-light);
  border-radius: var(--r-xl); padding: 40px 40px 36px;
}
.honesty-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--text-primary); margin-bottom: 22px; }
.honesty-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.honesty-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-secondary); }
.honesty-list li .rombo { margin-top: 6px; }
.honesty-note { font-size: .92rem; color: var(--text-secondary); line-height: 1.8; border-top: 1px dashed var(--border); padding-top: 22px; }
.honesty-note strong { color: var(--text-primary); font-weight: 600; }
@media (max-width: 640px) { .honesty-box { padding: 30px 24px; } }

/* ─── CIERRE EMOCIONAL ───────────────────────────────────── */
.close { padding: 108px 0; background: var(--grad-hero); position: relative; overflow: hidden; }
.close::before { content: ''; position: absolute; inset: 0; background: var(--grad-radial); }
.close-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.close-desc { font-size: 1.05rem; color: rgba(255,255,255,.7); line-height: 1.85; margin: 16px auto 36px; max-width: 620px; }
.close-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--navy); padding: 44px 0 22px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; object-fit: contain; }
.footer-brand-text { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.footer-brand-text a { color: var(--sky-light); font-weight: 600; }
.footer-bottom { text-align: center; margin-top: 20px; font-size: .78rem; color: rgba(255,255,255,.35); }

/* ─── BARRA INFERIOR FIJA (móvil) ─────────────────────────── */
.mobile-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 18px;
  background: rgba(11,27,98,.97); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(100%); transition: transform .3s ease;
}
.mobile-sticky-bar.visible { transform: translateY(0); }
.msb-price { color: #fff; }
.msb-price-num { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1; }
.msb-price-label { font-size: .66rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.msb-cta { padding: 10px 20px; font-size: .85rem; }
@media (max-width: 760px) { .mobile-sticky-bar { display: flex; } }
body.has-sticky-bar { padding-bottom: 64px; }
@media (min-width: 761px) { body.has-sticky-bar { padding-bottom: 0; } }

/* ─── RESPONSIVE (general) ───────────────────────────────── */
@media (max-width: 1024px) {
  .maintenance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding: 112px 0 56px; }
  .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  section { padding-left: 0; padding-right: 0; }
  .forwho, .deliverables, .maintenance, .close { padding: 72px 0; }
  .honesty { padding: 0 0 72px; }
  .plan-facts { padding: 0 0 40px; }
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--grad-blue);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 500;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-3px); }
#scroll-top svg { color: #fff; }
@media (max-width: 760px) { #scroll-top { bottom: 80px; } }
