:root {
  /* Colores muestreados de landing-xcribo.png */
  --navy: #0a0e74; /* índigo profundo: títulos, íconos, texto, botones (de #000672) */
  --navy-deep: #070a55;
  --royal: #0f3df2; /* cobalto: badges, conectores, íconos de chips (de #0340fa) */
  --ink: #2b2f56;
  --muted: #7c80a6; /* descripciones (azul-gris suave) */
  --bg: #ffffff;
  --tint: #f3f7fe; /* panel de pasos */
  --badge-bg: #eef1fb; /* círculo pálido de íconos */
  --band: #eef1fc; /* banda CTA */
  --card: #ffffff;
  --border: #e8eaf6;
  --border-soft: #eef0f8;
  --success: #22b06b;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 24px 64px -30px rgba(10, 14, 116, 0.3);
  --shadow-sm: 0 12px 32px -20px rgba(10, 14, 116, 0.28);
  --maxw: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
section[id] {
  scroll-margin-top: 72px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  padding: 78px 0;
}
.head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  margin-bottom: 14px;
}
.head p {
  color: var(--muted);
  font-size: 0.9rem;
}
.head p.head-strong {
  color: var(--navy);
  font-weight: 600;
  margin-top: 12px;
}
.icn {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Botones — rectángulo redondeado (modelo) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1.6px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--navy);
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  transition: 0.15s;
}
.nav-links a:hover {
  opacity: 0.62;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-right .login {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
}
.burger svg {
  width: 26px;
  height: 26px;
}

/* Hero */
.hero {
  padding: 62px 0 54px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 38px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  font-weight: 600;
}
.hero h1 .l2,
.head h2 .l2 {
  display: block;
}
.hero .lead {
  color: var(--muted);
  font-size: 1.07rem;
  margin: 22px 0 28px;
  max-width: 455px;
}
.hero-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: var(--navy);
  font-weight: 600;
}
.chip .icn {
  width: 17px;
  height: 17px;
  color: var(--royal);
  flex: none;
}
.hero-art img,
.hero-art video {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  outline: 0;
  mix-blend-mode: multiply;
}
/* Video-historia del hero: solo en escritorio ancho (>=1140px), donde el hero mide 1064px y coincide cuadro a cuadro.
   Mientras corre, el hero HTML queda oculto (la página arranca con el video); al terminar el video se desvanece
   y queda el hero HTML real, idéntico al último cuadro. En pantallas más angostas, con "reducir movimiento"
   o sin JS, el hero se ve como siempre y el video no se descarga.
   Fuente de la animación: video-src/hero-story.html (ver video-src/README.md). */
.hero-story,
.hero-art .hero-still {
  display: none;
}
@media (min-width: 1140px) and (prefers-reduced-motion: no-preference) {
  .hero-grid {
    position: relative;
  }
  .js .story-playing .hero-story {
    display: block;
    position: absolute;
    inset: 0 28px;
    width: calc(100% - 56px);
    height: 100%;
    object-fit: cover;
    z-index: 3;
    background: #fff;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }
  .hero-story.out {
    opacity: 0;
  }
  .js .hero-grid.story-playing > :not(.hero-story) {
    visibility: hidden;
  }
  .hero-art video {
    display: none;
  }
  .hero-art .hero-still {
    display: block;
  }
}

/* Botón flotante de WhatsApp */
.contact-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -10px rgba(10, 14, 116, 0.6);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.contact-float:hover {
  background: var(--navy-deep);
  transform: translateY(-2px) scale(1.04);
}
.contact-float svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.contact-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--navy);
  animation: contact-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes contact-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-float::after {
    animation: none;
    display: none;
  }
}
@media (max-width: 720px) {
  .contact-float {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* Tarjetas con badge a la izquierda (problema) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: 0.2s;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.badge-ico {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--badge-bg);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex: none;
}
.badge-ico .icn {
  width: 30px;
  height: 30px;
}
.pcard h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 4px 0 7px;
}
.pcard p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pasos */
.steps-panel {
  background: var(--tint);
  border-radius: 26px;
  padding: 54px 36px 46px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
  margin-top: 6px;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 6px;
}
.step-badge {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
}
.step-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fbfdff;
  border: 1px solid #e4ebf8;
  display: grid;
  place-items: center;
  color: var(--navy);
  box-shadow: 0 6px 18px -12px rgba(10, 14, 116, 0.4);
}
.step-circle .icn {
  width: 34px;
  height: 34px;
}
.step-num {
  position: absolute;
  top: -6px;
  left: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-body);
  box-shadow: 0 2px 6px rgba(15, 61, 242, 0.4);
}
.step h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.step p {
  color: var(--muted);
  font-size: 0.9rem;
}
/* conector con flecha */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -7px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--royal);
  border-right: 2px solid var(--royal);
  transform: rotate(45deg);
  opacity: 0.55;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 62%;
  right: 8%;
  height: 2px;
  background: var(--royal);
  opacity: 0.3;
}

