/* ==========================================================================
   NEOMYPE — Hoja de estilos principal
   Paleta tomada del "Plan de Lanzamiento y Estrategia de Contenidos"
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #0B1B33;   /* texto principal, fondos oscuros ("NEO") */
  --navy-800: #13294B;
  --blue-600: #0A6EBD;   /* azul corporativo ("MYPE") */
  --blue-500: #1C86D8;
  --blue-100: #E6F2FB;   /* cajas destacadas */
  --blue-50:  #F3F8FD;
  --green-500: #1FA67A;  /* crecimiento / indicadores positivos */
  --amber-500: #F2A93B;  /* alertas / señales */
  --red-500:  #D9534F;

  /* Neutros */
  --ink: #0B1B33;
  --text: #33415C;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;

  /* Sistema */
  --font-head: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(11, 27, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 27, 51, .28);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #C9D6E8; }
.section--dark h2,
.section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 7px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.section--dark .eyebrow { background: rgba(28,134,216,.18); color: #7CC0F2; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section--dark .section-head p { color: #9FB2CC; }

.hl { color: var(--blue-600); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -8px rgba(10,110,189,.6); }
.btn--primary:hover { background: var(--blue-500); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(11,27,51,.3); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo__mark { width: 38px; height: 38px; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: var(--navy-900); line-height: 1; }
.logo__text span { color: var(--blue-600); }
.logo__tag { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav a:hover { color: var(--blue-600); text-decoration: none; }
.nav .btn { padding: 11px 20px; color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 110px;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(28,134,216,.16), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, rgba(31,166,122,.10), transparent 60%),
    var(--bg);
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__trust { display: flex; align-items: center; gap: 14px; font-size: .92rem; color: var(--muted); }
.hero__trust img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); }
.hero__trust strong { color: var(--ink); display: block; }

/* Tablero ilustrativo */
.dash {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.dash__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash__title { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.dash__badge { font-size: .75rem; font-weight: 700; color: var(--green-500); background: #E5F6EF; padding: 5px 10px; border-radius: 20px; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--bg-soft); border-radius: 12px; padding: 14px; }
.kpi small { display: block; font-size: .72rem; color: var(--muted); }
.kpi b { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink); }
.kpi em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--green-500); }
.dash__chart { height: 170px; }
.dash__float {
  position: absolute;
  left: -34px;
  bottom: -30px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: .88rem;
}
.dash__float b { font-family: var(--font-head); font-size: 1.5rem; color: #7CC0F2; }

/* ---------- Franja de dato ---------- */
.stat-band { background: var(--navy-900); color: #fff; padding: 60px 0; }
.stat-band .container { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.stat-band__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; color: #7CC0F2; }
.stat-band p { font-size: 1.3rem; line-height: 1.5; margin: 0; color: #DCE6F3; }
.stat-band strong { color: #fff; }

/* ---------- Tarjetas ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 22px;
}
.card__icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); }
.card ul { margin: 0 0 24px; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .95rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--green-500);
  border-bottom: 2.5px solid var(--green-500);
  transform: rotate(-45deg);
}
.card__link { margin-top: auto; font-weight: 700; font-family: var(--font-head); }

.card--featured { background: var(--navy-900); border-color: var(--navy-900); color: #C9D6E8; }
.card--featured h3 { color: #fff; }
.card--featured p { color: #9FB2CC; }
.card--featured .card__icon { background: rgba(124,192,242,.15); color: #7CC0F2; }
.card--featured .card__link { color: #7CC0F2; }

/* ---------- Señales ---------- */
.signals { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.signal {
  display: flex; gap: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.signal__n {
  flex: 0 0 44px; height: 44px;
  border-radius: 50%;
  background: #FEF4E3; color: #B46F0B;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.signal h3 { font-size: 1.08rem; margin-bottom: 4px; }
.signal p { margin: 0; font-size: .95rem; color: var(--muted); }

.video-card {
  position: relative;
  aspect-ratio: 9 / 13;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-800), var(--blue-600));
  color: #fff;
  padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}
.video-card::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern-grid.svg") center / 40px repeat;
  opacity: .12;
}
.video-card > * { position: relative; }
.video-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(255,255,255,.18);
}
.video-card__play svg { width: 26px; height: 26px; color: var(--blue-600); margin-left: 4px; }
.video-card small { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .72rem; color: #7CC0F2; }
.video-card h3 { color: #fff; font-size: 1.45rem; margin: 6px 0 0; }

/* ---------- Método ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: rgba(124,192,242,.35);
  display: block;
  margin-bottom: 14px;
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 44px; height: 3px; background: #7CC0F2; border-radius: 3px;
}
.step p { color: #9FB2CC; font-size: .96rem; }

/* ---------- Fundador ---------- */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.founder__photo { position: relative; }
.founder__photo img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.founder__seal {
  position: absolute; right: -20px; bottom: 30px;
  background: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600; color: var(--ink);
}
.founder__seal img { width: 34px; height: 34px; box-shadow: none; border-radius: 0; aspect-ratio: auto; }
.quote {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  border-left: 4px solid var(--blue-600);
  padding-left: 26px;
  margin: 0 0 28px;
}
.founder__role { color: var(--blue-600); font-weight: 600; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 32px; }
.chip { font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 30px; background: var(--blue-50); color: var(--navy-800); border: 1px solid var(--blue-100); }

/* ---------- Recursos / Blog ---------- */
.post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post__tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.post__tag--edu { color: var(--blue-600); }
.post__tag--tool { color: var(--green-500); }
.post__tag--vision { color: #7A4FD1; }
.post h3 { font-size: 1.15rem; }
.post h3 a { color: var(--ink); }
.post p { font-size: .95rem; color: var(--muted); }
.post__meta { margin-top: auto; font-size: .82rem; color: var(--muted); }

/* ---------- CTA / Formulario ---------- */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-600) 140%);
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  color: #C9D6E8;
  overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(124,192,242,.08);
}
.cta h2 { color: #fff; }
.cta__list { list-style: none; padding: 0; margin: 26px 0 0; }
.cta__list li { display: flex; gap: 12px; margin-bottom: 14px; }
.cta__list svg { flex: 0 0 22px; color: #7CC0F2; }

.form { position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg); }
.form h3 { margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form__ok.is-visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9FB2CC; padding: 72px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer .logo__text { color: #fff; }
.site-footer .logo__text span { color: #7CC0F2; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #9FB2CC; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  color: #fff;
}
.social a:hover { background: var(--blue-600); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; }

/* ---------- Artículo ---------- */
.article-hero { padding: 70px 0 40px; background: var(--bg-soft); }
.article-hero .container,
.article .container { max-width: 800px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.article-meta img { width: 40px; height: 40px; border-radius: 50%; }
.article { padding: 50px 0 90px; }
.article h2 { font-size: 1.6rem; margin-top: 1.6em; }
.article p, .article li { font-size: 1.08rem; }
.callout { background: var(--blue-50); border-left: 4px solid var(--blue-600); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 30px 0; }
.callout p:last-child { margin: 0; }
.formula { font-family: var(--font-head); font-weight: 700; color: var(--ink); background: #fff; border: 1px dashed var(--blue-600); border-radius: 10px; padding: 14px 18px; display: inline-block; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px -8px rgba(37,211,102,.7);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border: 0; }
  .nav-toggle { display: block; }
  .hero .container,
  .signals,
  .founder,
  .cta { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 90px; }
  .dash__float { left: 12px; }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-band .container { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .cta { padding: 40px 26px; }
  .founder__seal { right: 12px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .logo__tag { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .dash__kpis { grid-template-columns: 1fr 1fr; }
  .dash__kpis .kpi:last-child { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
}
