/* Manual de usuario — App Sucre Escucha 2026 */
:root {
  --verde: #2e7d32;
  --verde-claro: #e8f5e9;
  --morado: #6a1b9a;
  --azul: #1565c0;
  --gris: #455a64;
  --borde: #cfd8dc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  color: #263238;
  margin: 0;
  background: #f5f7fa;
}

.manual-wrap {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
}

.portada {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(160deg, #fff 0%, var(--verde-claro) 100%);
  border-bottom: 6px solid var(--verde);
}

.portada img.logo {
  max-width: 280px;
  height: auto;
}

.portada h1 {
  color: var(--morado);
  font-size: 2rem;
  margin: 1rem 0 .25rem;
}

.portada .subtitulo {
  font-size: 1.15rem;
  color: var(--gris);
  margin-bottom: 1.5rem;
}

.portada .meta {
  font-size: .9rem;
  color: #607d8b;
}

.barra-acciones {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--borde);
  padding: .6rem 1.5rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.barra-acciones a, .barra-acciones button {
  font-size: .9rem;
  text-decoration: none;
  padding: .45rem .9rem;
  border-radius: 6px;
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--azul);
  cursor: pointer;
}

.barra-acciones .btn-pdf {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
}

.contenido { padding: 2rem 2.5rem 3rem; }

h2 {
  color: var(--verde);
  border-bottom: 2px solid var(--verde-claro);
  padding-bottom: .35rem;
  margin-top: 2.5rem;
  page-break-after: avoid;
}

h3 {
  color: var(--morado);
  margin-top: 1.75rem;
  page-break-after: avoid;
}

h4 { color: var(--gris); margin-top: 1.25rem; }

.indice {
  background: #fafbfc;
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.indice ol { margin: 0; padding-left: 1.25rem; }
.indice li { margin: .35rem 0; }
.indice a { color: var(--azul); text-decoration: none; }
.indice a:hover { text-decoration: underline; }

.nota, .advertencia, .consejo {
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
  page-break-inside: avoid;
}

.nota { background: #e3f2fd; border-left: 4px solid var(--azul); }
.advertencia { background: #ffebee; border-left: 4px solid #c62828; }
.consejo { background: var(--verde-claro); border-left: 4px solid var(--verde); }

.pasos {
  counter-reset: paso;
  list-style: none;
  padding: 0;
}

.pasos li {
  counter-increment: paso;
  position: relative;
  padding: .65rem 0 .65rem 2.75rem;
  border-bottom: 1px dashed #eceff1;
}

.pasos li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: .55rem;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 1.85rem;
  text-align: center;
  background: var(--verde);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
}

.captura {
  margin: 1.25rem 0 1.75rem;
  text-align: center;
  page-break-inside: avoid;
}

.captura img {
  max-width: 320px;
  width: 100%;
  border: 1px solid var(--borde);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.captura.ancho img { max-width: 100%; }

.captura figcaption {
  font-size: .88rem;
  color: #607d8b;
  margin-top: .6rem;
  font-style: italic;
}

.tabla-roles, table.datos {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .92rem;
}

.tabla-roles th, .tabla-roles td,
table.datos th, table.datos td {
  border: 1px solid var(--borde);
  padding: .55rem .7rem;
  text-align: left;
  vertical-align: top;
}

.tabla-roles th, table.datos th {
  background: var(--verde-claro);
  color: var(--verde);
}

.menu-iconos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.menu-iconos .item {
  text-align: center;
  width: 110px;
  font-size: .78rem;
  color: var(--gris);
}

.menu-iconos img {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto .35rem;
}

.semaforo-leyenda span {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 4px;
  margin-right: .5rem;
  font-size: .85rem;
}

.verde { background: #c8e6c9; }
.amarillo { background: #fff9c4; }
.rojo { background: #ffcdd2; }

footer.manual-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: .82rem;
  color: #90a4ae;
  border-top: 1px solid var(--borde);
}

@media print {
  body { background: #fff; }
  .manual-wrap { box-shadow: none; max-width: 100%; }
  .barra-acciones { display: none; }
  .contenido { padding: 1rem 1.25rem; }
  h2 { page-break-before: auto; }
  .captura img { max-width: 280px; }
  a { color: inherit; text-decoration: none; }
}
