/* ============================================================
   DIFERENCER — Estilos globales
   Solo estilos verdaderamente compartidos
   ============================================================ */

:root {
  --azul:       #00bcd4;
  --azul-dark:  #0097a7;
  --azul-light: #e0f7fa;
  --negro:      #1a1a1a;
  --gris:       #888;
  --gris-light: #e8ecf0;
  --blanco:     #ffffff;
  --rojo:       #e53935;
  --radius:     6px;
  --font:       'Montserrat', sans-serif;
}

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

html, body {
  font-family: var(--font);
  background: var(--blanco);
  color: var(--negro);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Campos ── */
.field {
  border: 1.5px solid var(--azul);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--blanco);
}
.field:focus-within { box-shadow: 0 0 0 3px rgba(0,188,212,0.15); }
.field input {
  width: 100%;
  padding: clamp(12px, 3.5vw, 16px) 16px;
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  font-family: var(--font);
  border: none; outline: none;
  color: var(--negro); background: transparent;
}
.field input::placeholder { color: #bbb; font-weight: 400; }
.field.locked input { color: var(--gris); pointer-events: none; }

/* ── Hint ── */
.hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  color: var(--gris);
  margin-bottom: 12px;
  padding: 0 2px;
}
.hint::before { content: '💬'; font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }

/* ── Error ── */
.error-box {
  display: none;
  background: rgba(183,28,28,0.85);
  color: white;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  font-weight: 600;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.error-box.show { display: flex; }
.error-x {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 900; flex-shrink: 0;
}

/* BOTONES - 3 tipos estandar */

/* Tipo 1 - Principal azul solido */
.btn-1 {
  display: block;
  width: 100%;
  padding: clamp(14px, 4vw, 18px);
  background: var(--azul);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  text-align: center;
  box-sizing: border-box;
}
.btn-1:hover    { background: var(--azul-dark); }
.btn-1:active   { transform: scale(0.98); }
.btn-1:disabled { background: var(--gris-light); color: var(--gris); cursor: not-allowed; }

/* Tipo 2 - Outline azul */
.btn-2 {
  display: block;
  width: 100%;
  padding: clamp(12px, 3.5vw, 15px);
  background: white;
  color: var(--azul);
  border: 1.5px solid var(--azul);
  border-radius: var(--radius);
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  text-align: center;
  box-sizing: border-box;
}
.btn-2:hover  { background: var(--azul-light); }
.btn-2:active { transform: scale(0.98); }

/* Tipo 3 - Gris suave */
.btn-3 {
  display: block;
  width: 100%;
  padding: clamp(10px, 3vw, 12px);
  background: white;
  color: var(--gris);
  border: 1.5px solid var(--gris-light);
  border-radius: var(--radius);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 6px;
  text-align: center;
  box-sizing: border-box;
}
.btn-3:hover  { background: var(--gris-light); }
.btn-3:active { transform: scale(0.98); }


.sec-titulo {
  font-size: clamp(1.0rem, 3vw, 1.2rem);
  font-weight: 800;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 12px;
}

/* ── Loading overlay ── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center; align-items: center;
  z-index: 9999;
}
.overlay.show { display: flex; }
.ov-card {
  background: white; padding: 36px; border-radius: 12px;
  text-align: center; max-width: 300px; width: 88%;
  transition: all 0.3s;
}
.ov-card.exito { background: #e8f5e9; border-top: 5px solid #2e7d32; }
.ov-icon { font-size: 2.8rem; margin-bottom: 14px; }
.ov-text { font-size: 1.6rem; font-weight: 700; color: var(--negro); line-height: 1.5; }
.ov-card.exito .ov-text { color: #2e7d32; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--gris-light);
  display: grid; grid-template-columns: repeat(4,1fr);
  padding: 8px 0 14px; z-index: 100;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); padding: 4px 0;
}
.nav-btn svg { width: 22px; height: 22px; stroke: var(--gris); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn span { font-size: 1.0rem; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: 0.3px; }
.nav-btn.active svg  { stroke: var(--azul); }
.nav-btn.active span { color: var(--azul); }

/* ── BARRA CLIENTE compartida ── */
.cliente-bar{
  background:var(--azul-light);
  padding:12px 16px;
  margin-bottom:16px;
}
.cli-fila1{
  display:flex;align-items:center;gap:8px;
  flex-wrap:nowrap;
}
.cli-avatar{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  background:var(--azul);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:white;font-size:1.3rem;font-weight:800;
  flex-shrink:0;
}
.cli-nombre{font-size:1.3rem;font-weight:800;color:var(--negro);white-space:nowrap;}
.cli-sep{
  color:var(--gris-light);font-size:1.8rem;font-weight:200;
  flex-shrink:0;line-height:1;
}
.cli-cel-wrap{
  display:flex;align-items:center;gap:6px;flex-shrink:0;
}
.cli-cel-wrap svg{
  width:16px;height:16px;stroke:var(--azul);
  fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;
  flex-shrink:0;
}
.cli-cel{font-size:1.3rem;font-weight:700;color:var(--negro);white-space:nowrap;}
.cli-compras{
  font-size:1.0rem;font-weight:300;
  color:var(--gris);margin-top:4px;
  text-align:center;
}