/* Alkos AI · estilos de la página */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fuentes/IBMPlexSans.woff") format("woff");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul: #1F4E79;
  --noche: #0F2740;
  --turquesa: #16B3C9;
  --turquesa-texto: #0C7F90;   /* turquesa oscurecido: pasa AA sobre blanco */
  --tinte: #EEF3F8;
  --papel: #FFFFFF;
  --tinta: #12253A;
  --tinta-suave: #4A5B6E;
  --filete: #D5DFEA;
  --filete-noche: rgba(255, 255, 255, 0.14);
  --ambar: #9A5B00;
  --ambar-fondo: #FFF4E0;

  --fuente: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --ancho: 1180px;
  --lado: clamp(1.25rem, 4vw, 2.5rem);
  --seccion: clamp(4.5rem, 10vw, 8.5rem);
  --sale: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--turquesa); color: var(--noche); }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--turquesa); outline-offset: 3px; border-radius: 4px; }

.marco { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--lado); }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--noche); color: #fff; padding: 0.6rem 1rem; border-radius: 6px;
}
.saltar:focus { top: 1rem; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0.8rem 1.4rem;
  background: var(--azul); color: #fff;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.25;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 39, 64, 0.2), 0 6px 16px -6px rgba(15, 39, 64, 0.45);
  transition: background-color 0.2s ease, transform 0.2s var(--sale), box-shadow 0.2s ease;
}
.boton span { transition: transform 0.25s var(--sale); }
.boton:hover { background: var(--noche); }
.boton:hover span { transform: translateX(3px); }
.boton:active { transform: scale(0.98); }
.boton--chico { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9375rem; box-shadow: none; }
.boton--claro { background: #fff; color: var(--noche); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 8px 20px -8px rgba(0, 0, 0, 0.35); }
.boton--claro:hover { background: var(--tinte); }

/* ---------- barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--papel);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.barra.con-borde { border-bottom-color: var(--filete); }
.barra__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.barra__logo img { height: 44px; width: auto; }

/* ---------- portada ---------- */
.portada { padding-block: clamp(3rem, 7vw, 6rem) var(--seccion); background: linear-gradient(var(--papel) 0 55%, var(--tinte) 55% 100%); }
.portada__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
.portada h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); font-weight: 600; letter-spacing: -0.03em; color: var(--noche); max-width: 15ch; }
.portada__sub { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: var(--tinta-suave); max-width: 46ch; }
.portada__texto .boton { margin-top: 2.25rem; }

@media (min-width: 960px) {
  .portada { background: var(--papel); }
  .portada__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* ---------- cuadro de cumplimiento ---------- */
.cuadro {
  margin: 0;
  background: var(--papel);
  border: 1px solid var(--filete);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(15, 39, 64, 0.04), 0 24px 48px -24px rgba(15, 39, 64, 0.28);
  overflow: hidden;
}
.cuadro__cab {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  background: var(--noche); color: #fff;
  font-weight: 600; font-size: 0.9375rem;
}
.cuadro__nota { font-weight: 400; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }
.cuadro table { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.45; }
.cuadro th {
  text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--tinta-suave);
  padding: 0.7rem 1rem; background: var(--tinte); border-bottom: 1px solid var(--filete);
}
.cuadro td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--filete); vertical-align: top; }
.cuadro td:first-child { font-weight: 500; color: var(--tinta); }
.cuadro td:last-child { color: var(--tinta-suave); }
.cuadro tbody tr:last-child td { border-bottom: 0; }
.cuadro__pie { padding: 0.85rem 1.25rem; border-top: 1px solid var(--filete); font-size: 0.8125rem; color: var(--tinta-suave); background: var(--tinte); }

.estado { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; white-space: nowrap; }
.estado svg { width: 1.15rem; height: 1.15rem; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.estado--ok { color: var(--turquesa-texto); }
.estado--ok svg { stroke: var(--turquesa); }
.estado--rev { color: var(--ambar); }
.estado--rev svg { stroke: var(--ambar); stroke-width: 2; }
.fila-revisar td { background: var(--ambar-fondo); }

@media (max-width: 559px) {
  .cuadro thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cuadro table, .cuadro tbody, .cuadro tr, .cuadro td { display: block; }
  .cuadro tr { padding: 0.85rem 1rem; border-bottom: 1px solid var(--filete); display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; row-gap: 0.25rem; }
  .cuadro tbody tr:last-child { border-bottom: 0; }
  .cuadro td { padding: 0; border: 0; }
  .cuadro td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .cuadro td:last-child { grid-column: 1 / -1; font-size: 0.8125rem; }
  .fila-revisar { background: var(--ambar-fondo); }
  .fila-revisar td { background: none; }
}

/* ---------- secciones comunes ---------- */
section h2 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); color: var(--noche); }
.seccion__intro { margin-top: 1rem; max-width: 56ch; color: var(--tinta-suave); font-size: 1.0625rem; }

