/* Zona de Clientes · Alfa y Omega Diseños de Corazón */
:root {
  --navy: #22306b;
  --navy-dark: #18224f;
  --terra: #c2703f;
  --coral: #e8604c;
  --gold: #e0a93e;
  --teal: #1f7a8c;
  --bg: #faf7f2;
  --card: #ffffff;
  --txt: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e8e0d5;
  --ok: #2e7d4f;
  --err: #b3362b;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--txt); line-height: 1.5;
}
.topbar { background: #fff; border-bottom: 3px solid var(--terra); position: sticky; top: 0; z-index: 10; }
.topbar-inner {
  max-width: 960px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.logo { height: 46px; width: auto; }
.topbar-tit { display: flex; flex-direction: column; line-height: 1.2; }
.topbar-tit strong { color: var(--navy); font-size: 17px; }
.topbar-tit span { color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.topbar-nav { margin-left: auto; display: flex; gap: 8px; }
.topbar-nav a {
  text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px;
  padding: 8px 12px; border-radius: 8px;
}
.topbar-nav a:hover { background: #f0e9dc; }
.topbar-nav a.salir { color: var(--err); }
.wrap { max-width: 960px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { color: var(--navy); font-size: 24px; margin: 8px 0 16px; }
h2 { color: var(--navy); font-size: 19px; margin: 26px 0 12px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; color: var(--navy); }
input[type=text], input[type=password], input[type=number], input[type=date],
select, textarea {
  width: 100%; padding: 11px 12px; font-size: 15px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--txt);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--terra); }
textarea { min-height: 80px; resize: vertical; }
.btn {
  display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 10px; margin-top: 14px;
}
.btn:hover { filter: brightness(.94); }
.btn-navy { background: var(--navy); }
.btn-ghost { background: #efe8da; color: var(--navy); }
.btn-danger { background: var(--err); }
.btn-sm { padding: 8px 12px; font-size: 13px; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.flash-ok { background: #e3f2e8; color: var(--ok); border: 1px solid #bfe3cc; }
.flash-error { background: #fbe7e4; color: var(--err); border: 1px solid #f2c4bd; }
.login-box { max-width: 420px; margin: 40px auto; }
.login-box .logo-big { display: block; margin: 0 auto 10px; max-width: 220px; }
.centro { text-align: center; }
.muted { color: var(--muted); font-size: 13px; }
/* Barra de avance */
.avance-wrap { background: #eee5d6; border-radius: 999px; height: 22px; overflow: hidden; margin: 10px 0; }
.avance-bar {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
  transition: width .4s;
}
.avance-num { font-size: 30px; font-weight: 800; color: var(--navy); }
/* Etapas */
.etapas { display: flex; gap: 6px; margin: 14px 0; flex-wrap: wrap; }
.etapa {
  flex: 1 1 0; min-width: 90px; text-align: center; font-size: 12px; font-weight: 600;
  padding: 10px 4px; border-radius: 10px; background: #f0e9dc; color: var(--muted);
}
.etapa.activa { background: var(--navy); color: #fff; }
.etapa.lista { background: #dcefe2; color: var(--ok); }
/* Galería */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.galeria figcaption { font-size: 12px; color: var(--muted); padding: 4px 2px; }
/* Línea de tiempo */
.timeline { list-style: none; padding: 0; margin: 10px 0; }
.timeline li { border-left: 3px solid var(--terra); padding: 4px 0 14px 14px; margin-left: 6px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 8px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--terra);
}
.timeline .t-fecha { font-size: 12px; color: var(--muted); }
.timeline .t-tit { font-weight: 700; color: var(--navy); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } table { font-size: 13px; } }
input[type=range] { width: 100%; accent-color: var(--terra); }
.foto-del { display: inline-block; margin-top: 6px; }

/* Ajustes m\u00f3viles PWA (no tocan el escritorio) */
@media (max-width: 640px) {
  .etapas { display: block; }
  .etapa { width: 100% !important; margin-bottom: 10px; }
  .avance-num { font-size: 28px; }
  img { max-width: 100%; height: auto; }
  input[type="text"], input[type="password"], button { width: 100%; min-height: 48px; font-size: 16px; }
}
