/* LLOPS · style.css
   Dirección (ver DESIGN.md): "kit GEO en una carpeta". Papel cálido de
   documento técnico + tinta casi-negro + un acento índigo (GEO/máquinas,
   no el verde de GarantLead ni el azul-neón). Mono SOLO para nombres de
   archivo (sitemap.xml, schema.json...): motivo de instrumento, no estética
   de terminal (R-06). Motivo de identidad: la carpeta de entrega (folder),
   repetida en logo, viñetas, hero y lista de archivos. Tradiciones de
   entrega: notación "archivo" en los tags y en la lista tipo explorer. */

:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #16233b;
  --body: #2c3a52;
  --muted: #43536c;
  --line: #ddd8cc;
  --line-s: #ebe6da;

  --accent: #3b5a9e;      /* azul acero / índigo GEO */
  --accent-deep: #274a7d;
  --accent-soft: #e8eef6;

  --ok: #1e6b3a;
  --ok-bg: #e6efe3;
  --warn: #8a5600;
  --warn-bg: #f3ead6;

  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  --r-lg: clamp(0.85rem, 1.5vw, 1.2rem);
  --r-md: 0.6rem;
  --r-sm: 0.4rem;
  --ring: 0 0 0 1px rgba(22,35,59,0.08);
  --lift: 0 14px 32px -20px rgba(39,74,125,0.28), 0 3px 10px -8px rgba(22,35,59,0.1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
}

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.25rem); line-height: 1.15; text-wrap: balance; }
h3 { font-size: 1.075rem; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; position: relative; }

/* ---------- eyebrow: kicker con punto índigo + regla ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.eyebrow i { width: 0.5rem; height: 0.5rem; background: var(--accent); flex: none; }
.eyebrow::after { content: ""; flex: 0 1 3rem; height: 1px; background: var(--line); }

/* ---------- hlavička ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line-s);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent-deep); }

.head-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--ink);
  text-decoration: none;
  padding: 0.62rem 1.1rem;
  border-radius: var(--r-md);
  transition: background-color .15s, transform .15s;
}
.head-cta:hover { background: #0d1a2e; }

/* ---------- hero ----------
   Fondo SOLO con vídeo (geo.mp4) + velo de papel en degradado: sin foto de
   fondo (la foto ai.jpg se usa en "Sin humo"). El poster del <video> es
   ai.jpg, solo visible mientras el vídeo carga. */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-s);
  background: linear-gradient(to bottom, #efe9dc, var(--paper) 70%);
  padding-block: clamp(3rem, 6.5vw, 5.5rem) clamp(3.25rem, 7vw, 5.75rem);
}
/* Vídeo de fondo del hero: textura viva, debajo del velo y del texto.
   Se apaga con prefers-reduced-motion. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.8) brightness(1.02);
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(247, 244, 238, 0.82) 0%,
    rgba(247, 244, 238, 0.58) 34%,
    rgba(247, 244, 238, 0.24) 68%,
    rgba(247, 244, 238, 0.08) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
}

.em { font-style: italic; color: var(--accent-deep); }
.lede { margin-top: 1.2rem; font-size: 1.125rem; max-width: 34rem; }

.body {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.4rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.body li { display: flex; align-items: center; gap: 0.5rem; }
.body li::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--accent); flex: none; }

/* ---------- carpeta de entrega (motivo) ----------
   La "carpeta del paquete": lista tipo explorer con archivos. El frontis
   superior se abre (rotación leve) al entrar, una sola vez (R-19). */