/* ---------- problema (franja noche) ---------- */
.problema { background: var(--noche); color: #fff; padding-block: var(--seccion); }
.problema__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.problema h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); max-width: 18ch; }
.problema__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.problema__lista li { padding-block: 1.25rem; border-top: 1px solid var(--filete-noche); color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.problema__lista li:last-child { border-bottom: 1px solid var(--filete-noche); }
.problema__lista strong { display: block; color: #fff; font-size: 1.125rem; font-weight: 600; margin-bottom: 0.2rem; }
@media (min-width: 960px) {
  .problema__grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ---------- qué hacemos ---------- */
.hacemos { padding-block: var(--seccion); }
.entregas { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; counter-reset: entrega; border-top: 2px solid var(--noche); }
.entregas li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; row-gap: 0.4rem;
  padding-block: 1.6rem; border-bottom: 1px solid var(--filete);
}
.entregas h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); color: var(--noche); }
.entregas p { grid-column: 1; color: var(--tinta-suave); max-width: 58ch; }
.entregas__archivo {
  grid-column: 2; grid-row: 1; align-self: center;
  font-size: 0.8125rem; font-weight: 500; color: var(--azul);
  padding: 0.25rem 0.7rem; border: 1px solid var(--filete); border-radius: 999px; white-space: nowrap;
}
@media (min-width: 860px) {
  .entregas li { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr) 8.5rem; align-items: baseline; padding-block: 2rem; }
  .entregas__archivo { justify-self: end; }
  .entregas p { grid-column: 2; grid-row: 1; }
  .entregas__archivo { grid-column: 3; }
}

/* ---------- cómo trabajamos ---------- */
.trabajo { padding-block: var(--seccion); background: var(--tinte); }
.pasos { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; gap: 2.5rem; position: relative; }
.paso { position: relative; padding-left: 2.25rem; }
.paso::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--papel); border: 3px solid var(--azul);
}
.paso:not(:last-child)::after {
  content: ""; position: absolute; left: 6px; top: 1.6rem; bottom: -2.25rem; width: 2px;
  background: var(--filete); transform-origin: top;
}
.paso__tiempo { display: block; font-size: 0.875rem; font-weight: 600; color: var(--azul); font-variant-numeric: tabular-nums; }
.paso h3 { margin-top: 0.35rem; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); color: var(--noche); }
.paso p { margin-top: 0.6rem; color: var(--tinta-suave); max-width: 38ch; }
@media (min-width: 860px) {
  .pasos { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .paso { padding-left: 0; padding-top: 2.25rem; }
  .paso::before { top: 0; }
  .paso:not(:last-child)::after { left: 1.25rem; right: -2rem; top: 6px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
}

/* ---------- por qué ---------- */
.porque { padding-block: var(--seccion); }
.porque__grid { display: grid; gap: clamp(2rem, 4vw, 4rem); }
.razones { margin: 0; display: grid; gap: 0; }
.razones div { padding-block: 1.5rem; border-top: 1px solid var(--filete); }
.razones div:last-child { border-bottom: 1px solid var(--filete); }
.razones dt { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 600; color: var(--noche); letter-spacing: -0.01em; }
.razones dt::before {
  content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-right: 0.5rem; vertical-align: -0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316B3C9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.razones dd { margin: 0.5rem 0 0; color: var(--tinta-suave); max-width: 56ch; }
@media (min-width: 960px) {
  .porque__grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .porque h2 { position: sticky; top: 7rem; }
}

/* ---------- para quién ---------- */
.quien { padding-block: 0 var(--seccion); }
.quien h2 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 500; color: var(--tinta-suave); letter-spacing: 0; }
.sectores { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0; }
.sectores li {
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem); font-weight: 300; color: var(--noche); letter-spacing: -0.02em; line-height: 1.2;
}
.sectores li:not(:last-child)::after { content: "·"; color: var(--turquesa); margin-inline: 0.4em; font-weight: 600; }

/* ---------- cierre ---------- */
.cierre { background: var(--azul); color: #fff; padding-block: var(--seccion); }
.cierre h2 { max-width: 20ch; }
.cierre h2 { color: #fff; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); }
.cierre p { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.82); max-width: 50ch; }
.cierre .boton { margin-top: 2.25rem; }
.cierre p.cierre__correo { margin-top: 1rem; font-size: 1rem; }
.cierre__correo a { color: #fff; font-weight: 600; }

/* ---------- pie ---------- */
.pie { background: var(--noche); color: rgba(255, 255, 255, 0.7); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; }
.pie__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pie img { height: 34px; width: auto; }

/* ---------- movimiento: estado inicial solo con JS y sin reducir movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .check { stroke-dasharray: 24; stroke-dashoffset: 24; }
  .js .estado--ok { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
