/* sigar.net: estilos del sitio.
   Sin fuentes, scripts, imágenes ni recursos de otros sitios: la CSP de customHttp.yml los bloquea.
   La única fuente descargada es Inter 800, alojada acá mismo (public/fonts/).
   Colores en variables; el modo oscuro sigue la preferencia del sistema. */

/* Inter 800 (ExtraBold), alojada en el sitio: la usa solo el logo ("SIGAR", .brand). Es el archivo
   web/Inter-ExtraBold.woff2 del release oficial v4.1 de rsms/inter, sin tocar; licencia OFL 1.1 en
   fonts/Inter-LICENSE.txt. La CSP la permite con font-src 'self'. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Inter-ExtraBold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --card: #ffffff;
  --fg: #14181f;
  --muted: #4f5968;
  --line: #dde2e8;
  --line-strong: #7a8494;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --on-accent: #ffffff;
  --accent-soft: #eaf0fd;
  --accent-line: #b8cbf5;
  --soon-bg: #fff6df;
  --soon-fg: #5e4400;
  --soon-line: #d9ae3f;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1216;
    --surface: #151a20;
    --card: #1a2028;
    --fg: #e6e9ed;
    --muted: #a3adb9;
    --line: #2b323b;
    --line-strong: #6b7686;
    --accent: #93b4ff;
    --accent-hover: #b8cdff;
    --on-accent: #0b1220;
    --accent-soft: #172035;
    --accent-line: #2f4270;
    --soon-bg: #2a2312;
    --soon-fg: #f2d68c;
    --soon-line: #8f7026;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 44rem; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 20; padding: .5rem 1rem; background: var(--bg); color: var(--fg); }
.skip:focus { left: 16px; top: 8px; }

h1, h2, h3, h4 { line-height: 1.2; }
p, ul, ol, dl { margin: 0 0 1rem; }

/* Encabezado */
header.site { background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .75rem; padding-bottom: .75rem; }
/* El logo, como en los paneles de Sigar (panel-core, marca/logo.blade.php): el isotipo
   (favicon.svg, que sigue solo el modo oscuro del sistema) a 1.75rem y el nombre en mayúsculas
   en Inter 800, alojada en el sitio (@font-face de arriba): se ve igual en todas las computadoras. */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--fg); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1.125rem; font-weight: 800; letter-spacing: .06em; line-height: 1; text-transform: uppercase; text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand img { display: block; height: 1.75rem; width: auto; }

nav.sections { order: 3; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; width: 100%; font-size: .95rem; }
nav.sections a { padding: .2rem 0; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
nav.sections a:hover { color: var(--fg); }

/* Selector de versión: "Argentina · Español · English". La versión actual va en negrita, sin enlace
   (<span aria-current="page">); las otras son enlaces. Entra en una línea con el logo a 375 px. */
nav.lang { display: flex; flex-wrap: wrap; align-items: center; font-size: .9rem; line-height: 1.3; }
nav.lang a, nav.lang [aria-current] { padding: .35rem .3rem; border-radius: 6px; }
nav.lang a { color: var(--accent); font-weight: 500; text-decoration: none; }
nav.lang a:hover { color: var(--accent-hover); text-decoration: underline; }
nav.lang [aria-current] { color: var(--fg); font-weight: 700; }
nav.lang .sep { color: var(--muted); }

@media (max-width: 47.99rem) {
  nav.sections { gap: .25rem .75rem; justify-content: space-between; }
}
@media (min-width: 48rem) {
  header.site { position: sticky; top: 0; z-index: 10; }
  nav.sections { order: 0; width: auto; margin-left: auto; margin-right: 1rem; }
  main section[id] { scroll-margin-top: 4.5rem; }
}

/* Portada */
.hero { padding: 3.5rem 0 3.25rem; background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero h1 { max-width: 20ch; margin: 0 0 1rem; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); letter-spacing: -.015em; }
.lead { max-width: 60ch; font-size: 1.15rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.button { display: inline-block; padding: .7rem 1.2rem; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; line-height: 1.3; text-decoration: none; }
.button:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--on-accent); }
.button.ghost { border-color: var(--line-strong); background: transparent; color: var(--fg); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Secciones */
.block { padding: 3rem 0; }
.block.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.block h2 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.block h1 { margin: 0 0 1rem; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem); }
.intro { max-width: 65ch; font-size: 1.08rem; }

