/* Estilos de las páginas del socio (inicio, liga, credencial, descuentos) — marca La Kehile */
:root {
  --marca: #001689;
  --marca-2: #2337b4;
  --marca-suave: #e8ecfa;
  --gris: #808080;
  --fondo: #eef1f7;
  --superficie: #ffffff;
  --tinta: #0b1640;
  --tinta-suave: #5a6385;
  --rojo: #c8102e;
  --verde: #12804a;
  --borde: #d9deec;
  --radio: 20px;
  --sello: #1e88e5;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: linear-gradient(180deg, #f6f8fc 0%, var(--fondo) 100%) fixed, var(--fondo);
  color: var(--tinta);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.contenedor {
  max-width: 460px;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.marca { display: flex; align-items: center; gap: 10px; color: var(--marca); font-weight: 700; }
.marca img { height: 46px; width: auto; display: block; }
.marca img.alianza { height: 50px; }
.marca .separador { width: 1px; height: 34px; background: var(--borde); }

.panel {
  margin-top: 22px;
  background: var(--superficie);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 24px 20px;
  box-shadow: 0 10px 30px -18px rgba(0, 22, 137, 0.35);
}
.panel h1 { font-size: 1.45rem; margin: 0 0 10px; color: var(--marca); }
.panel p { color: var(--tinta-suave); line-height: 1.5; margin: 0 0 14px; }

label { display: block; font-size: 0.9rem; color: var(--tinta-suave); margin-bottom: 6px; }
input[type="text"] {
  width: 100%; font: 1rem system-ui, sans-serif; padding: 13px 12px; border-radius: 12px;
  border: 1px solid var(--borde); background: #fff; color: var(--tinta);
}
input[type="text"]:focus { outline: 2px solid var(--marca); outline-offset: 2px; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 16px; padding: 16px 18px;
  font: 700 1.05rem system-ui, sans-serif; text-decoration: none;
  color: #fff; background: var(--marca);
  border: 0; border-radius: 14px; cursor: pointer;
}
.boton:disabled { opacity: 0.6; cursor: progress; }
.boton.secundario { background: #fff; color: var(--marca); border: 2px solid var(--marca); }
.boton svg { width: 24px; height: 24px; flex: none; }

.error { color: var(--rojo); margin-top: 12px; min-height: 1.2em; }
.nota { font-size: 0.9rem; color: var(--tinta-suave); line-height: 1.5; }
.centro { text-align: center; }
.grande { font-size: 1.2rem; color: var(--tinta) !important; }
details { margin-top: 18px; }
summary { cursor: pointer; padding: 6px 0; }
.girando {
  width: 44px; height: 44px; margin: 8px auto 16px; border-radius: 50%;
  border: 4px solid var(--borde); border-top-color: var(--marca); animation: girar-carga 0.9s linear infinite;
}
@keyframes girar-carga { to { transform: rotate(360deg); } }

/* Bloqueo por ubicación (país): aviso con el número de bloqueo (comun.js → mostrarBloqueo) */
.bloqueo-ubicacion { max-width: 34rem; margin: 3rem auto; padding: 0 1rem; font-size: 1.15rem; line-height: 1.5; }
.bloqueo-ubicacion h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.bloqueo-ubicacion strong { font-size: 1.5rem; letter-spacing: .05em; white-space: nowrap; }

/* Recuadros de aviso de la credencial (Noam 4-nov-2026): un solo diseño, cuatro tipos (KC.recuadro en comun.js).
   accion = falta hacer algo · info = para su información · listo = ya quedó · cancelado */
.recuadro { margin: 12px 0; padding: 12px 14px 14px; border-radius: 12px; border: 1px solid var(--borde); border-left-width: 6px; background: #fff; text-align: left; }
.recuadro > .etq { display: block; margin-bottom: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.recuadro > .titulo-recuadro { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; color: var(--tinta); line-height: 1.3; }
.recuadro p { margin: 4px 0 0; }
.recuadro .boton { margin-top: 12px; }
.recuadro.rc-accion { background: #fff8e6; border-color: #f0d48a; border-left-color: #e0a100; }
.recuadro.rc-accion > .etq { color: #8a5a00; }
.recuadro.rc-info { background: #fff; border-color: var(--borde); border-left-color: var(--marca); }
.recuadro.rc-info > .etq { color: var(--marca); }
.recuadro.rc-listo { background: #e9f7ef; border-color: #a8dcbd; border-left-color: #1a8a4a; }
.recuadro.rc-listo > .etq { color: #1a8a4a; }
.recuadro.rc-listo > .titulo-recuadro { color: #0b5d34; }
.recuadro.rc-cancelado { background: #fdeef0; border-color: #f1b3bd; border-left-color: var(--rojo); }
.recuadro.rc-cancelado > .etq { color: var(--rojo); }
.recuadro.rc-cancelado > .titulo-recuadro { color: #7d0a1d; }
/* Vínculo operativo (p. ej. «cambiar» junto al WhatsApp) */
.liga-sutil { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-size: .95rem; color: var(--marca); text-decoration: underline; cursor: pointer; }

/* «Estoy de viaje» en la pantalla de bloqueo por país */
.bloqueo-viaje { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #ddd; }
.bloqueo-viaje input { display: block; width: 100%; box-sizing: border-box; font-size: 1.1rem; padding: .7rem; margin: .6rem 0; }
