/* Estilos del sitio público. Un solo archivo: el sitio son tres páginas. */

/* Tipografías de la marca, servidas desde este sitio.
   ⚠️ Solo hay archivo de 400 y de 600 para Inter. Cada uno se declara para un tramo de
   pesos: así «500» usa el de 400 y «700» el de 600, sin que el navegador invente una
   negrita falsa engordando las letras. */
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-style: normal; font-display: swap; src: url('fuentes/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600 700; font-style: normal; font-display: swap; src: url('fuentes/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 500; font-style: normal; font-display: swap; src: url('fuentes/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600 700; font-style: normal; font-display: swap; src: url('fuentes/inter-latin-600-normal.woff2') format('woff2'); }
:root {
  --fondo: #10131F;
  --panel: #1A1F33;
  --panel-alto: #232B47;
  --linea: #2F3857;
  --texto: #E8ECF8;
  --tenue: #A3ADC8;
  --acento: #7EF0C1;
  --acento-tinta: #10131F;
  --alerta: #FFB4A8;
  /* Colores y tipografías de la guía de marca (marca/tokens/marca.css). */
  --ambar: #FFC857;
  --coral: #FF8A6B;
  --titulos: 'Space Grotesk', system-ui, sans-serif;
  --cuerpo: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--cuerpo);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--acento); }
a:hover { color: #B5F7DC; }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 700; color: var(--acento); margin-bottom: .4rem; }
p { margin: 0 0 1rem; }

.ancho { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.ancho--texto { max-width: 760px; }
.tenue { color: var(--tenue); }
.entrada { font-size: 1.15rem; color: var(--tenue); max-width: 60ch; }

.saltar { position: absolute; left: -999px; top: 0; background: var(--acento); color: var(--acento-tinta); padding: 8px 12px; }
.saltar:focus { left: 8px; top: 8px; z-index: 10; }

/* ── Cabecera ─────────────────────────────────────────── */
.cabecera { border-bottom: 2px solid var(--linea); background: var(--fondo); position: sticky; top: 0; z-index: 5; }
.cabecera__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 64px; }
.marca { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--titulos); font-weight: 700; font-size: 1.35rem; color: var(--acento); text-decoration: none; letter-spacing: .03em; }
.marca img { display: block; height: 28px; width: auto; }
.menu { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--texto); text-decoration: none; border-radius: 6px; }
.menu a:hover { background: var(--panel-alto); color: var(--acento); }

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 8px;
  background: var(--acento); color: var(--acento-tinta);
  font-family: var(--titulos); font-size: 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.boton:hover { background: #B5F7DC; color: var(--acento-tinta); }
.boton--chico { min-height: 44px; padding: 0 16px; font-size: 1rem; }
/* El sistema del visitante va primero y lleno; los demás, de contorno. Ver sitio.js. */
.boton--secundario { background: transparent; color: var(--acento); border: 2px solid var(--acento); }
.boton--secundario:hover { background: var(--panel-alto); color: var(--acento); }
.boton--apagado { background: var(--panel-alto); color: var(--tenue); border: 2px dashed var(--linea); cursor: default; }
.boton--apagado:hover { background: var(--panel-alto); color: var(--tenue); }

/* ── Portada ──────────────────────────────────────────── */
.heroe { padding: 56px 0 40px; }
.heroe__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; }
.heroe__texto { flex: 1 1 380px; min-width: 0; }
.heroe__texto h1 { margin-bottom: 1rem; }
.heroe__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 .75rem; scroll-margin-top: 90px; }
.heroe__escena { flex: 1.3 1 460px; min-width: 0; }
#oficina { display: block; width: 100%; aspect-ratio: 860 / 520; }

.aviso {
  border: 2px solid var(--linea); border-radius: 8px; background: var(--panel);
  padding: 10px 14px; color: var(--texto); font-size: .95rem; max-width: 60ch;
}
.aviso strong { color: var(--alerta); }

/* ── Secciones ────────────────────────────────────────── */
.seccion { padding: 64px 0; scroll-margin-top: 64px; }
.seccion--alterna { background: var(--panel); border-top: 2px solid var(--linea); border-bottom: 2px solid var(--linea); }

.rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.tarjeta { border: 2px solid var(--linea); border-radius: 10px; background: var(--panel); padding: 20px; }
.tarjeta p { margin: 0; color: var(--tenue); }

.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.pasos li { counter-increment: paso; border: 2px solid var(--linea); border-radius: 10px; background: var(--fondo); padding: 20px; }
.pasos li::before {
  content: counter(paso); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 12px; border-radius: 6px;
  background: var(--acento); color: var(--acento-tinta); font-family: var(--titulos); font-weight: 700; font-size: 1.2rem;
}
.pasos p { margin: 0; color: var(--tenue); }

/* ── Precio ───────────────────────────────────────────── */
.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 1rem 0 1.5rem; align-items: start; }
.plan { border: 2px solid var(--acento); border-radius: 12px; background: var(--panel); padding: 24px; }
.plan--remoto { border-color: var(--ambar); }
.plan--remoto .cifra, .plan--remoto h3 { color: var(--ambar); }
.plan--remoto .plan__lista li::before { background: var(--ambar); }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.etiqueta { font-family: var(--cuerpo); font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--panel-alto); color: var(--texto); }
.plan__periodo { display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--panel); border: 2px solid var(--linea); }
.conmutador { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: transparent; color: var(--tenue); font: 600 1rem var(--cuerpo); cursor: pointer; }
.conmutador[aria-pressed="true"] { background: var(--panel-alto); color: var(--acento); }
.plan__precio { font-size: 1.1rem; margin-bottom: 1rem; }
.cifra { font-family: var(--titulos); font-size: 3rem; font-weight: 700; color: var(--acento); line-height: 1; }
.plan__lista { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.plan__lista li { padding: 6px 0 6px 26px; position: relative; }
.plan__lista li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 10px; height: 10px; background: var(--acento); }

/* ── Preguntas ────────────────────────────────────────── */
.pregunta { border: 2px solid var(--linea); border-radius: 8px; background: var(--fondo); margin-bottom: 10px; }
.pregunta summary { cursor: pointer; padding: 14px 16px; min-height: 44px; font-weight: 600; }
.pregunta p { margin: 0; padding: 0 16px 16px; color: var(--tenue); }

/* ── Legales ──────────────────────────────────────────── */
.legal h1 { margin-bottom: 1.25rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* ── Pie ──────────────────────────────────────────────── */
.pie { border-top: 2px solid var(--linea); padding: 32px 0 40px; }
.pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.pie__fila p { margin: 6px 0 0; max-width: 52ch; }
.pie__enlaces { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: flex-start; }
.pie__enlaces a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; }

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

@media (max-width: 640px) {
  .menu { order: 3; width: 100%; margin-left: 0; }
  .heroe { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.cifra--texto { font-size: 1.6rem; line-height: 1.3; }

.plan--equipo { border-color: var(--coral); }
.plan--equipo .cifra, .plan--equipo h3 { color: var(--coral); }
.plan--equipo .plan__lista li::before { background: var(--coral); }
.plan .cifra { font-size: 2.6rem; }