.folder {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--ring), var(--lift);
  overflow: hidden;
}
.folder-top {
  height: 1rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line-s);
  position: relative;
}
.folder-top::after {
  content: "";
  position: absolute;
  left: 0.75rem; top: 0.55rem;
  width: 0.6rem; height: 0.5rem;
  border: 2px solid var(--accent);
  border-top: 0; border-right: 0;
  transform: rotate(-12deg);
}
.folder-files {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}
.ff { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto; gap: 0.55rem; align-items: baseline; padding: 0.62rem 0.9rem; }
.ff:nth-child(even) { background: #f4efe7; }
.ff b { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; color: var(--accent-deep); }
.ff em { font-style: normal; font-size: 0.82rem; color: var(--muted); font-weight: 500; grid-column: 3; }
.ff .f-stav {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.ff .f-dot { width: 0.45rem; height: 0.45rem; border-radius: 2px; background: var(--accent); grid-column: 1; }
.folder-note {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.9rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.folder-note strong { color: var(--accent-deep); }
.folder figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ---------- formulário de obtención ---------- */

/* Formulario integrado en el CTA final: tarjeta blanca sobre el panel oscuro.
   El borde índigo del formkarta refuerza que ES el punto de conversión. */
.cta-form {
  margin-top: 1.6rem;
  max-width: 30rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  box-shadow: 0 18px 40px -18px rgba(22,35,59,0.5);
}
.field { display: grid; gap: 0.3rem; margin-bottom: 0.95rem; }
.field label { font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.field input {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fbf9f4;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,90,158,0.16);
}
.field input[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.14); }
.field-err { margin-top: 0.25rem; font-size: 0.82rem; font-weight: 500; line-height: 1.4; color: #c0392b; }

.form button {
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  color: #ffffff;
  background: var(--accent-deep);
  border: 0;
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background-color .15s;
}
.form button:hover { background: var(--ink); }

.form-status {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ok);
  background: var(--ok-bg);
  border-left: 3px solid var(--ok);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.8rem;
}
.micro { margin-top: 0.7rem; font-size: 0.83rem; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* ---------- secciones ---------- */

.sec { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.sec-alt {
  position: relative; /* necesario: ancla ::before/::after a ESTA sección,
                         no al ancestro posicionado (si no, la foto se ve en
                         toda la página y las secciones parecen solaparse) */
  overflow: hidden;
  background: var(--surface);
  border-block: 1px solid var(--line-s);
}
.sec-lede { margin-top: 1.05rem; max-width: 42rem; font-size: 1.05rem; }
.sec-lede + .sec-lede { margin-top: 0.95rem; }
.sec-lede strong { color: var(--ink); font-weight: 600; }

/* Lista de archivos (Qué incluye): filas tipo "explorer", no tarjetas
   idénticas. La primera (sitemap.xml) se destaca con tinte índigo: es la
   base de todo lo demás (R-14, jerarquía con razón). */
.files-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.files-list li { display: grid; gap: 0.4rem; padding: 1.25rem 1.1rem 1.25rem 1.4rem; border-bottom: 1px solid var(--line); }
.files-list li:first-child { background: var(--accent-soft); }
.files-list li:first-child::before { content: ""; position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 3px; background: var(--accent); }
.files-list li:first-child { position: relative; }
.f-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}
.files-list h3 { margin-bottom: 0.3rem; }
.files-list p { font-size: 0.95rem; line-height: 1.6; max-width: 46rem; }

/* Sin humo: foto de fondo (IA/chat, la que estaba en el hero). La foto se
   VE (opacidad 0.45), con velo ligero solo donde va el texto. */
.sec-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/ai.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: saturate(0.9) brightness(1.03);
  pointer-events: none;
}
.sec-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
    rgba(247, 244, 238, 0.82) 0%,
    rgba(247, 244, 238, 0.55) 40%,
    rgba(247, 244, 238, 0.28) 80%,
    rgba(247, 244, 238, 0.16) 100%);
  pointer-events: none;
}
.sec-alt > * { position: relative; z-index: 2; }

