/* cliente/css/cliente.css — mismo lenguaje visual que el resto del sitio
   (paleta tomada del logo real, ver el comentario de tokens en css/style.css) */
:root{
  --bg:            #f4f5f3;
  --surface:       #ffffff;
  --surface-2:     #f4f5f3;
  --border:        #e4e6e2;
  --text:          #0c0f0d;
  --text-muted:    #6b7169;
  --accent:        #2ac1bb;
  --accent-dim:    #1f9c97;
  --accent-ink:    #06211e;
  --accent-text:   #0c7a75;
  --warn:          #e5484d;
  --dark:          #0c0f0d;
  --font-display: 'Archivo Black', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius: 8px;
  --max-w: 720px;
}
*{ box-sizing:border-box; }
body{
  margin:0; min-height:100vh;
  background:var(--bg); color:var(--text); font-family:var(--font-body);
  display:flex; align-items:center; justify-content:center; padding:24px;
}
a{ color:var(--accent-text); text-decoration:none; }
a:hover{ text-decoration:underline; }
input, select, textarea, button{ font-family:inherit; }

/* ---------- Feedback visual al hacer click (ver también css/style.css) ---------- */
button, .btn-secundario, .btn-primario{
  transition: transform .1s ease, filter .1s ease;
  cursor:pointer;
}
button:active:not(:disabled), .btn-secundario:active, .btn-primario:active{
  transform: scale(.94);
  filter: brightness(.88);
}
@media (prefers-reduced-motion: reduce){
  button, .btn-secundario, .btn-primario{ transition:none; }
  button:active, .btn-secundario:active, .btn-primario:active{ transform:none; filter:none; }
}

.box{
  background:var(--surface);
  border:1px solid var(--border);
  padding:2.4rem;
  border-radius:14px;
  width:100%; max-width:400px;
  box-shadow:0 12px 32px rgba(12,15,13,.06);
}
.box-logo{ display:block; height:60px; width:60px; object-fit:contain; border-radius:50%; margin:0 auto 1rem; }
.box h1{ font-family:var(--font-display); font-size:1.2rem; margin:0 0 .3rem; text-align:center; }
.box .subt{ color:var(--text-muted); font-size:.85rem; margin:0 0 1.4rem; }
.box label{ display:block; font-size:.82rem; color:var(--text-muted); margin:.9rem 0 .3rem; }
.box input{
  width:100%; padding:.7rem .8rem; border-radius:var(--radius);
  border:1px solid var(--border); background:var(--bg); color:var(--text);
}
.box button{
  margin-top:1.5rem; width:100%; padding:.8rem;
  border:none; border-radius:var(--radius);
  background:var(--dark); color:#fff; font-weight:700; cursor:pointer;
}
.box button:hover:not(:disabled){ background:var(--accent-dim); }
.box button:disabled{ opacity:.5; cursor:default; }
.error{ color:var(--warn); font-size:.85rem; margin-top:.8rem; min-height:1em; }
.ok-msg{ color:var(--accent-text); font-size:.85rem; margin-top:.8rem; }
.footer-link{ margin-top:1.2rem; font-size:.85rem; color:var(--text-muted); text-align:center; }

/* ---------- Mi cuenta / historial ---------- */
.cuenta-wrap{ max-width:800px; width:100%; }
.cuenta-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; flex-wrap:wrap; gap:10px; }
.aviso-verificacion{
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  background:rgba(42,193,187,.12); border:1px solid var(--accent); border-radius:8px;
  padding:.8rem 1rem; margin-bottom:1.5rem; font-size:.85rem;
}
.cuenta-head h1{ font-family:var(--font-display); font-size:1.3rem; margin:0; }
.cuenta-head p{ color:var(--text-muted); font-size:.85rem; margin:.2rem 0 0; }
.btn-secundario{
  background:var(--surface-2); border:1px solid var(--border); color:var(--text);
  padding:.6rem 1rem; border-radius:var(--radius); cursor:pointer; font-size:.85rem;
}
table.historial{ width:100%; border-collapse:collapse; background:var(--surface); border-radius:8px; overflow:hidden; }
table.historial th, table.historial td{ padding:.8rem 1rem; text-align:left; border-bottom:1px solid var(--border); font-size:.88rem; }
table.historial th{ color:var(--text-muted); font-weight:600; font-size:.78rem; text-transform:uppercase; }
.estado{ padding:.2rem .6rem; border-radius:20px; font-size:.75rem; font-weight:700; background:var(--surface-2); }
.estado.confirmada{ background:var(--accent); color:var(--accent-ink); }
.estado.cancelada{ background:var(--warn); color:#fff; }
.cargando{ color:var(--text-muted); text-align:center; padding:1.5rem !important; }

/* En celular la tabla de historial no entra entera: en vez de achicar las
   columnas hasta hacerlas ilegibles, se deja scrollear horizontalmente. */
@media (max-width:640px){
  body{ padding:16px; align-items:flex-start; }
  .box{ padding:1.8rem 1.4rem; }
  table.historial{ display:block; overflow-x:auto; white-space:nowrap; }
}
