/* Centro de ayuda de Bodegix (ayuda.bodegix.com). Mismos colores de la app; sin fuentes externas. */
:root {
  --tinta: #13212b;
  --texto: #2e3b45;
  --tenue: #5e676f;
  --papel: #f6f4ef;
  --superficie: #fffdf8;
  --linea: #ddd8cc;
  --acento: #e07a2f;
  --enlace: #a84f12;
  --nav: #13212b;
  --sobre-nav: #f6f4ef;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tinta: #eee9df;
    --texto: #cdd4d8;
    --tenue: #93a0a8;
    --papel: #0e171e;
    --superficie: #15222b;
    --linea: #2b3b47;
    --acento: #e8843a;
    --enlace: #f2a66b;
    --nav: #0a1218;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--papel);
  color: var(--texto);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--tinta);
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.4rem;
}

a {
  color: var(--enlace);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--superficie);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  z-index: 10;
}

.saltar:focus {
  top: 0.75rem;
}

.barra {
  background: var(--nav);
  padding: 0.9rem 1rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sobre-nav);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}

.marca svg {
  width: 2rem;
  height: 2rem;
}

.marca-sub {
  font-weight: 400;
  opacity: 0.8;
  font-size: 1rem;
}

.contenedor {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

.intro {
  font-size: 1.08rem;
  color: var(--tenue);
}

.destacado,
.contacto,
.nota {
  border: 1px solid var(--linea);
  background: var(--superficie);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
}

.destacado {
  border-left: 4px solid var(--acento);
}

.contacto {
  margin-top: 2.5rem;
}

.contacto h2 {
  margin-top: 0;
}

.nota {
  border-left: 4px solid var(--acento);
  margin: 1rem 0;
}

.nota p {
  margin: 0;
}

.buscador {
  margin: 1.5rem 0;
}

.buscador label {
  display: block;
  font-weight: 600;
  color: var(--tinta);
  margin-bottom: 0.35rem;
}

.buscador input {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--linea);
  border-radius: 0.6rem;
  background: var(--superficie);
  color: var(--tinta);
}

.buscar-estado {
  min-height: 1.5rem;
  margin: 0.4rem 0 0;
  color: var(--tenue);
  font-size: 0.95rem;
}

.guias {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.guias li {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.guias li a {
  font-weight: 600;
}

.guias li p {
  margin: 0.2rem 0 0;
  color: var(--tenue);
  font-size: 0.95rem;
}

.migas {
  font-size: 0.95rem;
  color: var(--tenue);
}

.guia ol,
.guia ul {
  padding-left: 1.4rem;
}

.guia li {
  margin: 0.3rem 0;
}

.guia code {
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 0.3rem;
  padding: 0 0.3rem;
  font-size: 0.92em;
}

.guia img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--linea);
  border-radius: 0.5rem;
}

.tabla {
  overflow-x: auto;
  margin: 1rem 0;
}

.tabla table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.tabla th,
.tabla td {
  border: 1px solid var(--linea);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.tabla th {
  background: var(--superficie);
  color: var(--tinta);
}

.revisado {
  margin-top: 2rem;
  color: var(--tenue);
  font-size: 0.9rem;
}

.pie {
  border-top: 1px solid var(--linea);
  color: var(--tenue);
  font-size: 0.92rem;
}

[hidden] {
  display: none !important;
}
