/* =============================================================================
   COVATECK — pages.css
   Capa editorial sobria para: la sección Nixie de la home y las páginas
   /nixie, /empresa, /contacto, /privacidad y /terminos.

   Reglas que se respetan aquí a propósito:
   - sin sombras decorativas
   - sin backdrop-filter (glassmorphism)
   - sin gradientes
   - sin tarjetas: se separa con líneas, espacio y jerarquía tipográfica
   - radios: 0 estructural, 4px controles, 8px contenedores
   - hereda los tokens de styles.css (:root); no redefine la paleta

   Esta hoja es aditiva. No modifica el sistema visual existente de la home.
   ============================================================================= */

/* ── Tokens propios de esta capa ──────────────────────────────────────────── */
:root {
  --pg-measure: 68ch;      /* medida de lectura */
  --pg-wrap: 1120px;       /* contenedor editorial, más estrecho que .container */
  --pg-rule: rgba(10, 10, 10, 0.12);
  --pg-rule-soft: rgba(10, 10, 10, 0.07);
}

/* =============================================================================
   1. ACCESIBILIDAD GLOBAL — se aplica a TODO el sitio, no solo a estas páginas
   ============================================================================= */

/* Un único sistema de foco visible. Antes solo existía una regla :focus en
   3.900 líneas de CSS: navegar con teclado era imposible de seguir. */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.on-dark :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible,
.pg-dark :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline-color: var(--ink-d);
}
/* El foco del formulario de contacto se pintaba con outline:none + borde.
   Se le devuelve un anillo real sin tocar su estilo de borde. */
.cf-input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* Saltar al contenido — primer tabulador de cada página. */
.pg-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--ink-d);
  padding: 12px 18px;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}
.pg-skip:focus {
  left: 0;
}

/* Movimiento: si el visitante lo pide, se apaga todo en esta capa. */
@media (prefers-reduced-motion: reduce) {
  .pg-section *,
  .pg-page * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================================
   2. CONTENEDOR Y RITMO
   ============================================================================= */
.pg-section {
  padding: 112px 32px;
  border-top: 1px solid var(--pg-rule-soft);
}
.pg-wrap {
  max-width: var(--pg-wrap);
  margin: 0 auto;
}

/* Página completa (subpáginas): deja aire bajo la nav fija */
.pg-page {
  padding: 148px 32px 96px;
}
.pg-page .pg-wrap > * + * {
  margin-top: 0;
}

/* =============================================================================
   3. TIPOGRAFÍA EDITORIAL
   Escala contenida a propósito: la home usa titulares de hasta 144px; aquí el
   objetivo es densidad informativa y legibilidad, no impacto.
   ============================================================================= */
.pg-kicker {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.pg-h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 20ch;
}
.pg-h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 24ch;
}
.pg-h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pg-lede {
  max-width: var(--pg-measure);
}
.pg-lede-text,
.pg-text {
  max-width: var(--pg-measure);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pg-lede-text { margin-top: 20px; }
.pg-text + .pg-text { margin-top: 18px; }

.pg-note {
  max-width: var(--pg-measure);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
  border-left: 2px solid var(--pg-rule);
  padding-left: 16px;
}

/* Separación vertical entre bloques de una página */
.pg-block { margin-top: 72px; }
.pg-block--tight { margin-top: 40px; }

.pg-rule {
  height: 1px;
  background: var(--pg-rule-soft);
  border: 0;
  margin: 56px 0;
}

/* =============================================================================
   4. FLUJO COMERCIAL — "así se mueve una venta"
   Lista ordenada con línea guía. No son tarjetas: es estructura editorial.
   ============================================================================= */
.pg-flow { margin-top: 56px; }

.pg-flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--pg-rule);
}

.pg-flow-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--pg-rule-soft);
  align-items: start;
}

.pg-flow-n {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink-mute);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.pg-flow-body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pg-flow-body p {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Variante con espacio reservado para una captura real */
.pg-flow-step--media {
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 900px) {
  .pg-flow-step--media { grid-template-columns: 56px minmax(0, 1fr); }
  .pg-flow-step--media .pg-shot { grid-column: 1 / -1; margin-top: 16px; }
}

/* =============================================================================
   5. CAPTURAS — tratamiento único
   Mientras no haya capturas reales aprobadas se muestra un contenedor
   honesto, rotulado "pendiente". NUNCA una imagen falsa presentada como prueba.
   ============================================================================= */
.pg-shot {
  border: 1px solid var(--pg-rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt);
}
.pg-shot img,
.pg-shot video {
  display: block;
  width: 100%;
  height: auto;
}
.pg-shot-cap {
  display: block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 10px 14px;
  border-top: 1px solid var(--pg-rule-soft);
}

/* Contenedor vacío, explícitamente marcado como pendiente */
.pg-shot--pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: var(--bg-cream);
  border-style: dashed;
}
.pg-shot--pending span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  padding: 20px;
  max-width: 34ch;
  line-height: 1.6;
}

