/* Cursos de Pitogue Sistemas. Marca de la línea Negocio Responde: azul #1F3A5F, ámbar #F2B134, Inter.
   Móvil primero: se diseña en 390 px y se ensancha desde 760 px. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fuentes/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --azul: #1F3A5F;
  --azul-hondo: #152A45;
  --ambar: #F2B134;
  --ambar-hondo: #DE9C1C;
  --texto: #1B2533;
  --texto-suave: #4A5566;
  --fondo: #FFFFFF;
  --fondo-alterno: #F4F6F9;
  --linea: #E2E6EC;
  --radio: 14px;
  --ancho: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fondo);
  padding-bottom: 88px; /* espacio para el botón fijo del celular */
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); }

.envoltura { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---- Cabecera ---- */
.cabecera { padding: 14px 0; border-bottom: 1px solid var(--linea); background: #fff; }
.cabecera img { height: 40px; width: auto; }

/* ---- Secciones ---- */
section { padding: 56px 0; }
section.alterna { background: var(--fondo-alterno); }

h1, h2, h3 { color: var(--azul); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 28px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
p { margin: 0 0 14px; }

.etiqueta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azul);
  background: rgba(242, 177, 52, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.sin-programar { font-size: 20px; font-weight: 700; color: var(--texto); margin-bottom: 12px; }
.subtitulo { font-size: 18px; color: var(--texto-suave); }

/* ---- Demo ---- */
.demo { margin: 24px 0 8px; border-radius: var(--radio); overflow: hidden; background: #0d1520; box-shadow: 0 10px 30px rgba(21, 42, 69, 0.18); }
.demo video { width: 100%; aspect-ratio: 16 / 9; }
.nota-demo { font-size: 14px; color: var(--texto-suave); margin-bottom: 22px; }

/* ---- Compra ---- */
.precio { font-size: 22px; font-weight: 800; color: var(--azul); margin: 6px 0 12px; }
.precio span { font-weight: 500; color: var(--texto-suave); font-size: 17px; }

.boton {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--ambar);
  color: var(--azul-hondo);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--ambar-hondo);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.boton:hover { background: #F5BD4E; }
.boton:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ambar-hondo); }
.boton:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

.confianza { font-size: 14px; color: var(--texto-suave); margin-top: 14px; text-align: center; }
.cta { margin-top: 28px; }

/* ---- Bloques con captura ---- */
.bloques { display: grid; gap: 36px; margin-top: 28px; }
.bloque h3 { font-size: 21px; }
.capturas { display: grid; gap: 10px; margin-bottom: 16px; }
.capturas img { border-radius: 12px; border: 1px solid var(--linea); background: #0b141a; }
.capturas.planilla img { background: #fff; }

.dolor { display: grid; gap: 18px; margin-top: 24px; }
.dolor article { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; }
.dolor h3 { font-size: 19px; }
.cierre-seccion { margin-top: 26px; font-size: 19px; font-weight: 700; color: var(--azul); }

/* ---- Cómo se arma ---- */
.pasos { counter-reset: paso; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.pasos li { counter-increment: paso; position: relative; padding-left: 52px; }
.pasos li::before {
  content: counter(paso);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--azul); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Módulos ---- */
.modulos { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.modulos li { background: #fff; border: 1px solid var(--linea); border-left: 5px solid var(--ambar); border-radius: 12px; padding: 16px 18px; }
.modulos .nombre { font-weight: 800; color: var(--azul); }
.modulos .meta { font-size: 14px; color: var(--texto-suave); margin-top: 6px; }

/* ---- Listas ---- */
.lista { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 12px; }
.lista li { position: relative; padding-left: 30px; }
.lista li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 9px; height: 15px; border: solid var(--ambar-hondo); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.lista.no li::before { border: 0; width: auto; height: auto; transform: none; content: "–"; color: var(--texto-suave); top: 0; left: 6px; font-weight: 700; }

.dos-columnas { display: grid; gap: 28px; }

/* ---- Preguntas ---- */
.preguntas details { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: 0 18px; margin-top: 10px; }
.preguntas summary { cursor: pointer; font-weight: 700; color: var(--azul); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--ambar-hondo); }
.preguntas details[open] summary::after { content: "–"; }
.preguntas details p { padding-bottom: 6px; }

/* ---- Cierre ---- */
.cierre { background: var(--azul); color: #fff; }
.cierre h2 { color: #fff; }
.cierre .precio { color: var(--ambar); }
.cierre .confianza { color: #C9D3E0; }

/* ---- Pie ---- */
.pie { background: var(--azul-hondo); color: #C9D3E0; font-size: 14px; padding: 36px 0 28px; }
.pie img { height: 34px; width: auto; margin-bottom: 14px; }
.pie a { color: #fff; }
.pie p { margin-bottom: 10px; }
.pie .enlaces a { margin-right: 14px; }

/* ---- Botón fijo del celular ---- */
.barra-compra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--linea);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center;
  transform: translateY(110%); transition: transform 0.25s ease;
}
.barra-compra.visible { transform: translateY(0); }
.barra-compra .monto { font-weight: 800; color: var(--azul); white-space: nowrap; }
.barra-compra .boton { padding: 14px 12px; font-size: 16px; }

/* ---- Aviso de medición (solo si se activa el píxel) ---- */
.aviso-cookies {
  position: fixed; left: 12px; right: 12px; bottom: 96px; z-index: 30;
  background: #fff; border: 1px solid var(--linea); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); padding: 16px; font-size: 14px;
}
.aviso-cookies p { margin-bottom: 10px; }
.aviso-cookies button { font: inherit; font-weight: 700; border-radius: 8px; padding: 8px 14px; margin-right: 8px; cursor: pointer; }
.aviso-cookies .aceptar { background: var(--azul); color: #fff; border: 0; }
.aviso-cookies .rechazar { background: #fff; color: var(--azul); border: 1px solid var(--azul); }

/* ---- Páginas de texto (gracias, legales) ---- */
.texto { max-width: 720px; }
.texto h2 { font-size: 22px; margin-top: 28px; }
.texto ul { padding-left: 22px; }

/* ---- Escritorio ---- */
@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 18px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  section { padding: 80px 0; }
  .hero .demo { max-width: 860px; }
  .boton { display: inline-block; width: auto; padding: 18px 34px; }
  .confianza { text-align: left; }
  .dolor { grid-template-columns: repeat(3, 1fr); }
  .bloque { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
  .bloque:nth-child(even) .capturas { order: 2; }
  .bloque .capturas { margin-bottom: 0; }
  .modulos { grid-template-columns: repeat(2, 1fr); }
  .dos-columnas { grid-template-columns: 1fr 1fr; gap: 48px; }
  .barra-compra { display: none; }
  .aviso-cookies { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}
