/* Estilo CITAS (sistema "nike"): negro y blanco, gris suave, pildoras, titulos en mayuscula */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); }

:root { --bg: #ffffff; --nube: #f5f5f5; --linea: #cacacb; --linea-suave: #e5e5e5; --tx: #111111; --dim: #707072; --venta: #d30005; --exito: #007d48; color-scheme: light; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--tx); font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; -webkit-font-smoothing: antialiased; }
.oculto { display: none !important; }
.cab { background: #111111; color: #fff; }
.cab-in { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.marca { display: flex; align-items: center; gap: 10px; font-family: "Archivo Black", "Inter", sans-serif; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; }
.marca small { font-family: "Inter", sans-serif; font-weight: 500; text-transform: none; color: #9e9ea0; font-size: 13px; margin-left: 4px; }
.contenido { max-width: 1080px; margin: 0 auto; padding: 24px 20px 64px; }
.tarjeta { background: var(--bg); border-top: 1px solid var(--linea); padding: 22px 0; margin-bottom: 8px; }
.titulo { font-family: "Archivo Black", "Inter", sans-serif; font-weight: 400; font-size: 22px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 8px; }
.ayuda { color: var(--dim); font-size: 14px; margin-bottom: 16px; }
.login { max-width: 400px; margin: 48px auto; }
.grilla-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-items: end; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--tx); font-size: 14px; }
.acciones { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
input, select { font: inherit; font-size: 15px; color: var(--tx); background: #fff; border: 1px solid var(--linea); border-radius: 24px; padding: 10px 16px; width: 100%; min-height: 46px; }
input:focus, select:focus { outline: none; border-color: var(--tx); box-shadow: 0 0 0 4px var(--nube); }
input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: #111111; }
.campo-clave { display: flex; gap: 8px; }
.campo-clave input { flex: 1; }
.ojito { font: inherit; font-size: 13px; font-weight: 500; padding: 0 14px; border-radius: 24px; border: 1px solid var(--linea); background: #fff; color: var(--dim); cursor: pointer; min-width: 60px; }
.sufijo { font-size: 12px; color: var(--dim); }
.btn { font: inherit; font-weight: 500; border: 0; border-radius: 30px; background: #111111; color: #fff; padding: 0 22px; cursor: pointer; min-height: 46px; }
.btn:hover { background: #2b2b2c; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sec { font: inherit; font-weight: 500; border: 0; border-radius: 30px; background: var(--nube); color: var(--tx); padding: 0 18px; min-height: 40px; cursor: pointer; }
.btn-peligro { font: inherit; font-weight: 500; border: 0; border-radius: 30px; background: var(--nube); color: var(--venta); padding: 0 18px; min-height: 40px; cursor: pointer; }
.msg { min-height: 20px; font-size: 14px; color: var(--venta); grid-column: 1 / -1; }
.msg.ok { color: var(--exito); }
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.pestanas button { font: inherit; font-weight: 500; background: var(--nube); color: var(--tx); border: 0; border-radius: 30px; padding: 9px 18px; cursor: pointer; }
.pestanas button.activa { background: #111111; color: #fff; }
.fila-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.lista-clientes { display: grid; gap: 0; }
.cliente { border-top: 1px solid var(--linea-suave); padding: 16px 0; display: grid; gap: 8px; }
.cliente:first-child { border-top: 0; }
.cliente-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cliente-cab strong { font-family: "Archivo Black", "Inter", sans-serif; font-weight: 400; font-size: 17px; text-transform: uppercase; }
.etiqueta { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 30px; background: var(--nube); color: var(--tx); }
.etiqueta.off { color: var(--venta); }
.etiqueta.ok { color: var(--exito); }
.etiqueta.dest { background: #111111; color: #fff; }
.enlace { color: var(--tx); font-weight: 500; word-break: break-all; text-decoration: underline; text-underline-offset: 3px; }
.cliente-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.cliente-edit { display: none; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding: 14px 0 0; border-top: 1px dashed var(--linea); }
.cliente-edit.abierto { display: grid; }
.cliente-edit label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--dim); font-weight: 500; }
.cliente-edit .check { flex-direction: row; align-items: center; color: var(--tx); }
.cliente-edit .acciones { grid-column: 1 / -1; flex-wrap: wrap; }
.confirmar-input { max-width: 300px; }
.vacio { color: var(--dim); padding: 14px 0; }
.aviso { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #111111; color: #fff; padding: 12px 20px; border-radius: 30px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s; max-width: 90vw; }
.aviso.ver { opacity: 1; }
@media (max-width: 640px) {
  .grilla-form, .cliente-edit { grid-template-columns: 1fr; }
  .contenido { padding: 16px 14px 64px; }
}
