/* ==========================================================================
   Nevitalis — hoja de estilos del sitio (sin dependencias)
   ========================================================================== */

:root {
  --navy: #0f1b45;
  --navy-2: #16255c;
  --ink: #1a2238;
  --text: #3d4660;
  --muted: #667089;
  --line: #e3e8f0;
  --soft: #f5f8fc;
  --soft-2: #eef4fb;
  --white: #ffffff;
  --brand: #2f7bea;
  --brand-dark: #1c5fc4;
  --brand-light: #9ee2ff;

  /* Color de identificación por producto */
  --centalis: #3c55b2;
  --vizor: #425d70;
  --safetalis: #008c95;
  --alerta: #00a98f;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 69, .04), 0 8px 24px rgba(15, 27, 69, .06);
  --wrap: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #c9d3ea; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--text); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 14px;
}
.section--navy .eyebrow, .contact .eyebrow { color: var(--brand-light); }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Botones ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header ------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; }
.brand img { width: 34px; height: auto; }
.nav { margin-left: auto; }
.nav > ul:not(.nav-list) { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav > ul:not(.nav-list) > li > a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.nav > ul:not(.nav-list) > li > a:not(.btn):hover { background: var(--soft); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  align-items: stretch;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { display: flex; flex-direction: column; gap: 0; padding: 10px 12px; }
.nav .sub small { color: var(--muted); font-weight: 500; font-size: .82rem; }
.nav .lang { color: var(--muted); }
.nav a.btn { color: #fff; padding: 8px 16px; }
.nav a.btn:hover { background: var(--brand-dark); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; }
  .nav.is-open { display: block; }
  .nav > ul:not(.nav-list) { flex-direction: column; align-items: stretch; }
  .nav .sub { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav .btn { margin-top: 8px; }
}

/* Hero --------------------------------------------------------------------- */
.hero { padding: 72px 0 80px; background: linear-gradient(180deg, var(--soft-2) 0%, #fff 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .lead { max-width: 620px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { font-size: .85rem; font-weight: 600; color: var(--navy-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

.hero-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.hero-panel h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-panel a { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hero-panel a:hover { border-color: var(--brand); }
.hero-panel strong { display: block; font-size: 1.02rem; }
.hero-panel span.desc { font-size: .88rem; color: var(--muted); }
.hero-panel .arrow { color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* Franja de respaldo -------------------------------------------------------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.proof .wrap { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.proof-stat { display: flex; align-items: baseline; gap: 14px; }
.proof-stat b { font-size: 3.2rem; line-height: 1; font-weight: 800; color: var(--centalis); letter-spacing: -.03em; }
.proof-stat span { font-weight: 600; color: var(--ink); max-width: 200px; line-height: 1.35; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.proof li { font-weight: 600; color: var(--ink); font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--centalis); }
@media (max-width: 760px) { .proof .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* Ciclo de la información clínica ----------------------------------------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.cycle li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; counter-increment: step; }
.cycle li::before { content: "0" counter(step); display: block; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.cycle li:not(:last-child)::after {
  content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--brand); font-size: .8rem;
  display: grid; place-items: center; z-index: 1; border: 1px solid var(--line);
}
.cycle h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cycle p { font-size: .9rem; margin: 0; color: var(--muted); line-height: 1.5; }
@media (max-width: 1080px) { .cycle { grid-template-columns: repeat(3, 1fr); } .cycle li:nth-child(3)::after { display: none; } }
@media (max-width: 620px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle li:not(:last-child)::after { content: "↓"; right: auto; left: 24px; top: auto; bottom: -11px; transform: none; display: grid; }
}

/* Tarjetas de soluciones ---------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; overflow: hidden; }
.product-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--c); }
.product-card .kicker { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product-card h3 { font-size: 1.5rem; margin: 6px 0 4px; }
.product-card .tagline { font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.product-card ul { margin: 4px 0 20px; padding-left: 1.1em; font-size: .95rem; }
.product-card li { margin-bottom: 4px; }
.product-card .foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.product-card .for { font-size: .85rem; color: var(--muted); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--ink); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--brand-dark); }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 760px) { .products { grid-template-columns: 1fr; } }

/* Ecosistema / datos -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow li { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 12px 16px; color: #fff; font-weight: 600; }
.flow li small { margin-left: auto; font-weight: 500; color: #9fb0d6; font-size: .85rem; text-align: right; }
.flow li b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; background: rgba(158, 226, 255, .15); color: var(--brand-light); flex: none; }

.chain { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0 0; padding: 0; list-style: none; }
.chain li { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: .95rem; }
.chain li:not(:last-child)::after { content: "→"; margin-left: 14px; color: var(--brand-light); }

/* Grilla de atributos (seguridad, etc.) ------------------------------------ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .96rem; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-2); color: var(--brand-dark); margin-bottom: 14px; }
.feature .icon svg { width: 22px; height: 22px; }

/* Preguntas frecuentes ----------------------------------------------------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.5rem; font-weight: 500; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 22px; }
.faq details > div p:last-child { margin: 0; }

/* Contacto ----------------------------------------------------------------- */
.contact { background: var(--navy); color: #c9d3ea; }
.contact h2 { color: #fff; }
.contact .split { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; }
.contact-list li::before { content: "✓"; color: var(--brand-light); font-weight: 700; }
.contact a { color: var(--brand-light); }
.form { background: #fff; border-radius: 18px; padding: 28px; color: var(--text); }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row-2 { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #cfd7e4; border-radius: var(--radius-sm); padding: 12px 14px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 123, 234, .18); }
.form .g-recaptcha { margin: 4px 0 16px; }
.form small { display: block; color: var(--muted); font-size: .82rem; margin-top: 12px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: #0a1333; color: #9fb0d6; padding: 56px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d3ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { width: 180px; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* Páginas de producto ------------------------------------------------------ */
.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #b3bccd; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-dark); }

.product-hero { --c: var(--centalis); }
.product-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; margin-bottom: 14px; }
.product-name .dot { width: 12px; height: 12px; }
.product-hero .stat { display: flex; align-items: center; gap: 14px; margin-top: 32px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); max-width: 420px; }
.product-hero .stat b { font-size: 2.2rem; line-height: 1; color: var(--centalis); font-weight: 800; }
.product-hero .stat span { font-weight: 600; color: var(--ink); line-height: 1.35; }

.definition { border-left: 4px solid var(--c, var(--brand)); background: var(--soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; }
.definition h2 { font-size: 1.35rem; margin-bottom: 8px; }
.definition p { margin: 0; font-size: 1.08rem; color: var(--ink); }

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: p; }
.process li { counter-increment: p; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.process li::before { content: counter(p); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--centalis) 14%, #fff); color: #047a5e; font-size: .8rem; margin-bottom: 10px; }
.process li span { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr 1fr; } }

.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .capabilities { grid-template-columns: 1fr; } }
.capability { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.capability h2 { font-size: 1.3rem; margin-bottom: 10px; }
.capability ul { margin: 12px 0 0; font-size: .95rem; }
.capability li { margin-bottom: 4px; }

.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .audience { grid-template-columns: 1fr; } }
.audience div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.audience h3 { font-size: 1.05rem; margin-bottom: 6px; }
.audience p { font-size: .92rem; margin: 0; }

.trust-band { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; background: var(--navy); color: #c9d3ea; border-radius: 20px; padding: 40px; }
.trust-band h2 { color: #fff; margin-bottom: 8px; }
.trust-band p { margin: 0; }
.trust-band .big { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--centalis); letter-spacing: -.03em; }
@media (max-width: 700px) { .trust-band { grid-template-columns: 1fr; gap: 16px; padding: 28px; } }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .related { grid-template-columns: 1fr; } }
.related a { display: block; text-decoration: none; color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 20px; background: #fff; }
.related a:hover { border-color: var(--c); }
.related strong { display: block; color: var(--ink); font-size: 1.1rem; }
.related span { font-size: .92rem; }

/* ==========================================================================
   Identidad por producto (paletas oficiales)
   --p       primario oficial (identidad: logos, barras, iconos)
   --p-2     secundario oficial
   --p-bg    fondo oficial
   --p-btn   primario ajustado a contraste AA con texto blanco
   --p-text  primario ajustado a contraste AAA para texto
   ========================================================================== */

.theme-centalis {
  --p: #3c55b2; --p-2: #10b59e; --p-bg: #f2f5fc;
  --p-btn: #3c55b2; --p-text: #364ca0; --p-ink: #1e2b63; --p-font: "Kanit", var(--font);
}
.theme-vizor {
  --p: #425d70; --p-2: #d7e6f2; --p-bg: #f5f9fc;
  --p-btn: #425d70; --p-text: #3e586a; --p-ink: #263845; --p-font: "Space Grotesk", var(--font);
}
.theme-safetalis {
  --p: #008c95; --p-2: #11b6a2; --p-bg: #edf8f8;
  --p-btn: #00828a; --p-text: #005d63; --p-ink: #033e42; --p-font: "IBM Plex Sans", var(--font);
}
.theme-alerta {
  --p: #00a98f; --p-2: #087ba8; --p-bg: #edf9f6;
  --p-btn: #00836f; --p-text: #005e50; --p-ink: #063b36; --p-font: "Sora", var(--font);
}

[class*="theme-"] h1, [class*="theme-"] h2, [class*="theme-"] h3, [class*="theme-"] .p-font { font-family: var(--p-font); }
.theme-centalis h1, .theme-centalis h2, .theme-centalis h3 { font-weight: 600; letter-spacing: 0; }
.theme-vizor h1, .theme-vizor h2 { letter-spacing: -.03em; }
[class*="theme-"] .eyebrow { color: var(--p-text); }
[class*="theme-"] .btn--primary, [class*="theme-"] .nav a.btn { background: var(--p-btn); color: #fff; }
[class*="theme-"] .btn--primary:hover, [class*="theme-"] .nav a.btn:hover { background: var(--p-text); }
[class*="theme-"] .definition { border-left-color: var(--p); background: var(--p-bg); }
[class*="theme-"] .process li::before { background: var(--p-bg); color: var(--p-text); }
[class*="theme-"] .capability { border-top: 3px solid var(--p); }
[class*="theme-"] .section--tint { background: var(--p-bg); }
[class*="theme-"] .faq summary::after { color: var(--p-text); }
[class*="theme-"] .feature .icon { background: var(--p-bg); color: var(--p-text); }
[class*="theme-"] .contact { background: var(--p-ink); }
[class*="theme-"] .contact .eyebrow, [class*="theme-"] .contact-list li::before { color: var(--p-2); }
.theme-centalis .contact .eyebrow, .theme-centalis .contact-list li::before { color: #5fe0c9; }
.theme-alerta .contact .eyebrow, .theme-alerta .contact-list li::before { color: #6ee7d3; }
.theme-safetalis .contact .eyebrow, .theme-safetalis .contact-list li::before { color: #6ee7d3; }
[class*="theme-"] .contact a { color: #fff; }
[class*="theme-"] .trust-band { background: var(--p-ink); }
[class*="theme-"] .trust-band .big { color: var(--p-2); }

/* Hero de producto ----------------------------------------------------------- */
.p-hero { position: relative; overflow: hidden; padding: 56px 0 88px; color: #fff; }
.p-hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; z-index: 1; }
@media (max-width: 960px) { .p-hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.p-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.p-hero .lead { color: rgba(255, 255, 255, .88); max-width: 600px; }
.p-hero .breadcrumb, .p-hero .breadcrumb a { color: rgba(255, 255, 255, .75); }
.p-hero .breadcrumb li:not(:last-child)::after { color: rgba(255, 255, 255, .45); }
.p-hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.p-hero .btn--ghost:hover { border-color: #fff; color: #fff; }
.p-hero .btn--primary { background: #fff; color: var(--p-text); }
.p-hero .btn--primary:hover { background: var(--p-bg); }
.p-logo { display: block; height: 56px; width: auto; margin-bottom: 26px; }
.p-lockup { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font-family: var(--p-font); font-size: 1.9rem; font-weight: 600; line-height: 1; }
.p-lockup svg { width: 44px; height: 44px; flex: none; }
.p-lockup small { display: block; font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .8; margin-top: 6px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; }
.p-chips li { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.p-stat { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.p-stat b { font-family: var(--p-font); font-size: 2.2rem; line-height: 1; }
.p-stat span { font-weight: 600; line-height: 1.35; }
.by-nevitalis { font-size: .82rem; opacity: .8; margin-top: 18px; }

/* Centalis: primario #3C55B2 hacia secundario #10B59E */
.theme-centalis .p-hero {
  background:
    radial-gradient(60% 80% at 100% 100%, rgba(16, 181, 158, .75) 0%, rgba(16, 181, 158, 0) 70%),
    linear-gradient(135deg, #2c3f8a 0%, #3c55b2 50%, #2a7aa8 80%, #10b59e 100%);
}
.theme-centalis .p-stat b { color: #7ff0dd; }
.p-shot { background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 30px 60px rgba(20, 30, 80, .35); }
.p-shot img { border-radius: 12px; }

/* Vizor: pizarra #425D70 con acento #D7E6F2 */
.theme-vizor .p-hero {
  background:
    radial-gradient(50% 60% at 80% 40%, rgba(215, 230, 242, .22) 0%, rgba(215, 230, 242, 0) 70%),
    linear-gradient(160deg, #2b3d4a 0%, #425d70 100%);
}
.theme-vizor .p-hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 70%;
  background-image: linear-gradient(rgba(215, 230, 242, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 230, 242, .18) 1px, transparent 1px);
  background-size: 48px 48px; transform: perspective(600px) rotateX(62deg); transform-origin: top; opacity: .7;
}
.theme-vizor .p-stat b { color: #d7e6f2; }
.viewer { position: relative; border-radius: 20px; border: 1px solid rgba(215, 230, 242, .25); background: rgba(30, 44, 55, .75); padding: 16px; box-shadow: 0 30px 80px rgba(10, 20, 30, .4); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8rem; color: rgba(255, 255, 255, .78); margin-bottom: 10px; font-family: var(--p-font); }
.viewer-bar b { color: #fff; font-weight: 600; }
.viewer-bar .fmt { display: flex; gap: 6px; }
.viewer-bar .fmt span { padding: 2px 8px; border-radius: 6px; background: rgba(215, 230, 242, .18); color: #eef5fb; }
.viewer svg { width: 100%; height: auto; display: block; }
.viewer .spin { transform-origin: 50% 55%; animation: vz-spin 14s ease-in-out infinite alternate; }
@keyframes vz-spin { from { transform: scaleX(1); } to { transform: scaleX(.82) skewY(-3deg); } }
@media (prefers-reduced-motion: reduce) { .viewer .spin { animation: none; } }
.viewer-tools { display: flex; gap: 8px; margin-top: 10px; }
.viewer-tools span { flex: 1; text-align: center; font-size: .75rem; padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .8); }

/* Safetalis e Alerta: héroes claros sobre su fondo oficial */
.theme-safetalis .p-hero, .theme-alerta .p-hero { color: var(--p-ink); border-bottom: 1px solid var(--line); }
.theme-safetalis .p-hero {
  background:
    linear-gradient(rgba(0, 140, 149, .07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(0, 140, 149, .07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #edf8f8 0%, #fff 100%);
}
.theme-alerta .p-hero {
  background:
    radial-gradient(45% 60% at 90% 20%, rgba(0, 169, 143, .16) 0%, rgba(0, 169, 143, 0) 70%),
    radial-gradient(40% 50% at 70% 100%, rgba(8, 123, 168, .12) 0%, rgba(8, 123, 168, 0) 70%),
    #edf9f6;
}
.theme-safetalis .p-hero h1, .theme-alerta .p-hero h1 { color: var(--p-ink); }
.theme-safetalis .p-hero .lead, .theme-alerta .p-hero .lead { color: #334155; }
.theme-safetalis .p-hero .breadcrumb, .theme-safetalis .p-hero .breadcrumb a,
.theme-alerta .p-hero .breadcrumb, .theme-alerta .p-hero .breadcrumb a { color: #475569; }
.theme-safetalis .p-hero .breadcrumb li:not(:last-child)::after,
.theme-alerta .p-hero .breadcrumb li:not(:last-child)::after { color: #94a3b8; }
.theme-safetalis .p-hero .btn--primary, .theme-alerta .p-hero .btn--primary { background: var(--p-btn); color: #fff; }
.theme-safetalis .p-hero .btn--primary:hover, .theme-alerta .p-hero .btn--primary:hover { background: var(--p-text); }
.theme-safetalis .p-hero .btn--ghost, .theme-alerta .p-hero .btn--ghost { color: var(--p-ink); border-color: #c6dcdc; background: #fff; }
.theme-safetalis .p-chips li, .theme-alerta .p-chips li { background: #fff; border-color: #cfe5e3; color: var(--p-ink); }
.theme-safetalis .p-lockup, .theme-alerta .p-lockup { color: var(--p-ink); }

.ledger { background: #fff; border: 1px solid #cfe5e3; border-radius: 18px; box-shadow: 0 20px 50px rgba(3, 62, 66, .1); overflow: hidden; font-family: var(--p-font); }
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #005d63; color: #fff; font-size: .9rem; }
.ledger-head span { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: rgba(17, 182, 162, .25); color: #d6f5f0; }
.ledger ol { list-style: none; margin: 0; padding: 8px 20px 16px; }
.ledger li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed #d5e8e6; font-size: .9rem; color: var(--ink); }
.ledger li:last-child { border-bottom: 0; }
.ledger li i { width: 22px; height: 22px; border-radius: 50%; background: #edf8f8; color: #005d63; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 700; }
.ledger li small { display: block; color: #475569; font-size: .8rem; }
.ledger li time { font-size: .78rem; color: #475569; white-space: nowrap; }
.ledger-foot { display: flex; gap: 10px; align-items: center; padding: 12px 20px; background: #edf8f8; font-size: .8rem; color: #005d63; border-top: 1px solid #d5e8e6; }

.case { background: #fff; border-radius: 18px; border: 1px solid #cfe5e3; box-shadow: 0 24px 60px rgba(6, 59, 54, .12); padding: 22px; font-family: var(--p-font); color: var(--p-ink); }
.case-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.case-top b { display: block; font-size: 1.05rem; }
.case-top small { color: #475569; font-size: .82rem; }
.prio { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #e4f1f7; color: #05597a; white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: #cfe5e3; }
.steps li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: .9rem; }
.steps li i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cfe5e3; background: #fff; z-index: 1; }
.steps li.done i { background: #005e50; border-color: #005e50; }
.steps li.now i { background: #00a98f; border-color: #00a98f; box-shadow: 0 0 0 6px rgba(0, 169, 143, .2); }
.steps li.now span { font-weight: 700; }
.steps li time { font-size: .78rem; color: #475569; }
.steps li:not(.done):not(.now) span { color: #64748b; }

/* Identidad dentro del Home ---------------------------------------------------- */
.product-card h3 { font-family: var(--pf, var(--font)); }
.product-card .tagline { color: var(--ink); }
.product-card[data-p="centalis"] { --pf: "Kanit", var(--font); }
.product-card[data-p="vizor"] { --pf: "Space Grotesk", var(--font); }
.product-card[data-p="safetalis"] { --pf: "IBM Plex Sans", var(--font); }
.product-card[data-p="alerta"] { --pf: "Sora", var(--font); }
.product-card .p-mark { width: 40px; height: 40px; margin-bottom: 14px; }
.product-card[data-p="centalis"] .badge { background: #f2f5fc; }
.theme-vizor .p-hero { --vz-a: #ffffff; }

/* ==========================================================================
   Refinamiento visual: sistema de tarjetas y héroes planos
   Todas las tarjetas comparten borde, radio y sombra. El borde se tiñe con
   el color del producto (--p) o con el azul de Nevitalis en el Home.
   ========================================================================== */

:root {
  --card-radius: 16px;
  --card-line: color-mix(in srgb, var(--p, var(--brand)) 22%, #e6eaf1);
  --card-line-hover: color-mix(in srgb, var(--p, var(--brand)) 55%, #e6eaf1);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
  --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .08);
}
[class*="theme-"] {
  --card-line: color-mix(in srgb, var(--p) 22%, #e6eaf1);
  --card-line-hover: color-mix(in srgb, var(--p) 55%, #e6eaf1);
}

h1, h2 { font-weight: 700; letter-spacing: -.02em; }
.section { padding: 104px 0; }
.section-head { margin-bottom: 56px; }
.eyebrow { letter-spacing: .16em; font-size: .74rem; }

/* Tarjetas: un solo lenguaje ------------------------------------------------ */
.product-card, .feature, .capability, .audience div, .process li, .cycle li,
.related a, .hero-panel, .hero-panel a, .definition, .form, .ledger, .case,
.faq, .p-shot {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: border-color .2s var(--ease, ease), box-shadow .2s ease, transform .2s ease;
}
.product-card:hover, .related a:hover, .hero-panel a:hover {
  border-color: var(--card-line-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .product-card:hover, .related a:hover, .hero-panel a:hover { transform: none; }
}

/* Sin barras de color: el color vive en el borde, el icono y el punto */
.product-card::before { display: none; }
.product-card { --p: var(--c); padding: 32px; border-color: color-mix(in srgb, var(--c) 28%, #e6eaf1); }
.product-card:hover { border-color: color-mix(in srgb, var(--c) 60%, #e6eaf1); }
.product-card .badge { background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); }
.capability, [class*="theme-"] .capability { border-top: 1px solid var(--card-line); padding: 32px; }
.related a, .related a:hover { border-top-width: 1px; }
.related a { border-color: color-mix(in srgb, var(--c) 28%, #e6eaf1); padding: 24px; }
.related a:hover { border-color: color-mix(in srgb, var(--c) 60%, #e6eaf1); }
.related strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 10px; vertical-align: middle; }

/* "¿Qué es…?": marco completo en vez de barra lateral */
.definition, [class*="theme-"] .definition { border-left-width: 1px; border-radius: var(--card-radius); background: #fff; padding: 32px 36px; }
[class*="theme-"] .definition { background: var(--p-bg); }

/* Pasos y ciclo */
.process li, .cycle li { padding: 22px 20px; }
.cycle li:not(:last-child)::after { background: #fff; border-color: var(--card-line); }

/* Preguntas frecuentes dentro de una tarjeta */
.faq { padding: 8px 32px; }
.faq details:last-child { border-bottom: 0; }
.faq details { border-color: var(--card-line); }

/* Panel del Home */
.hero-panel { padding: 24px; border-radius: 20px; }
.hero-panel a { box-shadow: none; }

/* Formulario sobre fondo oscuro */
.form { border-color: rgba(255, 255, 255, .6); padding: 32px; }
.field input, .field textarea { border-color: #d3dae5; border-radius: 10px; }

/* Bandas oscuras */
.trust-band { border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; }
.flow li { border-radius: 12px; border-color: rgba(255, 255, 255, .14); }

/* Héroes planos, color bien definido ----------------------------------------- */
.hero { background: #f7f9fc; border-bottom: 1px solid #e6eaf1; }
.theme-centalis .p-hero { background: #3c55b2; }
.theme-vizor .p-hero { background: #425d70; }
.theme-vizor .p-hero::after { display: none; }
.theme-safetalis .p-hero { background: #edf8f8; }
.theme-alerta .p-hero { background: #edf9f6; }
.p-hero { padding: 72px 0 104px; }
.p-chips li { background: transparent; }
.theme-safetalis .p-chips li, .theme-alerta .p-chips li { background: #fff; }
.p-stat { background: transparent; border-color: rgba(255, 255, 255, .35); }
.theme-centalis .p-stat b { color: #fff; }
.theme-vizor .p-stat b { color: #fff; }
.p-shot { border-color: rgba(255, 255, 255, .5); padding: 12px; box-shadow: 0 24px 48px rgba(15, 23, 42, .22); }
.viewer { background: #3a5263; border-color: rgba(215, 230, 242, .3); border-radius: var(--card-radius); box-shadow: 0 24px 48px rgba(15, 23, 42, .22); }
.ledger, .case { box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.ledger-head { background: var(--p-text, #005d63); }

/* Enlace de cada tarjeta en el color de su producto (variante AAA) */
.product-card[data-p="centalis"] .link-arrow { color: #364ca0; }
.product-card[data-p="vizor"] .link-arrow { color: #3e586a; }
.product-card[data-p="safetalis"] .link-arrow { color: #005d63; }
.product-card[data-p="alerta"] .link-arrow { color: #005e50; }

/* ==========================================================================
   Movimiento: aparición al hacer scroll y hover
   Suave y corto, pensado para un contexto clínico. Solo se animan
   opacity y transform, así el contenido nunca se desplaza.
   ========================================================================== */

:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Aparición (solo cuando el script está activo) */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* Botones */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .14); }
.btn--ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; transition-duration: .08s; }

/* Enlaces con flecha: la flecha avanza */
.link-arrow { display: inline-flex; align-items: center; gap: 4px; transition: gap .2s var(--ease-out); }
.link-arrow:hover { gap: 9px; text-decoration: none; }
.hero-panel .arrow { transition: transform .2s var(--ease-out), color .2s ease; }
.hero-panel a:hover .arrow { transform: translateX(4px); color: var(--c); }

/* Menú: subrayado que crece desde el centro */
@media (min-width: 961px) {
  .nav > ul > li > a:not(.btn) { position: relative; }
  .nav > ul > li > a:not(.btn)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--p-btn, var(--brand)); transform: scaleX(0); transition: transform .25s var(--ease-out);
  }
  .nav > ul > li > a:not(.btn):hover { background: transparent; }
  .nav > ul > li > a:not(.btn):hover::after { transform: scaleX(1); }
  .nav .sub { animation: sub-in .18s var(--ease-out); }
  .nav .sub a { transition: background-color .15s ease, padding-left .2s var(--ease-out); }
  .nav .sub a:hover { padding-left: 16px; }
}
@keyframes sub-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Tarjetas de contenido: realce del borde y del ícono */
.feature:hover, .capability:hover, .audience div:hover, .process li:hover, .cycle li:hover {
  border-color: var(--card-line-hover);
  box-shadow: var(--card-shadow-hover);
}
.feature .icon { transition: transform .25s var(--ease-out), background-color .2s ease, color .2s ease; }
.feature:hover .icon { transform: translateY(-2px); background: var(--p-btn, var(--brand)); color: #fff; }
.product-card .p-mark { transition: transform .3s var(--ease-out); }
.product-card:hover .p-mark { transform: scale(1.08); }

/* Preguntas frecuentes */
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--p-text, var(--brand-dark)); }
.faq summary::after { transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] > div { animation: faq-open .3s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Campos del formulario */
.field input, .field textarea { transition: border-color .2s ease, box-shadow .2s ease; }
.field input:hover, .field textarea:hover { border-color: #aab6c7; }

/* Visuales del hero: respuesta sutil al pasar el mouse */
.p-shot, .viewer, .ledger, .case { transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.p-shot:hover, .viewer:hover, .ledger:hover, .case:hover { transform: translateY(-4px); }

/* Accesibilidad: sin movimiento si el usuario lo pidió */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Íconos por punto (Lucide) y fotografías (Unsplash)
   ========================================================================== */

/* Ícono en una ficha suave con el color del producto */
.i {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--p-bg, var(--soft-2));
  color: var(--p-text, var(--brand-dark));
  border: 1px solid color-mix(in srgb, var(--p, var(--brand)) 16%, transparent);
  transition: background-color .2s ease, color .2s ease, transform .25s var(--ease-out);
}
.i svg { width: 22px; height: 22px; stroke-width: 1.75; }
.capability:hover .i, .audience div:hover .i, .process li:hover .i, .cycle li:hover .i {
  background: var(--p-btn, var(--brand)); color: #fff; transform: translateY(-2px);
}
.feature .icon svg { width: 22px; height: 22px; stroke-width: 1.75; }

/* Pasos: el ícono reemplaza al número */
.process li::before { display: none; }
.process li .i { width: 40px; height: 40px; margin-bottom: 12px; }
.cycle li::before { margin-bottom: 0; }
.cycle li .i { width: 40px; height: 40px; margin: 10px 0 12px; }

/* Fotografías con el mismo marco que las tarjetas */
.photo {
  margin: 0; overflow: hidden; background: var(--p-bg, var(--soft));
  border: 1px solid var(--card-line); border-radius: 20px;
  box-shadow: var(--card-shadow); aspect-ratio: 4 / 3;
}
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.photo:hover img { transform: scale(1.03); }
.photo--wide { aspect-ratio: 21 / 8; margin-bottom: 24px; }
@media (max-width: 700px) { .photo--wide { aspect-ratio: 4 / 3; } }
.split--photo { align-items: center; }

/* Foto en la cabecera de las tarjetas de producto del Home */
.product-card .card-photo { margin: -32px -32px 24px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--c) 20%, #e6eaf1); }
.product-card .card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.product-card:hover .card-photo img { transform: scale(1.04); }
.product-card { overflow: hidden; }
.product-card .p-mark { margin-top: -52px; position: relative; background: #fff; border-radius: 12px; padding: 6px; width: 52px; height: 52px; box-shadow: 0 4px 12px rgba(15, 23, 42, .1); }

/* Bloque "personas" del Home */
.people .split { align-items: center; }
.people .photo { aspect-ratio: 5 / 4; }
.people ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.people li { display: flex; gap: 14px; align-items: flex-start; }
.people li .i { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.people li .i svg { width: 18px; height: 18px; }
.people li strong { display: block; color: var(--ink); }

/* Correcciones: la ficha del ícono no hereda estilos de los textos de la lista */
.process li .i, .process li span.i { display: grid; margin-top: 0; font-size: inherit; }
.photo--wide img { object-position: 50% 40%; }

/* ==========================================================================
   Home: banner rotativo
   El fondo del carrusel cambia de color con cada diapositiva (--active-bg).
   La barra de progreso de la pestaña activa marca el tiempo: al terminar
   su animación, el script pasa a la siguiente diapositiva.
   ========================================================================== */

.slider {
  --active-bg: #0f1b45;
  --interval: 7000ms;
  position: relative; overflow: hidden; color: #fff;
  background: var(--active-bg);
  transition: background-color .8s var(--ease-out);
}
.slide--nevitalis { --bg: #0f1b45; --accent: #9ee2ff; }
.slide--centalis  { --bg: #3c55b2; --accent: #7ff0dd; }
.slide--vizor     { --bg: #425d70; --accent: #d7e6f2; }
.slide--safetalis { --bg: #005d63; --accent: #7fe3d6; }
.slide--alerta    { --bg: #005e50; --accent: #86ecd9; }

/* Luz suave detrás del contenido: da profundidad sin recargar */
.slider::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 30%, rgba(255, 255, 255, .10), transparent 70%);
}

.slides { position: relative; display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }

.slide-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; min-height: 580px; }
.slide-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.slide-mark { width: 26px; height: 26px; --vz-a: #ffffff; }
img.slide-mark { filter: brightness(0) invert(1); }
.slide-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; letter-spacing: -.025em; }
.slide-lead { font-size: 1.15rem; color: rgba(255, 255, 255, .88); max-width: 560px; margin-bottom: 0; }
.slide-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.slide-chips li { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .32); color: #fff; }

.btn--light { background: #fff; color: var(--bg); }
.btn--light:hover { background: #f3f6fb; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }

.slide-media { position: relative; }
.slide-photo { margin: 0; aspect-ratio: 5 / 4; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 30px 60px rgba(0, 0, 0, .28); }
.slide-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .slide-photo img { transform: scale(1); }
.slide-float {
  position: absolute; left: -28px; bottom: -24px; display: flex; align-items: center; gap: 14px;
  max-width: 290px; padding: 16px 20px; background: #fff; color: var(--ink);
  border-radius: 16px; border: 1px solid rgba(15, 23, 42, .08); box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}
.slide-float b { font-size: 1.9rem; line-height: 1; color: var(--bg); white-space: nowrap; letter-spacing: -.02em; }
.slide-float span { font-size: .88rem; font-weight: 600; line-height: 1.35; color: #334155; }

/* Entrada escalonada del texto de la diapositiva activa */
.slide-text > *, .slide-float { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.slide.is-active .slide-text > *, .slide.is-active .slide-float { opacity: 1; transform: none; }
.slide.is-active .slide-text > :nth-child(2) { transition-delay: .08s; }
.slide.is-active .slide-text > :nth-child(3) { transition-delay: .16s; }
.slide.is-active .slide-text > :nth-child(4) { transition-delay: .24s; }
.slide.is-active .slide-text > :nth-child(5) { transition-delay: .32s; }
.slide.is-active .slide-float { transition-delay: .45s; }

/* Navegación: pestañas con nombre y barra de progreso */
.slider-nav { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .14); }
.slider-nav-inner { display: flex; align-items: stretch; gap: 16px; }
.slider-tabs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); }
.slider-tab {
  position: relative; text-align: left; padding: 18px 16px 20px; background: none; border: 0; cursor: pointer;
  color: #fff; opacity: .6; font: inherit; transition: opacity .2s ease, background-color .2s ease;
}
.slider-tab:hover { opacity: .9; background: rgba(255, 255, 255, .04); }
.slider-tab.is-active { opacity: 1; }
.slider-tab-name { display: block; font-weight: 700; font-size: .95rem; }
.slider-tab-desc { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }
.slider-tab-bar { position: absolute; left: 16px; right: 16px; top: 0; height: 2px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.slider-tab-bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.slider-tab.is-active .slider-tab-bar i { animation: slider-progress var(--interval) linear forwards; }
.slider.is-paused .slider-tab.is-active .slider-tab-bar i { animation-play-state: paused; }
@keyframes slider-progress { to { transform: scaleX(1); } }

.slider-controls { display: flex; align-items: center; gap: 8px; }
.slider-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.slider-btn:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.slider-btn .sb-i svg { width: 18px; height: 18px; display: block; }
.ico-pause { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.slider.is-paused .ico-pause { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }

@media (max-width: 960px) {
  .slide-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 64px; min-height: 0; }
  .slide-float { left: 12px; bottom: -20px; }
  .slider-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .slider-tab-desc { display: none; }
  .slider-controls { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slider-tab.is-active .slider-tab-bar i { animation: none; transform: scaleX(1); }
  .slide-photo img { transition: none; transform: none; }
}

/* ==========================================================================
   Home: cifras
   ========================================================================== */
.stats { background: #fff; border-bottom: 1px solid #e6eaf1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.stat { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 20px 22px; background: #fff; border: 1px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.stat .i { grid-row: span 2; margin: 0; }
.stat b { font-size: 1.8rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.stat span:last-child { font-size: .88rem; color: #475569; line-height: 1.35; }
@media (max-width: 960px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home: "¿Qué tipo de organización eres?"
   ========================================================================== */
.aud-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.aud-tab {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; font: inherit; font-weight: 600; font-size: .95rem;
  color: var(--ink); background: #fff; border: 1px solid var(--card-line); border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.aud-tab .i { width: 34px; height: 34px; margin: 0; border-radius: 50%; }
.aud-tab .i svg { width: 17px; height: 17px; }
.aud-tab:hover { border-color: var(--card-line-hover); box-shadow: var(--card-shadow); }
.aud-tab.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.aud-tab.is-active .i { background: rgba(255, 255, 255, .16); color: #fff; border-color: transparent; }

.aud-panel {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; padding: 44px;
  background: #fff; border: 1px solid var(--card-line); border-radius: 20px; box-shadow: var(--card-shadow);
}
.aud-panel[hidden] { display: none; }
.aud-panel.is-active { animation: aud-in .35s var(--ease-out); }
@keyframes aud-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aud-panel h3 { font-size: 1.6rem; margin-bottom: 10px; }
.aud-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.aud-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.ck { color: #166534; flex: none; margin-top: 2px; }
.ck svg { width: 20px; height: 20px; display: block; }
.aud-prods { display: grid; gap: 12px; }
.aud-label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #475569; }
.aud-prod {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px;
  text-decoration: none; color: var(--ink); border-radius: 14px; background: #fff;
  border: 1px solid color-mix(in srgb, var(--c) 28%, #e6eaf1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.aud-prod:hover { border-color: color-mix(in srgb, var(--c) 60%, #e6eaf1); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.aud-prod small { display: block; color: #475569; font-size: .85rem; }
.aud-mark { width: 40px; height: 40px; }
.aud-prod .arrow { color: #64748b; transition: transform .2s var(--ease-out); }
.aud-prod:hover .arrow { transform: translateX(4px); }
@media (max-width: 860px) { .aud-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; } }

/* Móvil: cifras en dos columnas compactas */
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 28px; padding-bottom: 28px; }
  .stat { grid-template-columns: 1fr; padding: 16px; }
  .stat .i { grid-row: auto; width: 36px; height: 36px; margin-bottom: 10px; }
  .stat b { font-size: 1.5rem; }
  .stat span:last-child { font-size: .8rem; }
}

/* ==========================================================================
   Vizor: video de fondo, logo oficial y demo real en el visor
   ========================================================================== */

/* Video de fondo con capa pizarra (#425D70) para mantener la lectura */
.p-hero.has-video { background: #2b3d4a; }
.p-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.p-hero.has-video::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(43, 61, 74, .94) 0%, rgba(66, 93, 112, .86) 45%, rgba(66, 93, 112, .55) 100%);
}
.p-hero.has-video .wrap { z-index: 1; }

/* Logo oficial sobre una placa blanca: respeta sus colores sobre fondo oscuro */
.p-logo-badge { display: inline-flex; padding: 10px 16px; margin-bottom: 26px; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.p-logo-badge img { display: block; height: 52px; width: auto; }

/* Grabación de la plataforma dentro del visor */
.viewer-video { display: block; width: 100%; aspect-ratio: 1102 / 882; object-fit: cover; background: #fff; border-radius: 12px; }

/* El rombo oficial como ícono */
img.p-mark, img.aud-mark { object-fit: contain; }
.product-card img.p-mark[src*="vizor"] { padding: 8px; }
/* Orden de capas: video (0) < capa de color (1) < contenido (2) */
.p-hero.has-video::before { z-index: 1; }
.p-hero.has-video .wrap { z-index: 2; }

/* ==========================================================================
   Tipografía oficial (aplica a todo el sitio, incluidas las páginas de producto)
   H1: Manrope SemiBold 48–56 px · H2: Manrope SemiBold 32–40 px
   H3: Manrope Medium 24 px · Párrafos: Inter Regular 16–18 px
   Botones: Inter Medium 15–16 px
   ========================================================================== */

:root {
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-body);
}
/* Los productos usan la misma tipografía; su identidad queda en color y logo */
[class*="theme-"] { --p-font: var(--font-head); }

body { font-family: var(--font-body); font-size: 17px; font-weight: 400; }
p, li, .lead { font-family: var(--font-body); }

h1, h2, h3, h4,
[class*="theme-"] h1, [class*="theme-"] h2, [class*="theme-"] h3,
.slide-title, .product-card h3, .p-lockup, .brand { font-family: var(--font-head); }

/* H1: 56 px en escritorio, 48 px en pantallas medianas; 36 px en móvil para que no se corte */
h1, .p-hero h1, .slide-title {
  font-weight: 600; letter-spacing: -.02em; line-height: 1.12;
  font-size: clamp(3rem, 4vw, 3.5rem);
}
@media (max-width: 700px) { h1, .p-hero h1, .slide-title { font-size: 2.25rem; } }
.theme-centalis h1, .theme-centalis h2, .theme-centalis h3 { font-weight: 600; letter-spacing: -.02em; }
.theme-centalis h3 { font-weight: 500; }

/* H2: 32–40 px */
h2 { font-weight: 600; letter-spacing: -.015em; line-height: 1.2; font-size: clamp(2rem, 3vw, 2.5rem); }

/* H3: Medium 24 px */
h3, .product-card h3, .aud-panel h3, .feature h3, .audience h3, .cycle h3 {
  font-weight: 500; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em;
}
/* Títulos de tarjeta que son h2 por SEO se ven como H3 */
.capability h2, .definition h2 { font-weight: 500; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.01em; }
.trust-band h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
/* Etiquetas pequeñas que son encabezados por estructura */
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; }
.cycle h3 { font-size: 1.25rem; }

/* Párrafos: Inter Regular 16–18 px */
.lead, .slide-lead, .p-hero .lead { font-size: 1.125rem; font-weight: 400; }
.feature p, .capability p, .audience p, .product-card p, .aud-panel p, .faq p,
.definition p, .trust-band p, .related span, .cycle p, .people li span { font-size: 16px; }
.capability ul, .product-card ul { font-size: 16px; }

/* Botones: Inter Medium 15–16 px */
.btn, .slider-tab, .aud-tab, button { font-family: var(--font-body); }
.btn { font-weight: 500; font-size: 16px; letter-spacing: 0; }
.btn--sm { font-size: 15px; }
.link-arrow { font-weight: 500; }

/* Cifras destacadas en Manrope */
.stat b, .p-stat b, .slide-float b, .proof-stat b, .trust-band .big { font-family: var(--font-head); font-weight: 600; }
.brand { font-weight: 700; }

/* ==========================================================================
   Paleta corporativa de Nevitalis (Clinical Premium)
   Azul petróleo #123B50 · Turquesa #0C8992 · Azul grisáceo #577988
   Fondo hielo #F3F8FA · Gris de texto #52616B
   Botones en #0B8089 (4,71:1 con blanco) para cumplir WCAG AA.
   Cada producto conserva su paleta oficial en su página.
   ========================================================================== */
:root {
  --navy: #123b50;
  --navy-2: #1a4d66;
  --ink: #123b50;
  --text: #52616b;
  --muted: #52616b;
  --line: #dce7ec;
  --soft: #f3f8fa;
  --soft-2: #e6f3f4;
  --brand: #0c8992;
  --brand-btn: #0b8089;
  --brand-dark: #0a6e76;
  --brand-light: #7fe0e4;
  --steel: #577988;
}
.btn--primary { background: var(--brand-btn); }
.btn--primary:hover { background: var(--brand-dark); }
.nav a.btn:hover { background: var(--brand-dark); }
.slide--nevitalis { --bg: #123b50; --accent: #7fe0e4; }
.site-footer { background: #0d2c3c; }
.section--navy .eyebrow, .contact .eyebrow { color: var(--brand-light); }
.contact-list li::before { color: var(--brand-light); }
.hero, .stats { border-color: var(--line); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   Header con mega menú
   ========================================================================== */
.header-bar { position: relative; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-link, .mega-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
  font: 500 15px/1.2 var(--font-body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .mega-trigger:hover, .mega-trigger[aria-expanded="true"] { color: var(--brand-dark); background: var(--soft); }
.nav-link.lang { color: var(--muted); }
.mt-chev svg { width: 16px; height: 16px; display: block; transition: transform .2s var(--ease-out); }
.mega-trigger[aria-expanded="true"] .mt-chev svg { transform: rotate(180deg); }
/* El subrayado animado anterior no aplica al nuevo menú */
.nav > ul > li > a:not(.btn)::after { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(18, 59, 80, .12);
  padding: 32px 0 36px;
}
.mega:not([hidden]) { animation: mega-in .2s var(--ease-out); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-backdrop { position: fixed; left: 0; right: 0; bottom: 0; top: 72px; background: rgba(18, 59, 80, .28); }
.mega-backdrop:not([hidden]) { animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.mega-grid--sol { display: grid; grid-template-columns: 1fr 1.2fr .85fr; gap: 28px; align-items: start; }
.mm-label { font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.mm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mm-item {
  display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; padding: 12px 14px;
  border-radius: 14px; border: 1px solid transparent; text-decoration: none; color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease;
}
.mm-item:hover, .mm-item.is-active, .mm-item:focus-visible {
  background: color-mix(in srgb, var(--c) 6%, #fff);
  border-color: color-mix(in srgb, var(--c) 28%, #fff);
}
.mm-mark { width: 44px; height: 44px; object-fit: contain; display: block; }
.mm-item strong { display: block; font: 600 16px/1.25 var(--font-head); }
.mm-item small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.mm-arrow svg { width: 16px; height: 16px; display: block; }
.mm-item .mm-arrow { color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s var(--ease-out); }
.mm-item:hover .mm-arrow, .mm-item.is-active .mm-arrow { opacity: 1; transform: none; color: var(--ink); }

.mm-previews { position: relative; }
.mm-preview { border: 1px solid color-mix(in srgb, var(--c) 25%, #e6eaf1); border-radius: 18px; overflow: hidden; background: #fff; }
.mm-preview:not([hidden]) { animation: mega-in .22s var(--ease-out); }
.mm-photo { margin: 0; aspect-ratio: 16 / 7; overflow: hidden; background: var(--soft); }
.mm-photo img { width: 100%; height: 100%; object-fit: cover; }
.mm-pv-body { padding: 20px 22px 22px; }
.mm-benefit { display: inline-block; font: 600 12px/1 var(--font-body); padding: 6px 10px; border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--c) 12%, #fff); }
.mm-pv-title { font: 600 20px/1.2 var(--font-head); color: var(--ink); margin: 12px 0 6px; }
.mm-pv-desc { font-size: 15px; margin: 0 0 12px; }
.mm-feats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.mm-feats li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.mm-ck svg { width: 16px; height: 16px; display: block; color: var(--c); }
.mm-cta, .mm-link { display: inline-flex; align-items: center; gap: 6px; font: 500 15px/1.2 var(--font-body); color: var(--brand-dark); text-decoration: none; }
.mm-cta:hover .mm-arrow, .mm-link:hover .mm-arrow { transform: translateX(3px); }
.mm-cta .mm-arrow, .mm-link .mm-arrow { transition: transform .2s var(--ease-out); }

.mm-aside { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.mm-aside p { font-size: 15px; }
.mm-aside-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand-dark); border: 1px solid var(--line); margin-bottom: 14px; }
.mm-aside-icon svg { width: 22px; height: 22px; }
.mm-aside-title { font: 600 18px/1.3 var(--font-head); color: var(--ink); margin: 0 0 6px; }
.mm-aside hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

.mm-sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mm-sector {
  display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out);
}
.mm-sector:hover, .mm-sector:focus-visible { border-color: color-mix(in srgb, var(--brand) 45%, #fff); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.mm-sicon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--soft-2); color: var(--brand-dark); }
.mm-sicon svg { width: 20px; height: 20px; }
.mm-sector strong { display: block; font: 600 16px/1.3 var(--font-head); color: var(--ink); }
.mm-sector small { display: block; font-size: 14px; margin: 4px 0 10px; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); padding: 4px 8px; border-radius: 999px; background: var(--soft); }
.mm-chips span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* Móvil y tablet: el menú se vuelve un panel con acordeones */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; max-height: calc(100vh - 72px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 24px; box-shadow: 0 24px 48px rgba(18, 59, 80, .12); }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-link, .mega-trigger { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 16px; min-height: 48px; }
  .nav-list .btn { width: 100%; }
  .mega { position: static; border: 0; box-shadow: none; padding: 0 0 16px; animation: none; }
  .mega .wrap { padding: 0; }
  .mega-grid--sol { grid-template-columns: 1fr; gap: 12px; }
  .mm-previews { display: none; }
  .mm-item .mm-arrow { opacity: 1; transform: none; }
  .mm-sectors { grid-template-columns: 1fr; }
  .mega-backdrop { display: none; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .mega-grid--sol { grid-template-columns: 1fr 1.1fr; }
  .mm-aside { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .mm-aside p, .mm-aside-title { margin: 0; }
  .mm-aside hr { display: none; }
}

/* ==========================================================================
   Home: propuesta de valor
   ========================================================================== */
.values { background: #fff; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 28px; background: #fff; border: 1px solid var(--card-line); border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out); }
.value:hover { border-color: var(--card-line-hover); box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.value:hover .i { background: var(--brand-btn); color: #fff; }
.value h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.value p { font-size: 16px; margin: 0; }
@media (max-width: 1000px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Home: desarrollo a medida
   ========================================================================== */
.dev { background: var(--navy); color: #c9dbe2; overflow: hidden; }
.dev h2 { color: #fff; }
.dev .eyebrow { color: var(--brand-light); }
.dev .lead { color: rgba(255, 255, 255, .86); }
.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.dev-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 18px; }
.dev-steps li { display: flex; gap: 16px; align-items: flex-start; }
.dev-steps .i { margin: 0; background: rgba(255, 255, 255, .06); color: var(--brand-light); border-color: rgba(127, 224, 228, .3); }
.dev-steps strong { display: block; color: #fff; font: 600 17px/1.3 var(--font-head); margin-bottom: 2px; }
.dev-steps span { font-size: 16px; }
.dev .btn--light { color: var(--navy); }
.dev-media { position: relative; padding: 0 0 48px 48px; }
.dev-photo { margin: 0; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.dev-photo img { width: 100%; height: 100%; object-fit: cover; }
.dev-photo--small { position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 3; border: 4px solid var(--navy); border-radius: 18px; }
.dev-chip { position: absolute; top: 24px; right: -12px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; background: #fff; border-radius: 14px; box-shadow: 0 16px 36px rgba(0, 0, 0, .22); color: var(--text); font-size: 14px; }
.dev-chip strong { display: block; color: var(--ink); font: 600 15px/1.3 var(--font-head); }
.dev-chip-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft-2); color: var(--brand-dark); }
.dev-chip-i svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .dev-grid { grid-template-columns: 1fr; gap: 48px; }
  .dev-media { padding: 0 0 40px 24px; }
  .dev-chip { right: 8px; }
}

/* Pie de página con cinco columnas */
.site-footer .cols { grid-template-columns: 1.4fr repeat(4, 1fr); }
.site-footer .btn { margin-top: 8px; }
@media (max-width: 1000px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
/* El mega menú se posiciona respecto del header completo, no del contenedor central */
.header-bar { position: static; }
.mega .wrap { max-width: var(--wrap); }
svg.mm-mark { width: 44px; height: 44px; }
/* Columnas del mega menú: la foto no debe ensanchar su columna */
@media (min-width: 1241px) { .mega-grid--sol { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .8fr); } }
@media (min-width: 1081px) and (max-width: 1240px) { .mega-grid--sol { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.mm-aside { align-self: start; margin-top: 28px; }
/* El contenedor del mega menú no hereda el flex de la barra del header */
.site-header .mega .mega-grid { display: grid; min-height: 0; gap: 28px; align-items: start; }
.site-header .mega .mega-grid--ind { display: block; }
@media (max-width: 1080px) { .site-header .mega .mega-grid { gap: 12px; } }
/* Desarrollo a medida: columna de texto un poco más ancha para que los botones queden en fila */
@media (min-width: 961px) { .dev-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } }

/* ==========================================================================
   Paleta oficial de Nevitalis (reemplaza la paleta Clinical Premium)
   Azul corporativo #2F395D · Celeste tecnológico #66B8E7
   Celeste muy claro #EAF6FC · Blanco clínico #F7FAFD
   El celeste sobre blanco tiene 2,19:1, así que en fondos claros se usa
   para superficies, íconos y acentos, y el texto y los botones van en azul.
   Sobre el azul corporativo el celeste sí sirve como texto (5,14:1).
   ========================================================================== */
:root {
  --navy: #2f395d;
  --navy-2: #3a4672;
  --ink: #2f395d;
  --text: #4a5370;
  --muted: #4a5370;
  --line: #dbe7f1;
  --soft: #f7fafd;
  --soft-2: #eaf6fc;
  --brand: #66b8e7;
  --brand-btn: #2f395d;
  --brand-dark: #232b47;
  --brand-light: #66b8e7;
  --brand-text: #447b9a;   /* celeste oscurecido para texto sobre blanco (AA) */
  --steel: #447b9a;
}
body { background: #fff; }
.btn--primary, .nav a.btn { background: var(--brand-btn); color: #fff; }
.btn--primary:hover, .nav a.btn:hover { background: var(--brand-dark); }
.eyebrow { color: var(--brand-text); }
.section--navy .eyebrow, .contact .eyebrow, .dev .eyebrow { color: var(--brand-light); }
.contact-list li::before { color: var(--brand-light); }
.slide--nevitalis { --bg: #2f395d; --accent: #66b8e7; }
.section--navy, .contact, .dev { background: #2f395d; }
.site-footer { background: #232b47; }
.hero, .stats { background: #fff; }
.section--soft, .audience-home { background: var(--soft); }
.nav-link:hover, .mega-trigger:hover, .mega-trigger[aria-expanded="true"] { color: var(--ink); background: var(--soft-2); }
.mega-backdrop { background: rgba(47, 57, 93, .28); }
.mega { box-shadow: 0 24px 48px rgba(47, 57, 93, .12); }
.mm-cta, .mm-link, .link-arrow { color: var(--ink); }
.mm-aside { background: var(--soft-2); }
.mm-aside-icon, .mm-sicon, .dev-chip-i { color: var(--ink); }
.aud-tab.is-active { background: var(--ink); border-color: var(--ink); }
.value:hover .i, .feature:hover .icon { background: var(--ink); color: #fff; }
.i, .feature .icon { background: var(--soft-2); color: var(--ink); border-color: rgba(102, 184, 231, .35); }
.dev-steps .i { background: rgba(102, 184, 231, .1); color: var(--brand-light); border-color: rgba(102, 184, 231, .35); }
.stat b, .proof-stat b { color: var(--ink); }
.dev-photo--small { border-color: #2f395d; }
.flow li b { background: rgba(102, 184, 231, .18); color: var(--brand-light); }
.chain li:not(:last-child)::after { color: var(--brand-light); }

/* ==========================================================================
   Industrias: pestañas en columna a la izquierda, información a la derecha
   ========================================================================== */
.audience-home .wrap { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 32px; align-items: start; }
.audience-home .section-head { grid-column: 1 / -1; }
.audience-home .aud-tabs { grid-column: 1; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 8px; margin: 0; position: sticky; top: 96px; }
.audience-home .aud-panel { grid-column: 2; grid-row: 2; }
.audience-home .aud-tab {
  width: 100%; justify-content: flex-start; text-align: left; border-radius: 14px;
  padding: 12px 16px 12px 12px; line-height: 1.3; position: relative;
}
.audience-home .aud-tab .i { flex: none; width: 40px; height: 40px; border-radius: 12px; }
.audience-home .aud-tab::after {
  content: "→"; margin-left: auto; padding-left: 12px; color: currentColor; opacity: 0;
  transform: translateX(-4px); transition: opacity .2s ease, transform .2s var(--ease-out);
}
.audience-home .aud-tab:hover::after, .audience-home .aud-tab.is-active::after { opacity: 1; transform: none; }
.audience-home .aud-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.audience-home .aud-panel { grid-template-columns: 1fr; gap: 32px; padding: 40px; min-height: 100%; }
@media (min-width: 1240px) { .audience-home .aud-panel { grid-template-columns: 1.1fr .9fr; } }

/* Tablet y móvil: pestañas en fila desplazable sobre la información */
@media (max-width: 900px) {
  .audience-home .wrap { grid-template-columns: minmax(0, 1fr); }
  .audience-home .aud-tabs { grid-column: 1; position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
  .audience-home .aud-tab { width: auto; flex: none; border-radius: 999px; }
  .audience-home .aud-tab::after { display: none; }
  .audience-home .aud-panel { grid-column: 1; grid-row: auto; padding: 28px; }
}

/* ==========================================================================
   Énfasis en negrita: títulos, cifras y textos importantes
   Títulos en Manrope Bold (700) · Cifras en Manrope ExtraBold (800)
   Textos importantes en Inter SemiBold/Bold
   ========================================================================== */

/* Títulos */
h1, .p-hero h1, .slide-title { font-weight: 700; }
h2, [class*="theme-"] h2 { font-weight: 700; }
h3, [class*="theme-"] h3, .theme-centalis h3,
.product-card h3, .aud-panel h3, .feature h3, .audience h3, .cycle h3, .value h3,
.capability h2, .definition h2, .trust-band h2 { font-weight: 700; }
.mm-pv-title, .mm-aside-title, .mm-item strong, .mm-sector strong, .dev-steps strong, .dev-chip strong { font-weight: 700; }

/* Cifras */
.stat b, .p-stat b, .slide-float b, .proof-stat b, .trust-band .big, .big { font-family: var(--font-head); font-weight: 800; letter-spacing: -.025em; }

/* Textos importantes */
strong, b { font-weight: 700; }
.product-card .tagline, .slide-tab-name, .slider-tab-name, .aud-prod strong, .related strong,
.people li strong, .process li, .audience h3, .faq summary { font-weight: 700; }
.aud-points li, .slide-float span, .stat span:last-child, .mm-benefit, .badge, .product-name { font-weight: 600; }
.btn { font-weight: 600; }
.eyebrow, .slide-eyebrow, .mm-label, .aud-label { font-weight: 700; }
.nav-link, .mega-trigger { font-weight: 600; }

/* ==========================================================================
   Pulido clínico y fluidez
   ========================================================================== */

/* Lectura más cómoda: títulos equilibrados y párrafos sin viudas */
h1, h2, h3, .slide-title { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: #eaf6fc; color: #2f395d; }

/* Los anclajes no quedan escondidos bajo el header fijo */
section[id], [id^="aud-"], #como-trabajamos { scroll-margin-top: 88px; }

/* Ritmo vertical más amplio y aireado */
.section { padding: 112px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 4px; }

/* Header: se compacta y gana una sombra suave al hacer scroll */
.site-header { transition: box-shadow .25s ease, background-color .25s ease; }
.site-header .header-bar { transition: min-height .25s var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(47, 57, 93, .08); background: rgba(255, 255, 255, .97); }
.site-header.is-scrolled .header-bar { min-height: 64px; }
.nav-link.is-current { color: var(--ink); background: var(--soft-2); }

/* Barra de progreso de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; background: #66b8e7; transform: scaleX(0); transform-origin: left; }

/* Botón volver arriba */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(47, 57, 93, .14); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease-out), background-color .2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--soft-2); }

/* CTA fijo en móvil */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { width: 100%; }
  .to-top { bottom: 88px; right: 16px; }
  body { padding-bottom: 0; }
}

/* Botones: flecha implícita y respuesta táctil */
.btn { gap: 10px; }
.btn:focus-visible { outline: 3px solid #66b8e7; outline-offset: 3px; }
.contact .btn--outline-light, .dev .btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.contact .btn--outline-light:hover, .dev .btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.site-footer .btn--primary { background: #66b8e7; color: #2f395d; }
.site-footer .btn--primary:hover { background: #8ccaee; }

/* Ecosistema conectado: claro, para no encadenar bloques oscuros */
.ecosystem { background: #fff; }
.ecosystem h3 { font-size: 1.25rem; margin-top: 40px; }
.ecosystem .flow li {
  background: #fff; color: var(--ink); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
  transition: border-color .2s ease, transform .2s var(--ease-out);
}
.ecosystem .flow li:hover { border-color: #66b8e7; transform: translateX(4px); }
.ecosystem .flow li b { background: #eaf6fc; color: var(--ink); }
.ecosystem .flow li small { color: #447b9a; font-weight: 600; }
.ecosystem .chain li { background: #eaf6fc; color: var(--ink); }
.ecosystem .chain li:not(:last-child)::after { color: #447b9a; }

/* Ciclo de la información: 3 columnas, más legibles */
@media (min-width: 900px) {
  .cycle { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cycle li { padding: 28px; }
  .cycle li:nth-child(3)::after { display: none; }
  .cycle p { font-size: 16px; }
}

/* Preguntas frecuentes: encabezado fijo a la izquierda, respuestas a la derecha */
@media (min-width: 961px) {
  .faq-section .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq-section .section-head { position: sticky; top: 104px; margin-bottom: 0; }
  .faq-section .faq { max-width: none; }
}
.faq-section .section-head .btn { margin-top: 12px; }
.faq summary { padding-top: 24px; padding-bottom: 24px; }
.faq details > div { color: var(--text); }

/* Formulario: estados claros */
.form { box-shadow: 0 30px 60px rgba(15, 22, 45, .25); }
.field input, .field textarea { background: #f7fafd; border-color: #d7e1ec; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.field input:focus, .field textarea:focus { background: #fff; border-color: #66b8e7; box-shadow: 0 0 0 4px rgba(102, 184, 231, .22); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b42318; background: #fff; }
.field-error { display: block; margin-top: 6px; font-size: 14px; color: #8a1c14; font-weight: 500; }
.form .btn[aria-busy="true"] { opacity: .8; pointer-events: none; }
.form .btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tarjetas: igual altura y aire interior uniforme */
.products { align-items: stretch; }
.product-card .tagline { margin-bottom: 12px; }

/* Transición suave entre páginas internas */
@media (prefers-reduced-motion: no-preference) {
  main { animation: page-in .45s var(--ease-out); }
  @keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ==========================================================================
   Elementos de marca Nevitalis (images/img/nevitalis-web)
   Logo oficial, logo animado y gráficos de la "N" como fondos corporativos.
   Todos son decorativos: van como fondo CSS y no afectan la lectura.
   ========================================================================== */

/* Logo oficial en el header */
.brand img { display: block; width: auto; height: 32px; }
.site-header.is-scrolled .brand img { height: 28px; transition: height .25s var(--ease-out); }

/* Logo animado en el pie de página */
.site-footer .logo--animated { width: 200px; height: auto; margin: -24px 0 4px -20px; }

/* Banner rotativo: la "N" en contorno como marca de agua */
.slider::after {
  content: ""; position: absolute; right: -6%; top: 50%; width: 62%; aspect-ratio: 1254 / 980;
  transform: translateY(-55%); pointer-events: none; z-index: 0;
  background: url(/images/img/nevitalis-web/elemento-n-contorno.webp) center / contain no-repeat;
  opacity: .9;
}
.slider .slides, .slider .slider-nav { position: relative; z-index: 1; }

/* Desarrollo a medida: patrón de la "N" en la esquina */
.dev { position: relative; isolation: isolate; }
.dev::before {
  content: ""; position: absolute; left: -140px; bottom: -160px; width: 560px; aspect-ratio: 2097 / 1716; z-index: -1;
  background: url(/images/img/nevitalis-web/elemento-n-patron.webp) center / contain no-repeat; opacity: .35; pointer-events: none;
}

/* Contacto: la "N" con patrón detrás del texto */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -180px; top: -120px; width: 680px; aspect-ratio: 2097 / 1716; z-index: -1;
  background: url(/images/img/nevitalis-web/elemento-n-patron.webp) center / contain no-repeat; opacity: .55; pointer-events: none;
}

/* Secciones claras: patrón de "N" celeste muy suave en una esquina */
.audience-home, .values, .faq-section, .stats { position: relative; isolation: isolate; }
.audience-home::before, .values::before, .faq-section::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 900 / 758; z-index: -1; pointer-events: none;
  background: url(/images/img/nevitalis-web/elemento-patron-claro.webp) center / contain no-repeat;
}
.audience-home::before { right: -60px; top: 20px; }
.values::before { left: -120px; bottom: -40px; transform: scaleX(-1); opacity: .9; }
.faq-section::before { right: -80px; bottom: 0; }

/* Firma de marca en los títulos de sección: barra corta en celeste */
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 2px; border-radius: 2px; background: #41bbe9;
  vertical-align: middle; margin-right: 10px; transform: translateY(-1px);
}
.section-head--center .eyebrow::before { display: none; }

@media (max-width: 760px) {
  .slider::after { width: 120%; right: -50%; opacity: .5; }
  .contact::before, .dev::before { width: 380px; }
  .audience-home::before, .values::before, .faq-section::before { width: 300px; opacity: .7; }
}
/* Ajustes: el gráfico se desvanece en vez de cortarse y no invade otras secciones */
.audience-home, .values, .faq-section { overflow: hidden; }
.contact::before {
  right: auto; left: -220px; top: auto; bottom: -260px; width: 760px; opacity: .45;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.dev::before {
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* Mockup de Centalis con fondo transparente */
.p-mockup { position: relative; }
.p-mockup img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(10, 20, 60, .35)); transition: transform .5s var(--ease-out); }
.p-mockup:hover img { transform: translateY(-6px); }
.slide-photo--mockup { aspect-ratio: auto; border: 0; box-shadow: none; border-radius: 0; overflow: visible; background: none; }
.slide-photo--mockup img { height: auto; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(10, 20, 60, .4)); }
.slide--centalis .slide-float { left: 0; bottom: 4%; }

/* ==========================================================================
   Banner: contador de centros en la diapositiva de Nevitalis
   ========================================================================== */
.slide-counter { display: flex; justify-content: center; }
.counter-card {
  width: 100%; max-width: 460px; padding: 40px 40px 36px; text-align: center; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(102, 184, 231, .35); border-radius: 28px;
  box-shadow: 0 30px 60px rgba(10, 15, 35, .25); backdrop-filter: blur(4px);
}
.counter-label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9bd3f2; }
.counter-num {
  margin: 10px 0 18px; font-family: var(--font-head); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  font-size: clamp(6rem, 13vw, 10rem); color: #fff; font-variant-numeric: tabular-nums;
}
.counter-num span:first-child { color: #66b8e7; }
.counter-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.counter-dots i { width: 14px; height: 14px; border-radius: 50%; background: #66b8e7; opacity: .25; transform: scale(.7); transition: opacity .3s ease, transform .3s var(--ease-out); }
.counter-dots i.on { opacity: 1; transform: none; }
.counter-dots i.next { background: transparent; border: 2px dashed #66b8e7; opacity: 1; transform: none; animation: next-pulse 1.6s ease-in-out infinite; }
@keyframes next-pulse { 50% { box-shadow: 0 0 0 6px rgba(102, 184, 231, .2); } }
.counter-cta-text { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: #fff; margin: 0 0 18px; }
.counter-card .btn--light { color: #2f395d; }
@media (max-width: 960px) { .counter-card { max-width: none; padding: 32px 24px; } }
@media (prefers-reduced-motion: reduce) { .counter-dots i.next { animation: none; } }
