/* calasec.com — sitio estático (misma base que calasign.com). Marca: calasign-brand (manual v1.0).
   Colores con los hex exactos del manual; máximo marino + azul + turquesa por sección.
   Sin JS inline: la CSP del server es script-src 'self'. */
:root {
  --navy: #0a1b3f;
  --blue: #2448e0;
  --blue-neg: #6d8bff;
  --teal: #0e9aa7;
  --teal-neg: #3ed3c9;
  --teal-text: #0e7c86;
  --text: #4a5568;
  --line: #dde3ec;
  --soft: #f5f7fa;
  --tint: #e9edfc;
  --white: #ffffff;
  --error: #b42318;
  --radius: 8px;
  --font-title: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 16px/1.6 var(--font-body);
  color: var(--text);
  background: var(--white);
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--blue);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}
h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
}
h3 {
  font-size: 19px;
  font-weight: 600;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.eyebrow {
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 14px;
}
.lead {
  font-size: 18px;
  max-width: 620px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1 var(--font-body);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: #1d3bc0;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
}
.btn-outline {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid var(--blue-neg);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.top .logo img {
  height: 34px;
  width: auto;
  display: block;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 15px;
}
.top nav a:hover {
  color: var(--white);
}
.lang {
  display: flex;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  font-size: 13px !important;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.lang a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white) !important;
}
@media (max-width: 760px) {
  .top nav .navlink {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 132px 0 88px;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(109, 139, 255, 0.18);
  pointer-events: none;
}
.hero .grid2 {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero .grid2 {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero h1 {
  color: var(--white);
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-neg);
}
.hero .eyebrow {
  color: var(--teal-neg);
}
.hero .lead {
  color: rgba(255, 255, 255, 0.8);
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .note {
  margin-top: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Secciones ---------- */
section {
  padding: 88px 0;
}
section.soft {
  background: var(--soft);
}
.sec-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.sec-head p {
  margin-top: 12px;
  font-size: 17px;
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card.accent {
  border-top: 3px solid var(--blue);
}
.card h3 {
  margin: 12px 0 6px;
}
.card p {
  font-size: 15px;
}
.icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tint);
  display: grid;
  place-items: center;
  color: var(--blue);
}
.icon svg {
  width: 22px;
  height: 22px;
}

/* Pasos */
.steps {
  display: grid;
  gap: 28px;
  counter-reset: s;
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  position: relative;
}
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font: 700 17px var(--font-title);
  position: relative;
  z-index: 1;
}
@media (min-width: 860px) {
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    right: -28px;
    height: 1px;
    background: var(--line);
  }
}
.step h3 {
  margin: 16px 0 6px;
}
.step p {
  font-size: 15px;
  max-width: 320px;
}
.behind {
  margin-top: 36px;
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.behind::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--teal);
  flex: none;
}

/* Funcionalidades */
.features {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.feature {
  padding: 22px 22px 22px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
}
.feature .icon {
  flex: none;
  width: 36px;
  height: 36px;
}
.feature h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.feature p {
  font-size: 14.5px;
}
.chip {
  display: inline-block;
  background: var(--tint);
  color: var(--blue);
  font: 600 11px var(--font-body);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* Correos */
.mailpol {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .mailpol {
    grid-template-columns: 1fr 1fr;
  }
}
.mailpol ul {
  margin: 0;
  padding-left: 20px;
}
.mailpol li {
  margin: 6px 0;
}
.box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.box p + p {
  margin-top: 10px;
}

/* Cierre */
.closing {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
}
.closing h2 {
  color: var(--white);
}
.closing .eyebrow {
  color: var(--teal-neg);
}
.closing .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.closing .mail {
  color: var(--blue-neg);
  font-weight: 600;
  text-decoration: none;
}

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 28px;
}
footer img {
  height: 26px;
  width: auto;
  display: block;
}
footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 16px;
}
footer a:first-child {
  margin-left: 0;
}
footer a:hover {
  color: var(--white);
}

/* ---------- Páginas legales ---------- */
.legal-top {
  background: var(--navy);
  padding: 100px 0 40px;
}
.legal-top h1 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 42px);
}
.legal-top .eyebrow {
  color: var(--teal-neg);
}
.legal {
  max-width: 760px;
  padding: 48px 16px 72px;
  margin: 0 auto;
}
.legal h2 {
  font-size: 21px;
  margin: 32px 0 10px;
}
.legal p,
.legal li {
  font-size: 16px;
}
.legal p + p {
  margin-top: 10px;
}
.legal ul {
  padding-left: 20px;
}
.legal .small {
  font-size: 14px;
}
.mail-lead {
  margin: 12px 0 16px;
}
.close-mail {
  margin-top: 18px;
}