/* Sin humo: lista nativa, sin cajas */
.catch { margin: 2.25rem 0 0; padding: 0; }
.catch > div { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.catch > div:first-child { border-top: 1px solid var(--line); }
.catch dt { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.catch dd { margin: 0.35rem 0 0; font-size: 0.97rem; }

/* Números: tesis en serif itálica sobre papel */
.pointa {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  font-weight: 600;
  max-width: 34rem;
  margin-top: 1.5rem;
}

/* Precios */
.sec-cenik { padding-top: 0; }
.uroven {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.cena { display: grid; gap: 0.2rem; }
.cena b { font-size: clamp(1.45rem, 2.8vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.cena span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }

/* El paquete GEO: única oferta principal, a UNA columna (precio y descripción
   primero, "qué incluye" justo debajo a ancho completo, R-31: el valor se
   lee antes que la lista). */
.oprava {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-lg);
  box-shadow: var(--ring), var(--lift);
}
.opr-hlava { font-size: 0.8rem; font-weight: 800; color: var(--ink); margin: 0; }
/* Lista compacta: 2 columnas de mini-items (no una fila vertical por ítem).
   El primero (los nombres de archivo) ocupa el ancho completo en mono. */
.opr-radky {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.5rem;
}
.opr-radky li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  align-items: baseline;
}
.opr-radky li::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--accent); border-radius: 2px; flex: none; }
.opr-radky li:first-child { grid-column: 1 / -1; }
.opr-radky li:first-child span { font-family: var(--font-mono); font-size: 0.82rem; }
.opr-mimo { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--muted); }

/* Re-auditoría: opcional, en línea (sin borde enfático, sin hover destacado) */
.balik {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.4rem;
}
.balik p { font-size: 0.95rem; }
.balik .cena { margin: 0.2rem 0; }
.balik .bal-pozn { padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.bal-pozn strong { color: var(--ink); font-weight: 700; }

.vic { margin-top: 1.6rem; max-width: 46rem; font-size: 0.95rem; }
.vic b { color: var(--ink); }
.vic a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }

/* CTA: panel de tinta con botón índigo */
.cta {
  padding-block: clamp(3.75rem, 8vw, 6rem);
  text-align: center;
  background: var(--ink);
  color: #ffffff;
}
.cta h2 { color: #ffffff; }
.cta p { margin-top: 0.9rem; font-weight: 500; }
.btn-big {
  display: inline-block;
  margin-top: 1.7rem;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  border-radius: var(--r-md);
  padding: 0.9rem 1.7rem;
  transition: transform .15s, background-color .15s;
}
.btn-big:hover { transform: translateY(-2px); background: var(--accent-deep); }
.cta :focus-visible { outline-color: #ffffff; }

/* Footer */
.foot { padding-block: 2.25rem; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; font-size: 0.875rem; }
.foot-brand { font-weight: 800; color: var(--ink); }
.foot-brand span { color: var(--accent-deep); }
.foot-legal a { color: var(--muted); }

/* Motion: reveals con propósito; respeta reduced-motion */
.is-animated .rv,
.is-animated .ff { opacity: 0; transform: translateY(4px); }
.is-animated .rv.in,
.is-animated .ff.in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .5s ease-out; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .is-animated .rv, .is-animated .ff { opacity: 1 !important; transform: none !important; }
}

/* Móvil: estado deliberado, no el escritorio encogido (R-03).
   El tráfico principal es móvil: el vídeo de 10 MB se sustituye por la
   imagen estática (ai.jpg) para no cargar peso en datos móviles, paddings
   a escala de teléfono y targets de 44px+. */
@media (max-width: 40rem) {
  .hero { padding-block: 2rem 2.5rem; }
  .hero-grid { gap: 1.6rem; }
  .hero-video { display: none; }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("assets/ai.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.4;
  }
  .sec, .sec-alt { padding-block: 2.5rem; }
  .cta { padding-block: 3.25rem 3.75rem; }
  .head-cta { min-height: 2.75rem; padding-inline: 1rem; }
  .logo { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .body { gap: 0.35rem 0.9rem; }
  .opr-radky { gap: 0.45rem; }
  .folder-files li { padding-block: 0.35rem; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .ff { grid-template-columns: auto minmax(0,1fr) auto; }
  .ff em { grid-column: 2 / 4; }
  .head-in { gap: 0.5rem; }
  .head-cta { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
}