/* Agents Colombia: estilos de la página pública. */
:root {
  --tinta: #0B1B3A;
  --texto: #2A3550;
  --suave: #5B6680;
  --fondo: #FAFAF7;
  --superficie: #FFFFFF;
  --borde: #E4E6EC;
  --amarillo: #FCD116;
  --azul: #2F6BFF;
  --rojo: #E5243B;
  --codigo: #F1F3F8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tinta: #F3F5FA;
    --texto: #D3D8E4;
    --suave: #9AA3B8;
    --fondo: #0A1226;
    --superficie: #111C36;
    --borde: #22304F;
    --azul: #6E98FF;
    --codigo: #18244A;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 { color: var(--tinta); font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0.2em 0 0.4em; max-width: 18ch; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
a { color: var(--azul); }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
code { background: var(--codigo); padding: 0.1em 0.35em; border-radius: 6px; }
pre { background: var(--codigo); padding: 1rem; border-radius: 12px; overflow-x: auto; }
pre code { background: none; padding: 0; }

.contenedor { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.bloque { padding: 3rem 16px 0; }

.barra { border-bottom: 1px solid var(--borde); background: var(--superficie); position: sticky; top: 0; z-index: 2; }
.barra-interna { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.marca { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--tinta); font: 700 1.2rem "Space Grotesk", sans-serif; letter-spacing: -0.03em; }
.marca b { color: var(--azul); }
nav { display: flex; gap: 1.2rem; }
nav a { color: var(--texto); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--azul); }

.portada { padding: 4rem 0 3rem; border-bottom: 1px solid var(--borde); background:
  linear-gradient(90deg, var(--amarillo) 0 50%, var(--azul) 50% 75%, var(--rojo) 75%) bottom / 100% 4px no-repeat; }
.aviso { display: inline-block; margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--suave); }
.aviso a { color: inherit; }
.entrada { font-size: 1.2rem; max-width: 62ch; }

.boton { display: inline-block; background: var(--tinta); color: var(--fondo); padding: 0.7rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 600; margin: 0.3rem 0.4rem 0 0; }
.boton.secundario { background: transparent; color: var(--tinta); border: 1.5px solid var(--tinta); }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px; padding: 1.5rem; display: flex; flex-direction: column; }
.tarjeta h3 a { color: var(--tinta); text-decoration: none; }
.tarjeta .boton { align-self: flex-start; margin-top: auto; }
.etiqueta { margin: 0; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--suave); }

.precios { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.precios li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--borde); font-size: 0.92rem; }
.precios b { color: var(--tinta); white-space: nowrap; }
.precios.grande li { font-size: 1rem; }
.precios.grande b { font-size: 1.2rem; }

.reglas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.regla { background: var(--superficie); border: 1px solid var(--borde); border-radius: 14px; padding: 1.1rem; }
.regla p { margin: 0; font-size: 0.93rem; }
.codigo { display: inline-block; background: var(--amarillo); color: #0B1B3A; font-weight: 700; font-size: 0.8rem; padding: 0.1rem 0.5rem; border-radius: 6px; margin-bottom: 0.5rem; }

.pasos { padding-left: 1.2rem; max-width: 70ch; }
.pasos li { margin-bottom: 0.6rem; }
.lista { max-width: 70ch; }
details { background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.6rem; }
summary { cursor: pointer; font-weight: 600; color: var(--tinta); }
details p { margin: 0.6rem 0 0; }

.nota { color: var(--suave); font-size: 0.9rem; }
.pie { margin-top: 4rem; padding: 2rem 0; border-top: 1px solid var(--borde); background: var(--superficie); font-size: 0.92rem; }
.pie p { margin: 0.3rem 0; }

@media (max-width: 560px) {
  nav { gap: 0.9rem; font-size: 0.92rem; }
  .portada { padding: 2.5rem 0 2rem; }
}

/* Marco legal */
.resumen { padding-left: 1.1rem; margin: 0 0 1.2rem; font-size: 0.93rem; }
.resumen li { margin-bottom: 0.35rem; }
.en-claro { background: var(--superficie); border: 1px solid var(--borde); border-left: 4px solid var(--amarillo); border-radius: 14px; padding: 1.2rem 1.4rem; max-width: 75ch; }
.en-claro h2 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.en-claro .lista { margin: 0; padding-left: 1.1rem; }
.documento { max-width: calc(75ch + 32px); }
.documento section { margin-bottom: 2rem; }
.documento h2 { font-size: 1.3rem; }
.datos { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.2rem; background: var(--superficie); border: 1px solid var(--borde); border-radius: 12px; padding: 1rem 1.2rem; }
.datos dt { font-weight: 600; color: var(--tinta); }
.datos dd { margin: 0; overflow-wrap: anywhere; }
.tabla { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--borde); }
th { color: var(--tinta); font-weight: 600; }
.documento code { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .datos { grid-template-columns: 1fr; }
  .datos dd { margin-bottom: 0.5rem; }
  table { min-width: 560px; }
}