/* Dimensiones / comunidad: ícono + título en fila, sin caja */
.feat-grid {
  display: grid;
  gap: 34px;
}
.fg-4 {
  grid-template-columns: repeat(4, 1fr);
}
.fg-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 940px;
  margin: 0 auto;
}
.feat .fhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.feat .fhead .icn {
  width: 30px;
  height: 30px;
  color: var(--navy);
  flex: none;
}
.feat h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.feat p {
  color: var(--muted);
  font-size: 0.9rem;
}
.fg-3 .feat {
  text-align: center;
}
.fg-3 .feat .fhead {
  flex-direction: column;
  gap: 8px;
}

/* Recursos: heading izq + 4 tarjetas */
.res-split {
  display: grid;
  grid-template-columns: 0.86fr 2.14fr;
  gap: 42px;
  align-items: center;
}
.res-split .intro h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.05rem);
  margin-bottom: 13px;
}
.res-split .intro p {
  color: var(--muted);
  font-size: 0.9rem;
}
.res-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  transition: 0.2s;
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.rcard .icn {
  width: 34px;
  height: 34px;
  color: var(--navy);
  margin-bottom: 14px;
}
.rcard h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.rcard p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Dashboard split */
.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 52px;
  align-items: center;
}
.split .intro h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  margin-bottom: 14px;
}
.split .intro p {
  color: var(--muted);
  font-size: 0.9rem;
}
.flist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
}
.flist li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.flist li .icn {
  width: 21px;
  height: 21px;
  color: var(--royal);
  flex: none;
  margin-top: 1px;
  stroke-width: 2.4;
}

/* Captura del panel de análisis */
.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  line-height: 0;
}
.shot img {
  width: 100%;
  display: block;
}

/* Indicadores institucionales (panel oscuro) */
#instituciones {
  padding-bottom: 54px;
}
.inst-panel {
  background: var(--navy);
  border-radius: 26px;
  padding: 54px 48px 48px;
  color: #c9cdf2;
  position: relative;
  overflow: hidden;
}
.inst-panel::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(15, 61, 242, 0.55),
    rgba(15, 61, 242, 0) 70%
  );
  pointer-events: none;
}
.inst-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}
.inst-top .btn {
  flex: none;
}
.inst-head {
  flex: 1 1 auto;
  max-width: 660px;
}
.inst-head h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3.3vw, 2.25rem);
  margin-bottom: 14px;
}
.inst-head p {
  font-size: 0.9rem;
}
.inst-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 18px 16px;
  transition: 0.2s;
}
.stat:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.5;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: var(--band);
  transform: translateY(-1px);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.foot {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}
.foot img.flogo {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
}
.foot .desc {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 300px;
}
.foot-cols {
  display: flex;
  gap: 60px;
  justify-content: center;
}
.foot-col h2 {
  font-family: var(--font-body);
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 700;
}
.foot-col a {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 9px;
  transition: 0.15s;
}
.foot-col a:hover {
  color: var(--navy);
}
.foot-bottom .made {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.foot-bottom .heart {
  width: 13px;
  height: 13px;
  color: var(--muted);
  opacity: 0.7;
  flex: none;
}
.foot-bottom {
  border-top: 1px solid var(--border-soft);
  margin-top: 34px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 10px 30px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .nav-right .login {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav.open .nav-right .login {
    display: inline;
  }
  .fg-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .res-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .res-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .step::after,
  .step::before {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .hero-art {
    max-width: 460px;
    margin: 0 auto;
  }
  .inst-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .nav-links,
  .nav-right .login {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav.open .nav-right .login {
    display: inline;
  }
  .section {
    padding: 54px 0;
  }
  .cards-3,
  .fg-4,
  .fg-3,
  .res-cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps-panel {
    padding: 38px 22px;
  }
  .inst-panel {
    padding: 40px 22px 34px;
  }
  #instituciones {
    padding-bottom: 35px;
  }
  .inst-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat {
    padding: 20px 16px;
  }
  .inst-top {
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
  }
  .foot,
  .foot-bottom {
    grid-template-columns: 1fr;
  }
  .foot-cols {
    justify-content: flex-start;
  }
  .foot-bottom .made {
    justify-content: flex-start;
  }
  .inst-top .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 13px 16px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  footer {
    padding-bottom: 96px;
  }
}
@media (max-width: 420px) {
  .inst-top .btn svg {
    display: none;
  }
}

/* Entrada suave al hacer scroll (solo si hay JS y el usuario no pidió menos movimiento) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
