/* ─────────────────────────────────────────────────────────
   Zentek — landing /Agenda

   Dirección: "sala de instrumentos". Gris técnico en luz de
   día, módulos blancos, alineación estricta. La firma es el
   subrayado amarillo: aparece dos veces en toda la página,
   sobre la promesa y sobre la petición.
   ───────────────────────────────────────────────────────── */

:root {
  /* — color — */
  --base:    #F0F2F7;  /* gris técnico, sesgo azul */
  --panel:   #FFFFFF;
  --ink:     #0F1626;  /* tinta naval */
  --ink-2:   #3A4459;
  --muted:   #78849C;
  --line:    #D5DBE6;
  --line-2:  #E6EAF1;
  --senal:   #F4C518;  /* el amarillo de Power BI */
  --senal-d: #B08D00;  /* misma señal, legible como texto */
  --alerta:  #C0392B;
  --exito:   #1E7A52;

  /* Superficie oscura del cierre. No cambia con el tema:
     es un ancla, no un token. */
  --deep:      #0F1626;
  --on-deep:   #B9C2D4;
  --on-deep-hi:#FFFFFF;

  /* — tipografía — */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono:    "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* — medidas — */
  --w: 1180px;
  --gutter: 24px;
  --r: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --base:    #0B111C;
    --panel:   #131B2A;
    --ink:     #EEF1F7;
    --ink-2:   #C2CAD9;
    --muted:   #8593AB;
    --line:    #263145;
    --line-2:  #1C2536;
    --senal-d: #F4C518;
    --alerta:  #E8877C;
    --exito:   #5FC496;
  }
}

:root[data-theme="dark"] {
  --base:    #0B111C;
  --panel:   #131B2A;
  --ink:     #EEF1F7;
  --ink-2:   #C2CAD9;
  --muted:   #8593AB;
  --line:    #263145;
  --line-2:  #1C2536;
  --senal-d: #F4C518;
  --alerta:  #E8877C;
  --exito:   #5FC496;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); font-weight: 700; letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.35rem); font-weight: 700; letter-spacing: -.026em; }
h3 { font-size: 1.08rem; font-weight: 600; font-variation-settings: "wdth" 104; letter-spacing: -.012em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 18px;
  font-family: var(--mono); font-size: .8rem;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--senal); outline-offset: 2px; }

/* ───────────── la firma: el subrayado ───────────── */
mark.hl {
  position: relative; z-index: 0;
  background: none; color: inherit;
}
mark.hl::before {
  content: "";
  position: absolute; z-index: -1;
  inset: .12em -.14em .04em -.14em;
  background: var(--senal);
  /* esquinas dispares: trazo de destacador, no rectángulo */
  border-radius: 3px 8px 4px 7px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .68s cubic-bezier(.22,.68,.3,1) .32s;
}
.is-visible mark.hl::before { transform: scaleX(1); }

/* ───────────── etiquetas mono ───────────── */
.key {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}

.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.sub  { color: var(--muted); max-width: 58ch; }

/* ───────────── marca ───────────── */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  background: var(--ink); border-radius: var(--r);
}
.brand-mark svg { width: 100%; height: 100%; }
.z-barra { fill: #FFFFFF; }
.z-diag  { fill: var(--senal); }
/* El nombre de marca usa el mismo corte que el logotipo en PNG y SVG:
   Archivo Black. Los titulares siguen con Archivo variable expandida. */
.brand-name {
  font-family: "Archivo Black", var(--display);
  font-size: 1.1rem; font-weight: 400; letter-spacing: -.024em;
}

/* ───────────── barra ───────────── */
.bar {
  position: sticky; top: 0; z-index: 100;
  background: var(--base);
  background: color-mix(in srgb, var(--base) 88%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .22s ease;
}
.bar.is-stuck { border-bottom-color: var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  font-family: var(--display); font-variation-settings: "wdth" 100;
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: color .16s ease;
}
.nav > a:not(.btn):hover { color: var(--ink); }

.burger {
  display: none; width: 40px; height: 40px; padding: 12px 9px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .24s ease; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.2px) rotate(-45deg); }

/* ───────────── botones ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--display); font-variation-settings: "wdth" 102;
  font-size: .95rem; font-weight: 600; letter-spacing: -.006em;
  cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn-ink    { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1D2942; }
.btn-linea  { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-linea:hover { border-color: var(--ink); }
.btn-senal  { background: var(--senal); color: #23190A; }
.btn-senal:hover { background: #FFD634; }
.btn-senal:disabled { opacity: .55; cursor: progress; }
.btn-sm     { padding: 9px 17px; font-size: .88rem; }
.btn-ancho  { width: 100%; padding: 15px 24px; }

/* ───────────── hero ───────────── */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(52px, 7vw, 84px); }
.hero-in { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: 1.14rem; }

