/* ===== Smarthics — hoja de estilos =====
   Paleta tomada del logotipo: índigo → azul → turquesa sobre blanco. */

:root {
  --navy: #0a0e1a;
  --navy-2: #101a33;
  --indigo: #2b46c7;
  --blue: #2e7fd6;
  --teal: #35c6d4;
  --ink: #1c2333;
  --muted: #5b6478;
  --bg: #ffffff;
  --bg-alt: #f4f8fc;
  --line: #e3eaf3;
  --grad: linear-gradient(100deg, var(--indigo), var(--blue) 55%, var(--teal));
  --radius: 18px;
  --shadow: 0 10px 40px rgba(43, 70, 199, 0.10);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.lead { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(46, 127, 214, 0.09);
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow.center { display: table; margin-inline: auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Botones ===== */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.95rem;
  padding: 0.65rem 1.3rem; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(43, 70, 199, 0.35);
}
.btn--outline { border-color: var(--indigo); color: var(--indigo); }
.btn--outline:hover { background: rgba(43, 70, 199, 0.06); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { color: var(--indigo); }
.btn--lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }

/* ===== Nav ===== */
/* Fondo sólido: los videos tienen fondo blanco y así se funden sin verse el recuadro */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.55rem 0;
}
.nav__brand { display: flex; align-items: center; }
.nav__video {
  height: 44px; width: auto; display: block;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__brand:hover .nav__video { transform: scale(1.06); }
.nav__brand:active .nav__video { transform: scale(0.96); }
.nav__links { display: flex; gap: 1.6rem; font-weight: 600; font-size: 0.95rem; }
.nav__links a { color: var(--muted); transition: color 0.15s; }
.nav__links a:hover { color: var(--indigo); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 4.5rem 0 3rem; overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 3rem; align-items: center;
}
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__copy .lead { margin-top: 1.2rem; max-width: 34rem; }
.hero__points {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  list-style: none; margin-top: 1.6rem;
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.hero__points li::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.hero__media { position: relative; }

/* Videos seamless: sin marco, sin sombra — el fondo blanco del video
   se funde con el de la página y la animación parece parte del layout */
.video-seamless {
  display: block; width: 100%; height: auto;
  background: #fff; cursor: pointer;
}
.video-seamless--cta { max-width: 460px; margin: 0 auto 0.5rem; }
.mediacaption {
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  text-align: center; margin-top: 0.6rem;
}

/* ===== Secciones ===== */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--line { border-top: 1px solid var(--line); }
.section h2 { margin-top: 0.2rem; }
.section .lead.center { margin-top: 0.5rem; }

/* ===== Cards de áreas ===== */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem; margin-top: 2.6rem;
}
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(53, 198, 212, 0.5);
}
.card__icon {
  font-size: 1.6rem; width: 54px; height: 54px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(43,70,199,0.10), rgba(53,198,212,0.14));
  border-radius: 14px; margin-bottom: 1rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.cards--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px; margin-inline: auto;
}
.card__tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
  background: rgba(46, 127, 214, 0.09);
  padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.6rem;
}
.card__soon {
  display: inline-block; margin-top: 1rem;
  font-size: 0.8rem; font-weight: 700; color: var(--teal);
}
.card__soon::before { content: "● "; font-size: 0.6rem; vertical-align: 2px; }

/* ===== Split metodología ===== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.split__media { position: relative; }
.steps { margin-top: 1.4rem; padding-left: 1.2rem; display: grid; gap: 0.7rem; }
.steps li { color: var(--muted); }
.steps li::marker { color: var(--teal); font-weight: 800; }
.steps strong { color: var(--ink); }

/* ===== Banda oscura ===== */
.dark {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(53, 198, 212, 0.15), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(43, 70, 199, 0.25), transparent 60%),
    var(--navy);
  color: #fff; padding: 5rem 0; text-align: center;
}
.dark__icon { height: 84px; margin: 0 auto 1.2rem; }
.dark__head h2 { display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap; }
.dark__wordmark { height: 1.6em; width: auto; transform: translateY(0.14em); }
.dark .lead { color: #b8c2d8; max-width: 620px; margin: 0.8rem auto 0; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius); padding: 1.6rem 1rem;
}
.stat__num {
  display: block; font-size: 2.1rem; font-weight: 800;
  background: linear-gradient(100deg, #7d95ff, #4db9ff 55%, #52e5f0);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat__label { color: #b8c2d8; font-size: 0.9rem; font-weight: 600; }

/* ===== CTA ===== */
.cta { padding-bottom: 6rem; }
.ctaform {
  display: flex; gap: 0.7rem; justify-content: center;
  flex-wrap: wrap; margin-top: 1.8rem;
}
.ctaform input {
  font-family: var(--font); font-size: 1rem;
  padding: 0.85rem 1.2rem; min-width: 300px;
  border: 2px solid var(--line); border-radius: 12px;
  outline: none; transition: border-color 0.15s;
}
.ctaform input:focus { border-color: var(--teal); }
.finenote { color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
.finenote a { color: var(--indigo); font-weight: 600; }
.finenote a:hover { text-decoration: underline; }
.footer__bottom a { color: #b8c2d8; }
.footer__bottom a:hover { color: #52e5f0; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #b8c2d8; padding: 3.5rem 0 1.5rem; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__icon { height: 44px; margin-bottom: 0.7rem; }
.footer__wordmark { height: 20px; width: auto; margin-bottom: 0.8rem; }
.footer__brand p { font-size: 0.92rem; }
.footer__col { display: grid; gap: 0.5rem; align-content: start; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.3rem; }
.footer__col a { font-size: 0.92rem; transition: color 0.15s; }
.footer__col a:hover { color: #52e5f0; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 2.5rem; padding-top: 1.4rem;
  font-size: 0.82rem; text-align: center;
}

/* ===== Animaciones de aparición (scroll reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger automático en grillas */
.cards .reveal:nth-child(2), .stats .reveal:nth-child(2) { --d: 0.08s; }
.cards .reveal:nth-child(3), .stats .reveal:nth-child(3) { --d: 0.16s; }
.cards .reveal:nth-child(4), .stats .reveal:nth-child(4) { --d: 0.24s; }
.cards .reveal:nth-child(5) { --d: 0.32s; }
.cards .reveal:nth-child(6) { --d: 0.4s; }

/* Éxito del formulario */
.ctasuccess { margin-top: 1.8rem; }
.ctasuccess__title { font-size: 1.5rem; font-weight: 800; }
.ctasuccess[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav__video { transition: none; }
}

/* ===== Páginas legales ===== */
.legal { padding: 3.5rem 0 5rem; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.4rem; }
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink); font-size: 0.98rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin: 0.6rem 0; display: grid; gap: 0.4rem; }
.legal a { color: var(--indigo); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal .backlink { display: inline-block; margin-bottom: 1.6rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.legal .backlink:hover { color: var(--indigo); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-top: 2.5rem; }
  .hero__media { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split__media { order: -1; }
}
@media (max-width: 640px) {
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 1.2rem 5%;
  }
  .nav__video { height: 36px; }
  .cards { grid-template-columns: 1fr; }
  .ctaform input { min-width: 0; width: 100%; }
  .ctaform .btn { width: 100%; }
}
