/* Estilos compartidos del sitio de ayuda de AuditApp. Colores tomados de la app (ui/theme/Color.kt). */
:root {
  color-scheme: light;
  --azul: #1B3A5C;
  --azul-claro: #D6E4F0;
  --texto: #0D1B2A;
  --texto-sec: #5A6A7A;
  --fondo: #F4F6F8;
  --tarjeta: #FFFFFF;
  --borde: #E1E6EB;
  --verde: #2E7D52;
  --rojo: #C62828;
  --amarillo: #F9A825;
  --mejora: #1565C0;
  --gris: #757575;
  --morado: #6A4C93;
  --dorado: #B8860B;
  --dorado-claro: #FFF4D6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 60px; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--azul); }

/* Menú */
.sitio-nav {
  background: var(--azul);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.sitio-nav .barra {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sitio-nav .barra::-webkit-scrollbar { display: none; }
.sitio-nav a {
  flex: 0 0 auto;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  padding: 13px 10px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.sitio-nav a:hover { color: #fff; }
.sitio-nav a[aria-current="page"] {
  color: #fff;
  font-weight: 600;
  border-bottom-color: #fff;
}
.sitio-nav a.marca {
  color: #fff;
  font-weight: 700;
  margin-right: 6px;
}

/* Encabezado de página */
.cabecera {
  background: var(--azul);
  color: #fff;
  padding: 28px 16px 32px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cabecera h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.3; }
.cabecera p { margin: 0 auto; max-width: 560px; opacity: .88; font-size: 1rem; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.tarjeta {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.tarjeta > :first-child { margin-top: 0; }
.tarjeta > :last-child { margin-bottom: 0; }
h2 { color: var(--azul); font-size: 1.2rem; margin: 32px 0 12px; }
h2:first-child { margin-top: 0; }
h3 { color: var(--azul); font-size: 1.05rem; margin: 0 0 6px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.nota { color: var(--texto-sec); font-size: .92rem; }

/* Inicio */
.lista-funciones { list-style: none; padding: 0; margin: 0; }
.lista-funciones li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.lista-funciones li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--verde);
}
.boton {
  display: inline-block;
  background: var(--azul);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
}
.boton:hover { background: #142C46; }
.centro { text-align: center; }
.enlaces-rapidos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.enlaces-rapidos a {
  display: block;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--texto);
}
.enlaces-rapidos a strong { color: var(--azul); display: block; }
.enlaces-rapidos a span { color: var(--texto-sec); font-size: .9rem; }
.enlaces-rapidos a:hover { border-color: var(--azul); }

/* Primeros pasos */
.pasos { list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.pasos li {
  counter-increment: paso;
  position: relative;
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  padding: 16px 18px 16px 64px;
  margin-bottom: 12px;
}
.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pasos h3 { margin-bottom: 4px; }
.pasos p { margin: 0; }
.estado {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
}
.estado.conforme { background: var(--verde); }
.estado.menor { background: var(--amarillo); color: #3A2A00; }
.estado.mayor { background: var(--rojo); }
.estado.mejora { background: var(--mejora); }
.estado.na { background: var(--gris); }

/* Preguntas frecuentes */
.indice-faq {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.indice-faq a {
  flex: 0 0 auto;
  background: var(--azul-claro);
  color: var(--azul);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
details {
  background: var(--tarjeta);
  border: 1px solid var(--borde);
  border-radius: 12px;
  margin-bottom: 8px;
}
details[open] { border-color: #C5D2DE; }
summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 18px;
  font-weight: 600;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--azul);
  border-bottom: 2px solid var(--azul);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
summary:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; border-radius: 12px; }
.respuesta { padding: 0 18px 16px; }
.respuesta > :first-child { margin-top: 0; }
.respuesta > :last-child { margin-bottom: 0; }

/* Consejos */
.consejo h3 { margin-bottom: 4px; }
.consejo p { margin: 0; }
.consejo.ia { background: var(--dorado-claro); border-color: #EBD9A6; }

/* Legales */
.legal-link h3 a { text-decoration: none; }
.legal-link h3 a:hover { text-decoration: underline; }
.legal-link p { margin: 0; color: var(--texto-sec); }

.ruta { font-weight: 600; }

footer {
  text-align: center;
  color: var(--texto-sec);
  font-size: .85rem;
  padding: 0 16px 32px;
}
footer a { color: var(--texto-sec); }
