:root {
  --color: #2A4DB0;          /* lo cambia cada página con el color del negocio */
  --fondo: #F3F5F4;
  --superficie: #FFFFFF;
  --texto: #16202B;
  --texto-2: #475566;
  --suave: #6A7684;
  --linea: #D6DDE2;
  --ok: #1D7349;  --ok-fondo: #DDF0E5;
  --aviso: #8A5206; --aviso-fondo: #F7E9D2;
  --error: #AE2A21; --error-fondo: #F8E0DD;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fondo: #0F141B; --superficie: #161D27; --texto: #E6EBF1; --texto-2: #B7C1CD; --suave: #8793A2; --linea: #29333F;
    --ok: #5CC08C; --ok-fondo: #15291F; --aviso: #E0A650; --aviso-fondo: #2E2414; --error: #EE7A70; --error-fondo: #331A18;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--fondo); color: var(--texto);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding: 16px; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
}
main { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; text-wrap: balance; }
h2 { font-size: 19px; margin: 0; }
p { margin: 0; }
a { color: var(--texto); text-decoration-color: var(--color); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cabecera { background: var(--color); color: #fff; border-radius: 16px; padding: 22px 20px; display: flex; gap: 14px; align-items: center; }
.cabecera img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; }
.cabecera .nombre { font-size: 21px; font-weight: 700; line-height: 1.2; }
.cabecera .sub { font-size: 14px; opacity: .9; }
.tarjeta { background: var(--superficie); border: 1px solid var(--linea); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.puntos { display: flex; flex-wrap: wrap; gap: 6px; }
.puntos span { width: 22px; height: 22px; border-radius: 50%; border: 2px dashed var(--linea); }
.puntos span.lleno { background: var(--color); border-color: var(--color); }
label { font-weight: 600; font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
label small { font-weight: 400; color: var(--suave); }
input[type=text], input[type=email], input[type=date], input[type=password], input[type=tel], select {
  font: inherit; font-size: 17px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--linea); background: var(--fondo); color: var(--texto); width: 100%;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--color); outline-offset: 1px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--texto-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color); }
button, .boton {
  font: inherit; font-size: 17px; font-weight: 700; border: none; border-radius: 12px; padding: 15px 18px;
  background: var(--color); color: #fff; cursor: pointer; text-align: center; text-decoration: none; display: block; width: 100%;
}
button.secundario { background: transparent; color: var(--texto); border: 1px solid var(--linea); font-weight: 600; }
button:disabled { opacity: .6; cursor: default; }
.mensaje { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.mensaje.ok { background: var(--ok-fondo); color: var(--ok); }
.mensaje.aviso { background: var(--aviso-fondo); color: var(--aviso); }
.mensaje.error { background: var(--error-fondo); color: var(--error); }
.pie { font-size: 12.5px; color: var(--suave); text-align: center; padding: 8px 0 24px; }
.idiomas { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.idiomas button { width: auto; padding: 6px 10px; font-size: 13px; font-weight: 600; background: transparent; color: var(--suave); border-radius: 8px; }
.idiomas button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); border: 1px solid var(--linea); }
[hidden] { display: none !important; }
