/* Extranet: colores solo de las variables de base.css (claro y oscuro). */
body { display: flex; flex-direction: column; min-height: 100vh; }

.barra {
  background: var(--navbar); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; position: sticky; top: 0; z-index: 10;
}
.marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.marca img { height: 30px; width: auto; }
.marca span { border-left: 1px solid rgba(255,255,255,0.4); padding-left: 10px; }
.barra-usuario { display: flex; align-items: center; gap: 12px; min-width: 0; }
.barra-local { font-size: 0.9rem; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-usuario form { margin: 0; }
.boton-barra {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px; padding: 6px 14px; cursor: pointer;
}
.boton-barra:hover { background: var(--navbar-2); }

.contenedor { width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 16px; flex: 1; }
.tarjeta {
  background: var(--card); border: 1px solid var(--borde); border-radius: 14px;
  padding: 24px; box-shadow: 0 2px 10px var(--sombra);
}
.ingreso, .mensaje { max-width: 420px; margin: 40px auto; text-align: center; }
.ingreso h1, .mensaje h1 { margin: 0 0 6px; font-size: 1.5rem; }
.sub { color: var(--sub); margin: 0 0 18px; }
.nota { color: var(--sub); font-size: 0.85rem; margin: 16px 0 0; line-height: 1.5; }
.aviso { background: var(--info-bg); color: var(--info-tx); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; font-size: 0.92rem; }

.boton {
  display: inline-block; border-radius: 10px; padding: 12px 18px; text-decoration: none;
  border: 1px solid var(--borde); color: var(--primario); font-weight: 600;
}
.boton.principal { background: var(--navbar); border-color: var(--navbar); color: #fff; width: 100%; }
.boton.principal:hover { background: var(--navbar-2); }

.saludo { margin: 0 0 4px; font-size: 1.6rem; }
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.modulo {
  display: flex; gap: 14px; align-items: flex-start; min-width: 0;
  background: var(--card); border: 1px solid var(--borde); border-radius: 14px; padding: 18px;
}
.modulo svg {
  flex: 0 0 auto; width: 34px; height: 34px; fill: none; stroke: var(--primario);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.modulo b { display: block; margin-bottom: 4px; }
.modulo span { color: var(--sub); font-size: 0.9rem; line-height: 1.45; }
.modulo em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 0.75rem; font-weight: 700;
  background: var(--pista); color: var(--sub); border-radius: 999px; padding: 2px 10px; }
.modulo.pendiente { opacity: 0.75; }

.aviso.error { background: var(--err-bg); color: var(--err-tx); }
.aviso.ok { background: var(--ok-bg); color: var(--ok-tx); }
.boton-barra { text-decoration: none; display: inline-block; }

/* Formularios (ingreso y Mi cuenta) */
.ingreso { text-align: left; }
.ingreso h1, .ingreso > .sub { text-align: center; }
.ingreso label, .formulario label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; }
.ingreso input, .formulario input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--campo-borde); border-radius: 10px; font-size: 1rem;
}
.formulario label input { margin-top: 6px; font-weight: 400; }
.ingreso input:focus, .formulario input:focus { outline: 2px solid var(--primario); outline-offset: 1px; }
.ingreso .boton.principal, .formulario .boton { margin-top: 18px; cursor: pointer; font-size: 1rem; }
.formulario .boton:not(.principal) { background: transparent; }
.cf-turnstile { margin-top: 16px; min-height: 65px; }
.campo-clave { position: relative; }
.campo-clave input { padding-right: 84px; }
.campo-clave .enlace { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.enlace { background: none; border: none; color: var(--primario); cursor: pointer; padding: 6px; font-weight: 600; }
.ingreso > .enlace { display: block; margin: 12px auto 0; }

.columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.columnas > * { min-width: 0; }
.formulario h2 { margin: 0 0 4px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 0.75rem; border-radius: 999px; padding: 2px 10px; }
.chip.ok { background: var(--ok-bg); color: var(--ok-tx); }
.pasos { margin: 12px 0; padding-left: 20px; line-height: 1.6; color: var(--texto); }
.qr { width: 200px; max-width: 100%; margin: 8px auto; background: var(--papel); border-radius: 10px; padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.clave { font-size: 0.85rem; word-break: break-all; }

.pie { text-align: center; color: var(--tenue); font-size: 0.8rem; padding: 18px 16px; }

@media (max-width: 640px) {
  .barra-local { display: none; }
  .ingreso, .mensaje { margin: 16px auto; }
}
