/* Estilos compartidos de /cuenta (clientes) y /gestion (Freire). Mismos colores y letras que la web. */
:root {
  --blanco: #FFFFFF; --superficie: #F4F4F7; --tinta: #1B1A3A; --suave: #54536B; --linea: #E4E4EC;
  --marino: #2E2C6E; --marino-osc: #211F52; --rojo: #B8232B; --verde: #1C5B35; --ambar: #8A5A00;
  --f-titulo: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --f-texto: "Instrument Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  --radio: 8px; color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--superficie); color: var(--tinta); font-family: var(--f-texto); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--rojo); outline-offset: 3px; }
.suave { color: var(--suave); }
.contenedor { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

.cabecera { background: #fff; border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { height: 72px; display: flex; align-items: center; gap: 20px; }
.logo { text-decoration: none; }
.logo img { height: 42px; width: auto; display: block; }
.logo .texto-logo { font-family: var(--f-titulo); font-weight: 700; font-size: 22px; color: var(--marino); text-decoration: none; }
.cab-der { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15.5px; }
.cab-der a, .cab-der button { text-decoration: none; font-weight: 500; background: none; border: 0; padding: 6px 0; cursor: pointer; border-bottom: 2px solid transparent; }
.cab-der a:hover, .cab-der button:hover { border-bottom-color: var(--marino); }

main { padding: clamp(28px, 5vw, 56px) 0 72px; }
.titulo { display: grid; gap: 6px; margin-bottom: 28px; }
.titulo h1 { font-size: clamp(30px, 4.4vw, 44px); }

.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--radio); border: 1.5px solid var(--marino); background: var(--marino); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; }
.boton:hover { background: var(--marino-osc); border-color: var(--marino-osc); }
.boton.claro { background: #fff; color: var(--marino); }
.boton.claro:hover { background: var(--superficie); }
.boton.rojo { background: var(--rojo); border-color: var(--rojo); }
.boton.rojo:hover { background: #9C1C23; border-color: #9C1C23; }
.boton.chico { min-height: 38px; padding: 6px 14px; font-size: 14.5px; }
.boton[disabled] { opacity: .55; cursor: wait; }
.boton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.enlace { color: var(--marino); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.enlace:hover { color: var(--rojo); }

.caja { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: clamp(20px, 3vw, 30px); }
.caja h2 { font-size: 23px; margin-bottom: 6px; }
.pila { display: grid; gap: 22px; }
form { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; min-width: 0; }
.campo label { font-size: 14.5px; font-weight: 600; }
.campo input, .campo select, .campo textarea { width: 100%; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--linea); border-radius: 6px; background: #fff; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .renglon input:focus { outline: none; border-color: var(--marino); box-shadow: 0 0 0 3px rgba(46, 44, 110, .15); }
.campo textarea { min-height: 90px; resize: vertical; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .dos { grid-template-columns: 1fr; } }
.aviso { font-size: 15px; padding: 11px 14px; border-radius: 6px; background: #FBEAEA; color: #7A1218; }
.aviso.ok { background: #E8F3EC; color: var(--verde); }
.nota { font-size: 14px; color: var(--suave); }
.cargando { padding: 40px 0; color: var(--suave); }

.etiqueta { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--superficie); color: var(--suave); white-space: nowrap; }
.etiqueta.pendiente, .etiqueta.recibido { background: #FFF3D6; color: var(--ambar); }
.etiqueta.aprobado, .etiqueta.despachado { background: #E8F3EC; color: var(--verde); }
.etiqueta.rechazado, .etiqueta.suspendido, .etiqueta.anulado { background: #FBEAEA; color: #7A1218; }
.etiqueta.en-preparacion { background: #E8E8F6; color: var(--marino); }
