/* ============================================================================================
   acceso.css — la pantalla de entrada de Ontime (opción A, D-P16) y sus tarjetas (error, enviada,
   elige tu contraseña). La usan el cuestionario (/cuestionario/) y la Ontime nueva (/nueva/):
   un solo login (D-27). Necesita los tokens oficiales (opfar-tokens.css) cargados antes.
   Sacada de piloto.css el 06/10/2026 sin cambiar ni una regla.
   ============================================================================================ */

/* ---------- capas propias: entrar y error (encima de todo) / enviada (en #app) ----------
   Opción A (D-P16, Guille 24/09/2026): tarjeta blanca como la entrada de Ontime y Atlas, sobre el
   fondo de la entrada de OPFAR (ui_kits/web/entrada.html, .stage: degradado verde profundo,
   rejilla de 64 px y la cruz en marca de agua). Donde allí va el logotipo grande, aquí va la tarjeta. */
.fx-capa, .fx-final {
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(130% 100% at 78% 8%, #1b545f, #123B44 52%, #0c2229);
  font-family: var(--font-body); isolation: isolate;
}
.fx-capa { position: fixed; inset: 0; z-index: var(--z-modal); overflow: auto; }
.fx-final { position: relative; min-height: 100vh; overflow: hidden; }
.fx-capa::before, .fx-final::before {            /* rejilla */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000, transparent 90%);
          mask-image: radial-gradient(120% 100% at 50% 40%, #000, transparent 90%);
}
.fx-capa::after, .fx-final::after {              /* cruz en marca de agua (la misma de entrada.html) */
  content: ''; position: absolute; right: -4%; bottom: -8%; width: 52vmin; height: 52vmin;
  z-index: -1; opacity: .06; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='46' fill='none' stroke='%235BD0D6' stroke-width='4'/%3E%3Cpath d='M42 22 h16 v20 h20 v16 h-20 v20 h-16 v-20 h-20 v-16 h20 z' fill='%235BD0D6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fx-capa::before, .fx-capa::after { position: fixed; }

.fx-tarjeta {
  position: relative; width: min(480px, 100%); margin: auto; box-sizing: border-box;
  background: var(--surface-card); color: var(--text-body);
  border-radius: 26px; padding: 48px 44px 38px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.fx-emblema { width: 76px; height: 76px; display: block; margin: 0 auto 14px; filter: drop-shadow(0 8px 22px rgba(14, 148, 167, .35)); }
.fx-logo .ot-logo { font-size: 42px; }
.fx-tarjeta h1 { font-family: var(--font-body); font-weight: 600; font-size: 17px; color: var(--text-strong); margin: 14px 0 0; letter-spacing: 0; }
.fx-sub { color: var(--text-muted); font-size: 15px; line-height: var(--lh-snug); margin: 6px 0 28px; }
.fx-cuerpo { display: grid; gap: 14px; text-align: left; }

/* Logotipo de ontime (tipográfico): «ontime» en Sora 800, punto turquesa */
.ot-logo { font-family: var(--font-display); font-weight: 800; letter-spacing: -.045em; color: var(--text-strong); line-height: 1; }
.ot-punto { color: var(--color-primary); }

/* Campos */
.fx-campo { display: grid; gap: 0; }
.fx-etq { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* se lee, no se ve */
.fx-cuerpo input {
  display: block; width: 100%; box-sizing: border-box; margin: 0; height: 56px; padding: 0 18px;
  border: 1px solid var(--border-default); border-radius: 11px; background: #FAFCFC;
  font-family: var(--font-body); font-size: 16px; color: var(--text-strong); outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.fx-cuerpo input:focus { border-color: var(--color-primary); background: #fff; box-shadow: var(--shadow-focus); }
.fx-cuerpo input::placeholder { color: var(--text-subtle); }
.fx-pass { position: relative; }
.fx-pass input { padding-right: 52px !important; }
.fx-ojo {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fx-ojo:hover { color: var(--color-primary); background: var(--opfar-info-soft); }
.fx-err { color: var(--opfar-danger); font-size: 13px; }
.fx-err:empty { display: none; }
.fx-boton {
  width: 100%; height: 56px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast);
}
.fx-boton:hover { background: var(--color-primary-hover); }
.fx-boton:active { transform: scale(.985); }
.fx-boton:disabled { opacity: .6; cursor: wait; }
.fx-ayuda { margin: 8px 0 0; text-align: center; font-size: 13.5px; line-height: var(--lh-snug); color: var(--text-muted); }
.fx-ayuda b { color: var(--text-body); font-weight: 600; }
.fx-dato { margin: 0; text-align: center; font-size: 15px; color: var(--text-strong); }
.fx-rotulo {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase; color: var(--text-subtle); margin-bottom: 4px;
}

/* D-114: los avisos de privacidad (el RGPD de siempre y el de los datos de la farmacia, D-112) con esta misma tarjeta,
   algo más ancha, y el texto a la izquierda; solo con los tokens de la marca */
.fx-tarjeta.fx-aviso { width: min(600px, 100%); padding: 40px 40px 32px; }
.fx-aviso .fx-emblema { width: 56px; height: 56px; margin-bottom: 10px; }
.fx-aviso .fx-logo .ot-logo { font-size: 32px; }
.fx-aviso h1 { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.fx-aviso .fx-sub { font-size: 12.5px; margin: 6px 0 20px; }
.fx-aviso .fx-cuerpo { gap: 10px; }
.fx-aviso-texto { margin: 0; font-size: 15px; line-height: var(--lh-body); color: var(--text-body); }
.fx-aviso-nota { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--opfar-info-soft); color: var(--text-muted); font-size: 13px; line-height: var(--lh-body); }
.fx-aviso-fila { padding: 0 0 10px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; line-height: var(--lh-body); color: var(--text-body); }
.fx-aviso-fila b { font-weight: 600; color: var(--text-strong); }
.fx-aviso-fila > b:first-child { display: block; color: var(--color-primary); font-size: 13px; margin-bottom: 2px; }
.fx-aviso-texto b, .fx-aviso-nota b { color: var(--text-strong); font-weight: 600; }
.fx-aviso .fx-ayuda { font-size: 12.5px; }

@media (max-width: 640px) {
  .fx-tarjeta { padding: 34px 24px 28px; }
  .fx-tarjeta.fx-aviso { padding: 30px 20px 24px; }
}

/* Barras de scroll minimalistas, como las de hola.opfar.es (en todas las pantallas de Ontime y del formulario):
   finas, redondeadas, sin carril y en gris azulado. Firefox no tiene ::-webkit-scrollbar: allí, las estándar. */
:root { --sb-thumb: rgba(122, 152, 158, .55); --sb-thumb-hover: rgba(122, 152, 158, .85); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
/* Los desplegables de OPFAR (desplegables.js, D-61): la lista que se abre en vez de la del sistema */
/* Revisión de Guille (13/10/2026): lista algo más compacta (radio 14, relleno 4; opciones 7/10 px y 13,5 px) */
.ot-lista { position: fixed; z-index: 1000; box-sizing: border-box; background: #fff; border: 1px solid #dfebec; border-radius: 14px; box-shadow: 0 18px 40px rgba(18, 59, 68, .18); padding: 4px; overflow: auto; overscroll-behavior: contain; }
.ot-op { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; box-sizing: border-box; text-align: left; border: 0; background: none; border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 13.5px; line-height: 1.3; color: #123B44; cursor: pointer; }
.ot-op:hover, .ot-op:focus-visible, .ot-op.activa { background: #eef6f7; outline: none; }
.ot-op.sel { background: #dceff1; color: #0A7581; font-weight: 600; }
.ot-op i { font-style: normal; color: #0FA3B4; flex: none; }
.ot-op[disabled] { color: #aab9bc; cursor: default; background: none; }
.ot-grupo { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b838a; padding: 10px 12px 4px; }
.ot-grupo:first-child { padding-top: 4px; }
/* El buscador de las listas largas (desplegables.js, 20/10/2026, pedido por Jessica): con más de 12 opciones (o con
   data-buscador="si") la lista es una columna, el campo «Buscar» arriba y fijo, y las opciones debajo con su propio
   scroll. La opción activa (flechas o ratón; el foco se queda en el campo) se ve como la que tiene el foco en las listas
   cortas (.ot-op.activa, arriba). El campo, como los de Ontime (.mc-input) y a 16 px: con menos, el iPhone se acerca. */
.ot-lista.con-buscar { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ot-buscar { flex: none; padding: 6px 6px 5px; border-bottom: 1px solid #edf3f4; }
.ot-buscar input { display: block; width: 100%; box-sizing: border-box; margin: 0; height: 40px; padding: 0 12px 0 36px; border: 1px solid #d6e4e6; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b838a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50% / 17px 17px; font: inherit; font-size: 16px; color: #123B44; outline: none; -webkit-appearance: none; appearance: none; }
.ot-buscar input::placeholder { color: #9AA7AA; }
.ot-buscar input:focus { border-color: #0FA3B4; box-shadow: 0 0 0 3px rgba(15, 163, 180, .28); }
.ot-ops { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px; }
.ot-vacio { flex: none; padding: 14px 12px 16px; font-size: 13.5px; color: #6b838a; text-align: center; }
select[aria-expanded="true"] { border-color: #0FA3B4 !important; box-shadow: 0 0 0 3px rgba(15, 163, 180, .2) !important; }
/* El calendario de OPFAR (D-55): el de la Ontime nueva y el de fechas.js (D-81, en los campos de fecha) */
.ot-cal { background: white; border-radius: 22px; padding: 16px 16px 10px; min-width: 280px; }
.ot-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ot-cal-cab b { font: 700 16px 'Sora', sans-serif; color: #123B44; }
.ot-cal-flecha { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #dfebec; background: white; color: #1c606b; font-size: 18px; cursor: pointer; }
.ot-cal-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.ot-cal-dias > span { font: 600 11px 'Mono', monospace; color: #8aa0a4; padding: 4px 0; }
.ot-cal-d { border: 0; background: none; border-radius: 12px; height: 38px; font: 500 14px 'Sora', sans-serif; color: #123B44; cursor: pointer; }
.ot-cal-d:hover { background: #eef6f7; }
.ot-cal-d.fuera { color: #c3d0d2; }
.ot-cal-d.hoy { box-shadow: inset 0 0 0 1.5px #4aa0b0; }
.ot-cal-d.sel { background: #4aa0b0; color: white; }
.ot-cal-d:disabled { color: #dbe4e5; cursor: default; background: none; }
.ot-cal-pie { display: flex; justify-content: space-between; border-top: 1px solid #edf3f4; margin-top: 8px; padding-top: 8px; }
.ot-cal-d:focus-visible, .ot-cal-flecha:focus-visible, .ot-cal-txt:focus-visible { outline: 2px solid #0FA3B4; outline-offset: 1px; }
.ot-cal-flota { position: fixed; z-index: 1000; box-sizing: border-box; width: min(300px, calc(100vw - 16px)); min-width: 0; border: 1px solid #dfebec; box-shadow: 0 18px 40px rgba(18, 59, 68, .18); }
.ot-cal-txt { border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: 600 13px 'Sora', sans-serif; color: #1c606b; cursor: pointer; }
.ot-cal-txt:hover { background: #eef6f7; }
.ot-cal-txt:disabled { color: #c3d0d2; cursor: default; background: none; }
/* D-44: en un campo de fecha no se escribe; se pulsa y se elige en el calendario */
input[type="date"]:not([data-nativo]) { cursor: pointer; caret-color: transparent; }
input[type="date"]:not([data-nativo])::-webkit-datetime-edit { cursor: pointer; }
