/* Estilo de pantalla del panel.
 *
 * Los colores y las familias de la marca vienen de /marca/estilos.css
 * (generado desde auditor.report.marca): aquí sólo se usan con var(--…).
 * Los grises neutros de abajo no son de marca. Tamaños en rem: es pantalla,
 * no papel.
 */

:root {
  --gris-fondo: #f4f4f5;
  --gris-borde: #d9d9de;
  --gris-suave: #6b6b75;
  --ancho-legible: 72rem;
}

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

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gris-fondo);
  color: var(--ink);
  font-family: var(--fuente-cuerpo);
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulares);
  color: var(--ink-strong);
  line-height: 1.2;
}

h1 { font-size: 1.75rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }

a {
  color: var(--primary);
}

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

/* --- Cabecera ------------------------------------------------------------ */

.cabecera {
  background: var(--primary-dark);
  color: var(--surface);
  font-family: var(--fuente-cabecera);
}

.cabecera__interior {
  max-width: var(--ancho-legible);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cabecera__marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--surface);
  text-decoration: none;
}

.cabecera__logo {
  height: 2.25rem;
  width: auto;
  background: var(--surface);
  border-radius: 0.25rem;
  padding: 0.15rem 0.4rem;
}

.cabecera__producto {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navegacion ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.navegacion a {
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
}

.navegacion a:hover {
  text-decoration: underline;
}

.cabecera__usuario {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Contenido ----------------------------------------------------------- */

.contenido {
  flex: 1;
  width: 100%;
  max-width: var(--ancho-legible);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tarjeta {
  background: var(--surface);
  border: 1px solid var(--gris-borde);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.tarjeta--estrecha {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.codigo-de-error {
  font-family: var(--fuente-titulares);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.aviso {
  border-left: 4px solid var(--accent);
  background: var(--gris-fondo);
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
}

/* Plan 5c: un plugin temporal del auditor que quedó en el sitio del cliente. */
.aviso-plugin {
  border-left-color: var(--severidad-critico);
  font-weight: 600;
}

.texto-suave {
  color: var(--gris-suave);
}

/* --- Tablas -------------------------------------------------------------- */

.tabla-contenedor {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--gris-borde);
  border-radius: 0.5rem;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--gris-borde);
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-family: var(--fuente-titulares);
  color: var(--ink-strong);
  z-index: 1;
}

/* --- Formularios --------------------------------------------------------- */

.formulario {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.formulario label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--gris-borde);
  border-radius: 0.35rem;
  background: var(--surface);
  color: var(--ink);
}

.en-linea {
  display: inline;
  margin: 0;
}

.boton {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--surface);
}

.boton:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.boton--discreto {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  padding: 0.3rem 0.8rem;
}

.boton--discreto:hover {
  background: transparent;
  border-color: currentColor;
  text-decoration: underline;
}

/* --- Pie ----------------------------------------------------------------- */

.pie {
  text-align: center;
  padding: 1.5rem;
  color: var(--gris-suave);
  font-size: 0.875rem;
}