/* Servicios: cuatro tarjetas. 1 columna, 2+2 y una fila, para que no quede una tarjeta sola */
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.cards li { padding: 1.25rem; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); background: var(--card); }
.cards h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.cards p { margin: 0; color: var(--muted); }
@media (min-width: 40rem) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

/* Sigar ERP: multiempresa y multimoneda destacados */
.highlights { display: grid; gap: 1rem; margin: 1.75rem 0 1.5rem; padding: 0; list-style: none; }
@media (min-width: 40rem) {
  .highlights { grid-template-columns: 1fr 1fr; }
}
.highlights li { padding: 1.2rem 1.35rem; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); }
.highlights h3 { margin: 0 0 .35rem; color: var(--accent); font-size: 1.3rem; }
.highlights p { margin: 0; }

/* Tarjetas por área y por rubro, con viñetas cortas */
.panel { padding: 1.2rem 1.35rem .35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.panel h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .75rem; font-size: 1.2rem; }
.panel h3::before { content: ""; flex: none; width: .3rem; height: 1.1em; border-radius: 2px; background: var(--accent); }

/* Las cinco áreas y "En todo el sistema": seis tarjetas, así la grilla queda pareja
   (1 columna en el celular, 3 filas de 2 en tableta y 2 filas de 3 desde unos 1000 px) */
.areas { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 40rem) {
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .areas { grid-template-columns: repeat(3, 1fr); }
}

.items { margin: 0 0 1rem; padding: 0; list-style: none; }
.items li { position: relative; margin: .5rem 0; padding-left: 1rem; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.items li::before { content: ""; position: absolute; left: 0; top: .58em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); }
.items li strong { color: var(--fg); font-weight: 600; }

/* "Próximamente": etiqueta visible y viñetas huecas */
.soon-label { margin: 0; padding-top: .8rem; border-top: 1px dashed var(--line-strong); }
.items.soon li::before { border: 2px solid var(--soon-line); background: transparent; }

.badge { display: inline-block; padding: .1rem .6rem; border: 1px solid; border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge.soon { border-color: var(--soon-line); background: var(--soon-bg); color: var(--soon-fg); }

/* "En todo el sistema": la sexta tarjeta, con fondo de acento y tildes en lugar de puntos */
.panel.all { border-color: var(--accent-line); background: var(--accent-soft); }
.items.checks li { padding-left: 1.25rem; }
.items.checks li::before { content: "✓"; top: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--accent); font-size: .9rem; font-weight: 700; }

/* Módulos por rubro: dos rubros y "Otros rubros" (en tableta, esa tercera ocupa todo el ancho) */
.rubros { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.75rem; }
@media (min-width: 40rem) {
  .rubros { grid-template-columns: repeat(2, 1fr); }
  .rubros .other { grid-column: 1 / -1; }
}
@media (min-width: 62rem) {
  .rubros { grid-template-columns: repeat(3, 1fr); }
  .rubros .other { grid-column: auto; }
}
.panel.other { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.panel.other p { color: var(--muted); }
.panel.other p:last-child { margin-bottom: 1rem; }

/* Integraciones: solo la mención, el detalle está en legal.sigar.net */
.integ { max-width: 65ch; }
.integ p { font-size: 1.05rem; }
.more { font-weight: 600; }
.more::after { content: " →"; }

.small { color: var(--muted); font-size: .93rem; }

/* Contacto */
.contact { max-width: 44rem; padding: 1.5rem 1.5rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.contact h2 { margin-top: 0; }
.contact .actions { margin-top: 1rem; }
.contact .button { overflow-wrap: anywhere; }

.aside { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.aside h2 { font-size: 1.3rem; }

/* Pie: los enlaces legales quedan siempre a la vista, fuera de cualquier menú */
footer.site { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .92rem; }
footer.site p { margin: 0 0 .6rem; }
footer.site strong { color: var(--fg); }
nav.legal { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-bottom: 1rem; font-size: 1rem; }
nav.legal a { font-weight: 600; }
footer.site .fine { margin-top: 1rem; font-size: .82rem; }

@media print {
  header.site nav.sections, .skip, .actions { display: none; }
  header.site { position: static; }
  .hero { background: none; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