/* ---------- Tablero (ilustración, datos ficticios) ---------- */
.dash {
  color: var(--text);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  font-size: 13px;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dash-top b {
  font: 600 14px var(--font-title);
  color: var(--navy);
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--teal-text);
  font-weight: 600;
}
.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 154, 167, 0.18);
}
.dash-body {
  padding: 16px 18px 18px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.kpi span {
  display: block;
  font-size: 11.5px;
}
.kpi b {
  display: block;
  font: 700 22px/1.15 var(--font-title);
  color: var(--navy);
  margin-top: 2px;
}
.kpi.hl b {
  color: var(--blue);
}
.chart {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 8px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}
.chart-head b {
  color: var(--navy);
  font-weight: 600;
}
.legend {
  display: flex;
  gap: 10px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: 0;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 84px;
  margin-top: 8px;
}
.bars div {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  height: 100%;
}
.bars i {
  display: block;
  border-radius: 2px 2px 0 0;
}
.bars i:first-child {
  background: var(--blue);
}
.bars i:nth-child(2) {
  background: var(--teal);
  border-radius: 2px 2px 0 0;
}
.feed {
  margin-top: 14px;
}
.feed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.feed-row:first-child {
  border-top: none;
}
.feed-row strong {
  color: var(--navy);
  font-weight: 600;
}
.feed-row small {
  display: block;
  font-size: 11.5px;
}
.feed-row time {
  font-size: 11.5px;
  white-space: nowrap;
}
.sev {
  font: 600 10.5px var(--font-body);
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.sev-c {
  background: var(--navy);
  color: var(--white);
}
.sev-h {
  background: var(--blue);
  color: var(--white);
}
.sev-m {
  background: var(--tint);
  color: var(--blue);
}
.sev-l {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
}

/* Sección del tablero: texto + lista */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.checks {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.checks li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
  font-size: 15.5px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tint);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 5px;
  height: 8px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checks b {
  color: var(--navy);
  font-weight: 600;
}
.split .btn {
  margin-top: 26px;
}
.dash.flat {
  box-shadow: 0 10px 30px rgba(10, 27, 63, 0.08);
  border: 1px solid var(--line);
  max-width: none;
}

/* Dato destacado */
.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 8px;
}
.stat b {
  display: block;
  font: 700 40px/1 var(--font-title);
  color: var(--blue);
}
.stat span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

/* Alturas de las barras del gráfico ilustrativo (sin estilos inline: CSP) */
.bars div:nth-child(1) i:first-child {
  height: 28%;
}
.bars div:nth-child(1) i:nth-child(2) {
  height: 12%;
}
.bars div:nth-child(2) i:first-child {
  height: 30%;
}
.bars div:nth-child(2) i:nth-child(2) {
  height: 9%;
}
.bars div:nth-child(3) i:first-child {
  height: 20%;
}
.bars div:nth-child(3) i:nth-child(2) {
  height: 11%;
}
.bars div:nth-child(4) i:first-child {
  height: 29%;
}
.bars div:nth-child(4) i:nth-child(2) {
  height: 9%;
}
.bars div:nth-child(5) i:first-child {
  height: 34%;
}
.bars div:nth-child(5) i:nth-child(2) {
  height: 14%;
}
.bars div:nth-child(6) i:first-child {
  height: 19%;
}
.bars div:nth-child(6) i:nth-child(2) {
  height: 10%;
}
.bars div:nth-child(7) i:first-child {
  height: 31%;
}
.bars div:nth-child(7) i:nth-child(2) {
  height: 21%;
}
.bars div:nth-child(8) i:first-child {
  height: 20%;
}
.bars div:nth-child(8) i:nth-child(2) {
  height: 15%;
}
.bars div:nth-child(9) i:first-child {
  height: 20%;
}
.bars div:nth-child(9) i:nth-child(2) {
  height: 21%;
}
.bars div:nth-child(10) i:first-child {
  height: 19%;
}
.bars div:nth-child(10) i:nth-child(2) {
  height: 11%;
}
.bars div:nth-child(11) i:first-child {
  height: 25%;
}
.bars div:nth-child(11) i:nth-child(2) {
  height: 9%;
}
.bars div:nth-child(12) i:first-child {
  height: 36%;
}
.bars div:nth-child(12) i:nth-child(2) {
  height: 20%;
}
.bars div:nth-child(13) i:first-child {
  height: 19%;
}
.bars div:nth-child(13) i:nth-child(2) {
  height: 15%;
}
.bars div:nth-child(14) i:first-child {
  height: 19%;
}
.bars div:nth-child(14) i:nth-child(2) {
  height: 12%;
}
.legend .l1 {
  background: var(--blue);
}
.legend .l2 {
  background: var(--teal);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}
.top nav .btn-ghost {
  color: var(--white);
}