.acciones { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 4px; }

.capas {
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 100%; margin-top: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.capas li {
  display: flex; flex-direction: column; gap: 5px;
  padding: 17px 20px; font-size: .94rem; color: var(--ink);
}
.capas li + li { border-left: 1px solid var(--line-2); }
.capas .key { color: var(--senal-d); }

/* ───────────── bloques de sección ───────────── */
.bloque { padding: clamp(56px, 7.5vw, 92px) 0; }
.bloque-gris { background: var(--panel); border-block: 1px solid var(--line); }

.titulo { display: flex; flex-direction: column; gap: 13px; margin-bottom: clamp(32px, 4vw, 48px); }

/* ───────────── servicios ───────────── */
.modulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.modulo {
  display: flex; flex-direction: column; gap: 11px;
  padding: 26px 24px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s ease;
}
.modulo:hover { border-color: var(--muted); }
.modulo .key { color: var(--senal-d); }
.modulo > p { color: var(--muted); font-size: .96rem; }
.bloque-gris .modulo { background: var(--base); }

.lista { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 17px; border-top: 1px solid var(--line-2); }
.lista li { position: relative; padding-left: 21px; font-size: .92rem; color: var(--ink-2); }
.lista li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--senal);
}

/* ───────────── método ───────────── */
.fases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fase {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 20px 24px;
  background: var(--base); border: 1px solid var(--line); border-radius: var(--r);
}
.orden {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.fase p { color: var(--muted); font-size: .93rem; }

/* ───────────── por qué ───────────── */
.razones { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.razones li {
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px 24px 26px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.razones p { color: var(--muted); font-size: .95rem; }

/* ───────────── agendar ───────────── */
.agendar { background: var(--deep); padding: clamp(56px, 7.5vw, 92px) 0; }
.agendar-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: clamp(34px, 5vw, 68px); align-items: start; }
.agendar-texto { display: flex; flex-direction: column; gap: 16px; }
.agendar h2 { color: var(--on-deep-hi); max-width: 15ch; }
.agendar .key { color: var(--senal); }
.agendar .lede { color: var(--on-deep); }
.agendar .lista { border-top-color: rgba(255,255,255,.15); }
.agendar .lista li { color: var(--on-deep); }

/* Sobre el amarillo, el texto tiene que virar a tinta. Se retrasa
   para que el color llegue junto con el trazo, no antes. */
.agendar mark.hl { color: var(--on-deep-hi); transition: color .3s ease .5s; }
.agendar .is-visible mark.hl { color: var(--ink); }

/* ───────────── formulario ───────────── */
.form-card { background: var(--panel); border-radius: var(--r); padding: 26px 24px; }
.form-card form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.field .opt { text-transform: none; letter-spacing: 0; }

.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: var(--r);
  font-family: var(--body); font-size: .96rem; color: var(--ink);
  background: var(--base); border: 1px solid var(--line);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.field select {
  appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378849C' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--senal-d);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--senal) 45%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--alerta); }

.error { font-family: var(--mono); font-size: .72rem; color: var(--alerta); }
.error:empty { display: none; }

.form-note { font-size: .77rem; color: var(--muted); text-align: center; }
.form-status { font-size: .9rem; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok  { color: var(--exito); }
.form-status.err { color: var(--alerta); }
.form-card.is-sent form > *:not(.form-status) { display: none; }
.form-card.is-sent .form-status { font-size: 1rem; padding: 14px 0; }

/* Campo trampa anti-spam: fuera de vista, pero sin display:none —
   algunos bots ignoran los campos ocultos de esa forma. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ───────────── pie ───────────── */
.pie { padding: 40px 0 36px; border-top: 1px solid var(--line); }
.pie-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; align-items: start; }
.pie-marca { display: flex; flex-direction: column; gap: 11px; }
.pie-links { display: flex; flex-direction: column; gap: 8px; }
.pie-links a { font-size: .91rem; color: var(--ink-2); width: fit-content; }
.pie-links a:hover { color: var(--ink); }
.pie-contacto { display: flex; flex-direction: column; gap: 9px; text-align: right; }
.pie-contacto > a { font-size: .94rem; color: var(--ink); }
.pie-contacto > a:hover { color: var(--senal-d); }
.copy { font-size: .77rem; color: var(--muted); }

/* ───────────── entrada ───────────── */
.reveal { opacity: 0; transform: translateY(9px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.6,.35,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────── */
/* ────────────── PLANES ──────────────
   Las cuatro puertas de entrada, con precio cerrado.
   Mismo lenguaje visual que .modulo: panel, borde fino, radio 4. */
.planes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.plan {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px 28px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s ease;
}
.plan:hover { border-color: var(--muted); }
.plan .key { color: var(--senal-d); }
.plan h3 { font-size: 1.1rem; line-height: 1.28; }
.plan-para { color: var(--muted); font-size: .92rem; line-height: 1.5; }

.plan-precio {
  font-family: var(--display); font-weight: 700;
  font-size: 2.2rem; line-height: 1; letter-spacing: -.02em;
  color: var(--ink); padding-top: 8px;
}
.plan-plazo {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}

/* El de entrada va marcado: es el que convierte. */
.plan-destacado { border-color: var(--senal); border-width: 2px; padding: 25px 21px 27px; }
.plan-destacado .plan-precio { color: var(--senal-d); }

.plan .lista { font-size: .91rem; }
.plan-nota { margin-top: 20px; font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ────────────── ABONO ──────────────
   Franja amarilla. El amarillo va de fondo, nunca en el texto:
   sobre él la tinta naval tiene contraste de sobra. */
.abono { background: var(--senal); padding: clamp(34px, 4.6vw, 56px) 0; }
.abono-in { display: flex; flex-direction: column; gap: 13px; max-width: 900px; }
.abono .key { color: var(--ink); }
.abono h2 {
  color: var(--ink); font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.24; letter-spacing: -.01em;
}
.abono p { color: var(--ink); font-size: 1rem; line-height: 1.62; }

/* ────────────── NOTA AL PIE DE UN BLOQUE ──────────────
   La frase que remata una sección sin competir con ella. */
.nota-bloque {
  margin-top: 20px; max-width: 62ch;
  font-size: .92rem; line-height: 1.6; color: var(--muted);
}

/* ────────────── REFERENCIAS ──────────────
   Sin comillas decorativas ni estrellas: la cita se sostiene sola.
   El peso lo lleva el texto; el cargo va abajo, en segundo plano. */
.testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonio {
  display: flex; flex-direction: column; gap: 16px; margin: 0;
  padding: 26px 24px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.testimonio blockquote {
  margin: 0; font-size: 1.04rem; line-height: 1.5; color: var(--ink);
  font-family: var(--body);
}
/* Las comillas angulares van en el CSS, no en el HTML: así el texto
   citado queda limpio para quien lo lea con lector de pantalla. */
.testimonio blockquote::before { content: "\00AB"; }
.testimonio blockquote::after  { content: "\00BB"; }
.testimonio figcaption {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2);
}
.testimonio-rol {
  font-family: var(--display); font-variation-settings: "wdth" 102;
  font-size: .92rem; font-weight: 600; color: var(--ink);
}

/* ────────────── FIRMA DEL CIERRE ──────────────
   Sobre el fondo profundo: quién responde al otro lado del formulario. */
.firma {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.firma-nombre {
  font-family: var(--display); font-variation-settings: "wdth" 106;
  font-size: 1.08rem; font-weight: 700; color: var(--on-deep-hi);
  letter-spacing: -.016em;
}
.firma-datos { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
.firma-datos li { font-size: .92rem; color: var(--on-deep); }
.firma-datos a { border-bottom: 1px solid transparent; transition: border-color .16s ease; }
.firma-datos a:hover { border-bottom-color: var(--senal); }

@media (max-width: 1000px) {
  .modulos, .planes, .testimonios { grid-template-columns: repeat(2, 1fr); }
  .fases { grid-template-columns: repeat(3, 1fr); }
  .agendar-in { grid-template-columns: 1fr; }
  .pie-in { grid-template-columns: 1fr 1fr; }
  .pie-contacto { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }

  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-block: 1px solid var(--line);
    padding: 6px var(--gutter) 18px;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
  .nav > a.btn { margin-top: 14px; border-bottom: none; justify-content: center; }
  .burger { display: block; }

  .modulos, .fases, .razones, .capas, .planes, .testimonios { grid-template-columns: 1fr; }
  .capas li + li { border-left: none; border-top: 1px solid var(--line-2); }
  .acciones .btn { flex: 1 1 200px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  mark.hl::before { transform: scaleX(1); }
}