/* =============================================================================
   6. LISTAS DE HECHOS / DATOS DEL NEGOCIO
   ============================================================================= */
.pg-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: var(--pg-measure);
}
.pg-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--pg-rule-soft);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.pg-list li:first-child { border-top: 1px solid var(--pg-rule); }

/* Tabla de datos empresariales — clave/valor, sin caja */
.pg-data {
  margin-top: 32px;
  max-width: 640px;
  border-top: 1px solid var(--pg-rule);
}
.pg-data > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pg-rule-soft);
}
.pg-data dt {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 2px;
}
.pg-data dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
.pg-data dd a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .pg-data > div { grid-template-columns: 1fr; gap: 4px; }
}

/* =============================================================================
   7. PREGUNTAS — formato editorial, sin acordeón
   ============================================================================= */
.pg-qa { margin-top: 32px; max-width: var(--pg-measure); }
.pg-qa > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--pg-rule-soft);
}
.pg-qa > div:first-child { border-top: 1px solid var(--pg-rule); }
.pg-qa h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pg-qa p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* =============================================================================
   8. ACCIONES
   ============================================================================= */
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
}

/* =============================================================================
   9. FORMULARIO — aceptación del aviso de privacidad
   ============================================================================= */
.cf-consent { margin-top: 4px; }
.cf-consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.cf-consent-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--ink);
  cursor: pointer;
}
.cf-consent-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
}
.on-dark .cf-consent-label,
.cta-final .cf-consent-label { color: var(--ink-d-soft); }
.on-dark .cf-consent-label input[type="checkbox"],
.cta-final .cf-consent-label input[type="checkbox"] { accent-color: var(--ink-d); }

/* =============================================================================
   10. CABECERA DE SUBPÁGINA
   ============================================================================= */
.pg-head { border-bottom: 1px solid var(--pg-rule); padding-bottom: 48px; }
.pg-breadcrumb {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.pg-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.pg-breadcrumb span { margin: 0 8px; }

/* Marca de estado — sobria, sin píldora de color */
.pg-status {
  display: inline-block;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-mute);
  border: 1px solid var(--pg-rule);
  border-radius: 4px;
  padding: 5px 10px;
  margin-top: 24px;
}

/* =============================================================================
   11. DOCUMENTOS LEGALES
   ============================================================================= */
.pg-legal { max-width: var(--pg-measure); }
.pg-legal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 14px;
}
.pg-legal h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 10px;
}
.pg-legal p,
.pg-legal li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pg-legal p + p { margin-top: 14px; }
.pg-legal ul,
.pg-legal ol { margin: 14px 0 0 22px; }
.pg-legal li { margin-bottom: 8px; }
.pg-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Aviso de que el documento es un borrador sujeto a revisión legal */
.pg-disclaimer {
  border: 1px solid var(--pg-rule);
  border-left-width: 3px;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 40px;
  max-width: var(--pg-measure);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =============================================================================
   12. PIE — datos del negocio
   ============================================================================= */
.footer-biz {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 20px;
  align-items: baseline;
  font-size: 14px;
}
.footer-biz dt {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-d-mute);
}
.footer-biz dd {
  margin: 0;
  color: var(--ink-d-soft);
}
.footer-biz dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .footer-biz { grid-template-columns: 1fr; gap: 2px; }
  .footer-biz dt { margin-top: 12px; }
}

/* =============================================================================
   13. RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
  .pg-section { padding: 80px 24px; }
  .pg-page { padding: 124px 24px 72px; }
  .pg-block { margin-top: 56px; }
}
@media (max-width: 640px) {
  .pg-section { padding: 64px 20px; }
  .pg-page { padding: 112px 20px 64px; }
  .pg-flow-step { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .pg-h1 { max-width: none; }
  .pg-h2 { max-width: none; }
  .pg-actions .btn { width: 100%; text-align: center; justify-content: center; }
}
