/* SENTRA Analytics — landing. Tema claro premium (navy + cyan) con secciones
   oscuras inmersivas. Tipografía: Space Grotesk (títulos) + Inter (texto). */
:root {
  --ink: #0f2036;
  --ink-soft: #52657c;
  --ink-faint: #8497ab;
  --line: #e4ecf5;
  --line-soft: #eef3f9;
  --paper: #ffffff;
  --tint: #f5f9fd;
  --cyan: #12a0dd;
  --cyan-deep: #0a76a6;
  --cyan-soft: #e7f4fb;
  --navy: #0a1626;
  --navy-2: #0e1f36;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --hd: 'Space Grotesk', system-ui, sans-serif;
  --bd: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(15, 32, 54, .04), 0 12px 32px rgba(15, 32, 54, .08);
  --shadow-lg: 0 30px 80px rgba(10, 22, 38, .18);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--bd);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
/* Evita el "blowout" de grids/flex por el ancho intrínseco de videos/imágenes:
   los ítems pueden encoger por debajo de su contenido en vez de ensanchar la fila. */
.hero-in, .split, .videos, .videos-col, .cards, .steps, .votegrid, .stats-in { min-width: 0; }
.hero-in > *, .split > *, .videos > *, .videos-col > *, .cards > *, .steps > *, .votegrid > * { min-width: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--hd); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--bd); font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 11px 20px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: var(--cyan-deep); color: #fff; box-shadow: 0 8px 20px rgba(10, 118, 166, .20); }
.btn-primary:hover { background: #095f86; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 118, 166, .28); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--cyan); color: var(--cyan-deep); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--cyan-deep); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 32, 54, .06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand-logo { height: 34px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .18s; }
.nav-links a:hover { color: var(--cyan-deep); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 20px; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); }
.nav-mobile a { padding: 12px 4px; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.nav-mobile .btn { margin-top: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; background: linear-gradient(180deg, #fbfdff 0%, #eef5fc 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb-a { width: 520px; height: 520px; background: radial-gradient(circle, #7cd4ff, transparent 65%); top: -160px; right: -120px; animation: float1 14s ease-in-out infinite; }
.orb-b { width: 460px; height: 460px; background: radial-gradient(circle, #b9a8ff, transparent 65%); bottom: -180px; left: -140px; animation: float2 17s ease-in-out infinite; }
.grid-fade { position: absolute; inset: 0; background-image: linear-gradient(rgba(15, 32, 54, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 32, 54, .05) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%); }
@keyframes float1 { 50% { transform: translate(-30px, 40px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(40px, -30px) scale(1.1); } }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--cyan-deep); background: var(--cyan-soft); border: 1px solid #bfe4f6; padding: 6px 14px; border-radius: 30px; letter-spacing: .01em; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 20px 0 18px; }
.grad { background: linear-gradient(120deg, #12a0dd, #6d5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* browser mockup */
.hero-visual { position: relative; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform: perspective(1600px) rotateY(-7deg) rotateX(3deg); transition: transform .5s ease; }
.hero-visual:hover .browser { transform: perspective(1600px) rotateY(0deg) rotateX(0deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f4f8fc; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6e0ec; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 10px; font-size: 12px; color: var(--ink-faint); font-family: var(--hd); }
.browser-video { width: 100%; height: auto; display: block; background: #0a1626; }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.chip-1 { top: 18%; left: -34px; animation: bob 5s ease-in-out infinite; }
.chip-2 { bottom: 12%; right: -26px; animation: bob 6s ease-in-out infinite .6s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 38px 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.stat b { font-family: var(--hd); font-size: 44px; font-weight: 700; color: var(--ink); line-height: 1; background: linear-gradient(120deg, #12a0dd, #6d5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat b i { font-style: normal; }
.stat span { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- sections ---------- */
/* Insurance: ninguna sección puede provocar scroll horizontal de página. */
.hero, .section, .stats, .cta, .foot { overflow-x: clip; }
.section { padding: 92px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: radial-gradient(1200px 600px at 70% -10%, #14304f, transparent), linear-gradient(180deg, #0a1626, #0e1f36); color: #dce8f4; }
.section-dark h2 { color: #fff; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.head-center h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 14px 0 12px; }
.sub { color: var(--ink-soft); font-size: 17px; }
.section-dark .sub { color: #9fb6cd; }
.kicker { display: inline-block; font-family: var(--hd); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-deep); }
.kicker-cyan { color: #4fc3f7; }
.kicker-warn { color: #c2410c; }
.kicker-ok { color: #15803d; }

/* problema / solución */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; }
.split-center { align-items: center; }
.split h2 { font-size: clamp(23px, 2.6vw, 31px); margin: 12px 0 18px; }
.xlist, .clist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.xlist li, .clist li { position: relative; padding-left: 32px; color: var(--ink-soft); font-size: 15.5px; }
.xlist li::before { content: '✕'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: #fef2f2; color: #dc2626; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.clist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: #ecfdf3; color: #15803d; font-size: 12px; display: grid; place-items: center; font-weight: 700; }
.clist li b, .xlist li em { color: var(--ink); font-style: normal; }

/* features cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfe6f5; }
.ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 26px; height: 26px; }
.ic-blue { background: #e7f4fb; color: #1187c3; } .ic-red { background: #fef2f2; color: #e0453f; } .ic-cyan { background: #e0f7ff; color: #0a91c0; }
.ic-amber { background: #fffbeb; color: #c7841a; } .ic-violet { background: #f0ecfe; color: #6d5cf6; } .ic-green { background: #ecfdf3; color: #12a05a; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }

/* videos */
/* Slider de videos (auto-avance) — un video a la vez, elegante. */
.slider { position: relative; max-width: 940px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #0d1c30; border: 1px solid rgba(255, 255, 255, .08); box-shadow: var(--shadow-lg); }
.slider-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }
.slide { position: relative; flex: 0 0 100%; min-width: 0; }
.slide video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #06101d; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 46px 22px 18px; font-size: 14px; color: #cddcec; background: linear-gradient(transparent, rgba(5, 12, 24, .88)); }
.slide figcaption b { color: #fff; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 18, 34, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .2s, border-color .2s; }
.slider-arrow:hover { background: rgba(8, 18, 34, .82); border-color: #4fc3f7; }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .38); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots button.on { width: 24px; border-radius: 5px; background: var(--cyan); }
@media (max-width: 560px) { .slide figcaption { font-size: 12.5px; padding: 34px 16px 30px; } .slider-arrow { width: 36px; height: 36px; font-size: 19px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--hd); font-weight: 700; font-size: 19px; color: #fff; background: linear-gradient(135deg, #12a0dd, #0a76a6); margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14px; }

/* vote grid */
.votegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.votegrid--four { grid-template-columns: repeat(4, 1fr); }
.vote { position: relative; padding: 22px 22px 22px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); overflow: hidden; }
.vote::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.vote .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); display: inline-block; box-shadow: 0 0 16px var(--c); }
.vote b { display: block; font-family: var(--hd); font-size: 18px; color: #fff; margin: 10px 0 3px; }
.vote small { color: #7f97af; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.vote p { color: #b6c7d9; font-size: 14px; margin-top: 10px; }

/* app */
.app-visual { position: relative; display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.app-badge { position: relative; z-index: 1; width: 212px; height: 212px; border-radius: 48px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 26px 60px rgba(8, 20, 38, .18), 0 6px 16px rgba(8, 20, 38, .10); animation: bob 6s ease-in-out infinite; }
.app-badge img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
/* Brillo superior sutil para dar relieve de ícono de app. */
.app-badge::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 40%); }
.app-glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 160, 221, .35), transparent 65%); filter: blur(30px); }

/* cta */
.cta { padding: 96px 0; background: radial-gradient(1000px 500px at 50% -20%, #14304f, transparent), linear-gradient(180deg, #0a1626, #0e1f36); color: #fff; text-align: center; }
.cta-in { max-width: 720px; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); color: #fff; }
.cta p { color: #9fb6cd; font-size: 18px; margin: 16px auto 30px; max-width: 560px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-line { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.cta .btn-line:hover { border-color: #4fc3f7; color: #4fc3f7; }

/* footer */
.foot { background: #071019; color: #93a6ba; padding: 54px 0 30px; }
.foot-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-logo { height: 34px; filter: brightness(0) invert(1); opacity: .92; }
.foot-tag { margin-top: 12px; font-size: 14px; max-width: 320px; }
.foot-tech { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-tech span { font-size: 12px; font-weight: 600; color: #b9c8d8; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 5px 13px; }
.foot-legal { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 12.5px; color: #63768a; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .float-chip, .app-badge { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .browser { transform: none; }
  .float-chip { display: none; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .votegrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .cards, .steps, .votegrid { grid-template-columns: 1fr; }
  .stat b { font-size: 36px; }
  .hero h1 { font-size: 32px; }
  .foot-in, .foot-legal { flex-direction: column; align-items: flex-start; }
}
