* { box-sizing: border-box; }
html, body {
  height: 100%;
}
body {
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: #F5F6FA;
  margin: 0;
  padding: 0;
  color: #2F3542;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.contenedor {
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 20px;
  flex: 1;
}
h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 4px;
  color: #003247;
}
.subtitulo {
  text-align: center;
  font-size: 13px;
  color: #FFFFFF; /*#666;*/
  margin-bottom: 24px;
}
.tarjeta {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 14px;
}
label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  margin-top: 14px;
}
input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}
input:focus, select:focus {
  outline: none;
  border-color: #003247;
}
button {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
}
/* Acciones principales (Ingresar, Guardar cliente, Registrar visita) -> acento naranja (135deg, #0d9488 10%, #0f172a 100%)*/
.btn-primario { background: #0d9488; color: white; }
.btn-primario:active { background: #003247; }
/* Acciones secundarias (Capturar ubicación, Restablecer password) -> neutro */
.btn-secundario { background: #eee; color: #333; }
.btn-exito { background: #1fae5f; color: white; }
.btn-peligro { background: #e0392c; color: white; }
.oculto { display: none; }
.fila-botones { display: flex; gap: 10px; }
.fila-botones button { margin-top: 0; }
.cliente-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.cliente-item:last-child { border-bottom: none; }
.cliente-nombre { font-weight: 600; font-size: 14px; }
.cliente-doc { font-size: 12px; color: #777; }
.mensaje {
  text-align: center;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}
.mensaje-error { background: #fdeaea; color: #c62828; }
.mensaje-exito { background: #e7f7ee; color: #1fae5f; }
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.top-bar b { color: #003247; }
.top-bar .salir { font-size: 13px; color: #e0392c; cursor: pointer; }

.campo-password { position: relative; }
.campo-password input { padding-right: 44px; }
.btn-ojo {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Acción secundaria de innovación/creación -> verde menta */
.btn-agregar {
  background: none;
  border: 1.5px dashed #00C49A;
  color: #00C49A;
  font-weight: 600;
  padding: 12px;
  border-radius: 10px;
  margin-top: 14px;
}

.link-secundario {
  text-align: center;
  font-size: 13px;
  color: #00C49A;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.nc-doc-estado {
  font-size: 12px;
  margin-top: 6px;
  color: #777;
}
.nc-doc-encontrado { color: #1fae5f; }
.nc-doc-no-encontrado { color: #e0a92c; }

.tabla-resumen {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tabla-resumen th {
  text-align: center;
  font-size: 11px;
  color: #777;
  padding: 8px 4px;
  border-bottom: 1px solid #ddd;
}
.tabla-resumen th:first-child, .tabla-resumen td:first-child {
  text-align: left;
}
.tabla-resumen td {
  text-align: center;
  padding: 10px 4px;
  border-bottom: 1px solid #f0f0f0;
}
.tabla-resumen tr.fila-total td {
  font-weight: 700;
  border-top: 2px solid #003247;
  border-bottom: none;
}
/* Semáforo de efectividad: funcional, NO se toca con la paleta de marca */
.badge-efectividad {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  color: white;
  font-size: 12px;
  min-width: 44px;
  text-align: center;
}
.rojo { background: #e0392c; }
.amarillo { background: #e0a92c; }
.verde { background: #1fae5f; }

.seccion-reset {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.seccion-reset h3 {
  font-size: 14px;
  margin: 0 0 4px;
  color: #003247;
}

.franja-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}
.franja-logos img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}
.franja-logos .separador {
  width: 1px;
  height: 32px;
  background: #003247;/*#ddd;*/
}

.pie-pagina {
  text-align: center;
  font-size: 11px;
  color: #FFFFFF;/*#003247;*/
  padding: 14px 0 18px;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0.6;
}
