/* ============================================================================================
   opfar-interfaz.css — el diseño de Ontime para todas las webs de OPFAR (Academy, Control, Planogram…)
   --------------------------------------------------------------------------------------------
   Sacado de Ontime v6.15.0 (ontime.css + mezcla.css + nueva.css + acceso.css, el 15/10/2026), con las
   mismas medidas y colores, pero con nombres propios (op-…) para que no choquen con los estilos que ya
   tenga cada web. Lo de los desplegables (.ot-lista, .ot-op) y del calendario (.ot-cal…) mantiene el
   nombre de Ontime porque lo pintan desplegables.js y fechas.js, que son los mismos ficheros.
   Necesita antes: opfar-fuentes.css (las letras). No depende de las variables de opfar-tokens.css: lleva las
   suyas (--op-…), para no chocar con las de cada web.
   Se usa en toda la web: <body class="op-pagina">. Las cajas que pinta opfar-cabecera.js llevan además la clase
   .op-ui, para que se vean bien aunque una página aún no tenga op-pagina.
   Índice: 1 página · 2 cabecera · 3 aplicaciones y farmacias · 4 avisos · 5 cuenta · 6 menú superior ·
   7 menú lateral · 8 menú del móvil · 9 apartados · 10 botones · 11 campos · 12 desplegables ·
   13 calendario · 14 etiquetas, paneles, tablas, avisos · 15 diálogos y mensaje · 16 barras de desplazamiento ·
   17 pantallas pequeñas · y, desde el 23/10/2026: 18 el interruptor claro / oscuro · 19 la guía · 20 las pantallas
   de privacidad · 21 Mi cuenta: avisos por correo y privacidad · 22 versión nueva (su oscuro, en opfar-oscuro.css)
   Lo común es esto. Lo que muestra cada página y cómo lo compone es de cada web (la tarjeta grande del Inicio de
   Ontime, por ejemplo, es solo de Ontime y no está aquí).
   ============================================================================================ */

/* ---------- 1. La página (o solo las cajas del kit) ---------- */
/* las letras del kit, con nombre propio para no pisar las variables de cada web */
.op-pagina, .op-ui, .ot-lista, .ot-cal, dialog.op-dialogo, .op-mensaje-flotante {
  --op-display: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --op-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --op-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
.op-pagina { margin: 0; min-height: 100vh; background: #F1F8F8; color: #123B44; font: 16px var(--op-body); -webkit-font-smoothing: antialiased; }
.op-ui { color: #123B44; font: 16px var(--op-body); -webkit-font-smoothing: antialiased; text-align: left; }
:is(.op-pagina, .op-ui) *, :is(.op-pagina, .op-ui) *::before, :is(.op-pagina, .op-ui) *::after, .op-ui { box-sizing: border-box; }
/* :where() deja estas reglas sin peso: las de cada pieza (.op-btn, .op-boton-cab…) mandan siempre */
:is(.op-pagina, .op-ui) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:is(.op-pagina, .op-ui) :where(button) { cursor: pointer; touch-action: manipulation; }
:is(.op-pagina, .op-ui) button:disabled { opacity: .5; cursor: default; }
:is(.op-pagina, .op-ui) button:focus-visible, :is(.op-pagina, .op-ui) a:focus-visible { outline: 3px solid #5BD0D6; outline-offset: 3px; }
:is(.op-pagina, .op-ui) :where(h1, h2, h3) { font-family: var(--op-display); letter-spacing: -.035em; }
:is(.op-pagina, .op-ui) :where(a) { color: #0c7b88; }
.op-saltar { position: absolute; top: -100px; left: 0; background: white; padding: 20px; z-index: 99; }
.op-saltar:focus { top: 0; }
.op-cuerpo { min-height: calc(100vh - 88px); }
.op-pagina[data-menu="lateral"] .op-cuerpo { display: grid; grid-template-columns: 224px minmax(0, 1fr); }
/* abajo, un margen normal (los 85 px de Ontime eran para el botón flotante de la maqueta, que no se usa): con algo
   fijo abajo en la página, <main class="op-contenido con-fijo-abajo"> (al final de este fichero) */
.op-contenido { min-width: 0; max-width: 1550px; margin: 0 auto; padding: 30px 40px 40px; }
.op-pagina[data-menu="lateral"] .op-contenido { max-width: 1600px; margin: 0; padding: 30px 30px 30px; width: 100%; }
:is(.op-pagina, .op-ui) [hidden], .op-ui[hidden] { display: none !important; }
.op-iconos svg, .op-ico { width: 18px; height: 18px; flex: none; }

/* ---------- 2. La cabecera: OPFAR · «academy.» · rol · farmacia · avisos · Mi cuenta ---------- */
.op-cabecera { background: white; min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 30px; border-bottom: 1px solid #c9e3e6; }
.op-marca { display: flex; align-items: center; gap: 17px; min-width: 0; }
.op-marca-opfar, .op-marca-app { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; color: inherit; font: inherit; text-decoration: none; }
.op-marca-opfar img { display: block; width: 128px; height: auto; max-height: 40px; object-fit: contain; }
.op-marca-opfar img.op-logo-oscuro { display: none; aspect-ratio: 2999 / 840; }   /* 23/10/2026: la del modo oscuro (opfar-oscuro.css) */
.op-marca-opfar:hover, .op-marca-app:hover { opacity: .85; }
.op-marca-raya { height: 25px; width: 1px; background: #d9e7e8; flex: none; }
.op-marca-app { gap: 6px; border-radius: 12px; padding: 4px 8px 4px 4px; margin-left: -4px; }
.op-marca-app strong { font: 600 23px var(--op-display); letter-spacing: -1px; color: #123B44; }
.op-marca-app strong span { color: #0FA3B4; }
.op-marca-app svg { color: #739399; margin-top: 3px; }
.op-zona { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; background: #eff7f8; border-radius: 40px; }
.op-rol { font-size: 13px; padding: 0 12px; color: #56777f; white-space: nowrap; }
.op-boton-cab { background: white; border: 1px solid #d6e9eb; border-radius: 30px; padding: 9px 15px; min-height: 42px; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #123B44; white-space: nowrap; }
.op-boton-cab svg { color: #739399; flex: none; }
.op-farmacia { max-width: 320px; }
.op-farmacia > span { overflow: hidden; text-overflow: ellipsis; }
.op-farmacia.solo { cursor: default; }
.op-cuenta-btn { padding: 5px 14px 5px 5px; }
.op-cara { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; line-height: 0; flex: none; }
.op-cara img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.op-iniciales { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #bfe6ea; color: #123B44; font: 600 13px var(--op-body); line-height: 1; }

/* ---------- 2 bis. Las herramientas de cada web (opción herramientas): entre la farmacia y la campana ----------
   Son elementos de la web: el kit los cambia de sitio (en el móvil, al panel del menú), no los copia. */
.op-herramientas { display: flex; align-items: center; gap: 10px; min-width: 0; }
.op-herramientas:empty { display: none; }   /* en el móvil se van al panel del menú: sin hueco */
.op-boton-cab.solo-icono { padding: 10px; }
.op-boton-cab.solo-icono svg { width: 20px; height: 20px; color: #123B44; }
:is(.op-herramientas, .op-movil-herr) select.op-campo { width: auto; height: 42px; border-color: #d6e9eb; border-radius: 30px; padding: 0 12px; font-size: 14px; }

/* ---------- 3. Las aplicaciones de OPFAR y las farmacias (en un diálogo) ---------- */
.op-apps { display: grid; gap: 12px; }
.op-app { display: grid; gap: 7px; text-align: left; border: 1px solid #d7e8ea; border-radius: 14px; padding: 17px; background: white; font: inherit; color: inherit; text-decoration: none; }
button.op-app, a.op-app { cursor: pointer; }
button.op-app:hover, a.op-app:hover { border-color: #0FA3B4; }
.op-app b { font: 800 21px var(--op-display); letter-spacing: -.045em; color: #123B44; }
.op-app b span { color: #0FA3B4; }
.op-app > span { font-size: 14px; }
.op-app small { font-size: 12px; color: #62858b; }
button.op-app small, a.op-app small { color: #0C8B9A; }
.op-app.pronto { opacity: .6; }
.op-farmacias { display: grid; gap: 8px; }
.op-far { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: white; border: 1px solid #dfebec; border-radius: 16px; padding: 10px 14px; font: inherit; color: inherit; cursor: pointer; }
.op-far:hover { border-color: #99cbd1; background: #f7fbfb; }
.op-far[aria-current="true"] { border-color: #0FA3B4; background: #effafa; }
.op-far-ini { width: 38px; height: 38px; border-radius: 50%; background: #e3f2f4; color: #1c606b; display: inline-flex; align-items: center; justify-content: center; font: 700 13px var(--op-display); flex: none; }
.op-far-txt { flex: 1; min-width: 0; }
.op-far-txt b { display: block; font-size: 15px; font-weight: 600; color: #123B44; }
.op-far em { font-style: normal; font-size: 11px; font-weight: 600; background: #0FA3B4; color: white; border-radius: 20px; padding: 3px 9px; }
.op-far i { font-style: normal; font-size: 20px; color: #9ab3b8; }
.op-far-grupo { font-size: 13px; color: #6b838a; font-weight: 600; margin: 18px 0 8px; }

/* ---------- 4. La campana de avisos ---------- */
.op-avisos { position: relative; display: flex; }
.op-campana { position: relative; padding: 10px; min-height: 42px; }
.op-campana svg { width: 20px; height: 20px; color: #123B44; }
.op-campana i { position: absolute; top: -5px; right: -3px; background: #ad573c; border: 2px solid white; color: white; border-radius: 50%; min-width: 20px; font: 500 11px var(--op-body); font-style: normal; line-height: 17px; text-align: center; }
.op-avisos-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 46; width: 360px; max-height: min(520px, 75vh); overflow: auto; background: white; border: 1px solid #dfebec; border-radius: 18px; box-shadow: 0 18px 40px #123b4426; padding: 8px; }
.op-avisos-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid #edf3f4; }
.op-avisos-cab b { color: #123B44; font-size: 14px; }
.op-avisos-cab .op-texto-btn { font-size: 12px; text-align: right; }
.op-avisos-pop ul { list-style: none; margin: 0; padding: 6px 0 0; display: grid; gap: 4px; }
.op-avisos-pop li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 12px; font-size: 13.5px; color: #123B44; line-height: 1.35; }
.op-avisos-pop li.destacado { background: #fff7e6; }
.op-avisos-pop li > div { min-width: 0; }
.op-avisos-pop li small { display: block; color: #6b838a; font-size: 12px; margin-top: 2px; }
.op-avisos-pop li .op-btn { flex: none; padding: 7px 12px; font-size: 12.5px; min-height: 0; }
.op-avisos-pop li .op-texto-btn { flex: none; }
.op-avisos-vacio { margin: 0; padding: 12px 10px; font-size: 13px; color: #6b838a; }

/* ---------- 5. Mi cuenta ---------- */
.op-cuenta-pop { position: absolute; right: 6px; top: calc(100% + 8px); z-index: 45; width: 280px; background: white; border: 1px solid #dfebec; border-radius: 18px; box-shadow: 0 18px 40px #123b4426; padding: 8px; }
.op-cuenta-cab { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid #edf3f4; margin-bottom: 6px; }
.op-cuenta-cab .op-cara { width: 40px; height: 40px; }
.op-cuenta-cab > span:last-child { min-width: 0; }
.op-cuenta-cab b { display: block; font-size: 14px; color: #123B44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-cuenta-cab small { display: block; font-size: 12px; color: #6b838a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-cuenta-pop button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; border-radius: 12px; padding: 10px; font: inherit; font-size: 14px; color: #123B44; text-align: left; }
.op-cuenta-pop button svg { width: 18px; height: 18px; color: #4d7f87; flex: none; }
.op-cuenta-pop button:hover, .op-cuenta-pop button:focus-visible { background: #f1f8f8; outline: none; }
.op-cuenta-pop button.peligro { color: #8a2a22; }
.op-cuenta-pop button.peligro svg { color: #b0473d; }
.op-version { padding: 8px 14px 4px; font-size: 12px; color: #6b838a; border-top: 1px solid rgba(18, 59, 68, .08); margin-top: 4px; }

/* ---------- 6. El menú de arriba (como Ontime) ---------- */
.op-menu-arriba { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 12px 30px; background: white; border-bottom: 1px solid #dbeaec; }
.op-menu-arriba.izquierda { justify-content: flex-start; }
.op-menu-arriba button, .op-menu-arriba a, .op-menu-arriba .pronto { display: flex; align-items: center; gap: 9px; border: 0; border-radius: 25px; background: transparent; padding: 12px 20px; font-size: 14px; color: #123B44; text-decoration: none; }
.op-menu-arriba .activo { background: #dceff1; color: #21616c; font-weight: 600; }
.op-menu-arriba svg { width: 18px; height: 18px; flex: none; }
.op-menu-arriba i, .op-menu-lateral i, .op-movil-item i { font: 400 11px var(--op-mono); font-style: normal; border-radius: 20px; }
.op-menu-arriba i { background: #123b44; color: white; padding: 3px 6px; }

/* ---------- 7. El menú lateral (Academy y Control) ---------- */
/* la columna blanca ocupa todo el alto; lo de dentro se queda a la vista al bajar, con el pie siempre visible */
.op-menu-lateral { background: white; color: #123b44; border-right: 1px solid #dfebec; min-width: 0; }
.op-menu-lateral-dentro { position: sticky; top: 0; height: calc(100vh - 88px); min-height: 420px; display: flex; flex-direction: column; padding: 28px 15px; overflow-y: auto; }
.op-menu-lateral-titulo { color: #72888b; font: 400 10px var(--op-mono); letter-spacing: .1em; text-transform: uppercase; padding: 8px 13px 18px; margin: 0; }
.op-menu-lateral nav { display: grid; gap: 7px; }
.op-menu-lateral button, .op-menu-lateral a, .op-menu-lateral .pronto { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 47px; padding: 13px; line-height: 1.4; background: none; border: 0; border-radius: 12px; color: #416269; text-align: left; font-size: 14px; text-decoration: none; }
.op-menu-lateral button:hover, .op-menu-lateral a:hover { background: #f1f8f8; }
/* la versión clara, la preferida (contexto común §6.4): el activo en turquesa pálido, como el menú de arriba */
.op-menu-lateral .activo, .op-menu-lateral .activo:hover { background: #dceff1; color: #21616c; font-weight: 600; }
.op-menu-lateral svg { width: 18px; height: 18px; flex: none; }
.op-menu-lateral i { margin-left: auto; background: #e4f2f3; color: #245b65; padding: 2px 6px; }
.op-menu-lateral .op-sub { min-height: 38px; padding: 8px 13px 8px 43px; font-size: 13.5px; }
.op-menu-lateral .op-sub.activo, .op-menu-lateral .op-sub.activo:hover { background: #eef6f7; color: #21616c; font-weight: 600; }
.op-menu-lateral-abajo { margin-top: auto; padding-top: 40px; display: grid; gap: 7px; }
.op-menu-lateral-abajo button, .op-menu-lateral-abajo a { font-size: 13px; }
.op-firma { margin: 25px 13px 0; border-top: 1px solid #e1ecec; padding-top: 21px; }
.op-firma span { font: 600 15px var(--op-display); letter-spacing: 1px; }
.op-firma small { display: block; color: #6c878d; font-size: 11px; margin-top: 6px; }

/* ---------- 7 bis. El menú lateral oscuro: <body data-menu-tono="oscuro"> (contexto común §6.4) ----------
   El verde profundo de la app de gestión del manual. La clara sigue siendo la de siempre. Contraste (AA): texto
   9,4:1, apartados 8,2:1, activo 8,8:1, título 6,2:1, iconos 6,7:1 (activo 4,8:1) y foco 6,6:1. */
[data-menu-tono="oscuro"] .op-menu-lateral { background: #123B44; color: #EAF6F7; border-right-color: #0C2A31; }
[data-menu-tono="oscuro"] .op-menu-lateral-titulo { color: #9FBFC4; }
[data-menu-tono="oscuro"] .op-menu-lateral button, [data-menu-tono="oscuro"] .op-menu-lateral a, [data-menu-tono="oscuro"] .op-menu-lateral .pronto { color: #D3E6E9; }
[data-menu-tono="oscuro"] .op-menu-lateral svg { color: #A9C6CB; }
[data-menu-tono="oscuro"] .op-menu-lateral button:hover, [data-menu-tono="oscuro"] .op-menu-lateral a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
[data-menu-tono="oscuro"] .op-menu-lateral .activo, [data-menu-tono="oscuro"] .op-menu-lateral .activo:hover { background: rgba(15, 163, 180, .22); color: #fff; font-weight: 600; }
[data-menu-tono="oscuro"] .op-menu-lateral .activo svg { color: #5BD0D6; }
[data-menu-tono="oscuro"] .op-menu-lateral .op-sub { color: #C2D9DD; }
[data-menu-tono="oscuro"] .op-menu-lateral .op-sub.activo, [data-menu-tono="oscuro"] .op-menu-lateral .op-sub.activo:hover { background: rgba(15, 163, 180, .14); color: #fff; }
[data-menu-tono="oscuro"] .op-menu-lateral i { background: rgba(91, 208, 214, .2); color: #DDF3F5; }
[data-menu-tono="oscuro"] .op-menu-lateral .pronto em { background: rgba(255, 255, 255, .1); color: #D3E6E9; }
[data-menu-tono="oscuro"] .op-menu-lateral .op-firma { border-top-color: rgba(255, 255, 255, .12); }
[data-menu-tono="oscuro"] .op-menu-lateral .op-firma span { color: #fff; }
[data-menu-tono="oscuro"] .op-menu-lateral .op-firma small { color: #A9C2C6; }
[data-menu-tono="oscuro"] .op-menu-lateral-dentro::-webkit-scrollbar-thumb { background: rgba(234, 246, 247, .28); background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) { [data-menu-tono="oscuro"] .op-menu-lateral-dentro { scrollbar-color: rgba(234, 246, 247, .3) transparent; } }

/* ---------- 8. El menú en el móvil (sustituye a los dos de arriba en pantallas pequeñas) ---------- */
.op-movil { display: none; position: relative; padding: 12px 18px; background: white; border-bottom: 1px solid #dce7e8; }
.op-movil-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: white; border: 1px solid #d6e9eb; border-radius: 18px; padding: 10px 14px; font: inherit; color: #123B44; text-align: left; box-shadow: 0 4px 14px #123b440a; }
.op-movil-btn > svg:first-child { width: 20px; height: 20px; color: #1c606b; flex: none; }
.op-movil-btn > svg:last-child { color: #739399; flex: none; transition: transform .15s; }
.op-movil-btn[aria-expanded="true"] { border-color: #69bbc3; }
.op-movil-btn[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
.op-movil-txt { flex: 1; min-width: 0; }
.op-movil-txt small, .op-movil-far small { display: block; font-size: 11px; color: #6b838a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-movil-txt b, .op-movil-far b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-movil-panel { position: absolute; left: 18px; right: 18px; top: calc(100% - 4px); z-index: 40; background: white; border: 1px solid #dfebec; border-radius: 20px; box-shadow: 0 18px 40px #123b4426; padding: 8px; max-height: min(70vh, 560px); overflow: auto; }
.op-movil-panel nav { display: grid; gap: 2px; }
.op-movil-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; border-radius: 14px; padding: 11px 12px; font: inherit; font-size: 15px; color: #123B44; text-align: left; text-decoration: none; }
.op-movil-item svg { width: 19px; height: 19px; color: #4d7f87; flex: none; }
.op-movil-item:hover { background: #f1f8f8; }
.op-movil-item.activo { background: #dceff1; color: #21616c; font-weight: 600; }
.op-movil-item i { margin-left: auto; background: #123b44; color: white; padding: 3px 7px; }
.op-movil-item.op-sub { padding: 8px 12px 8px 43px; font-size: 14px; color: #3d5c62; }
.op-movil-far { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 6px; border: 0; border-top: 1px solid #edf3f4; background: none; padding: 12px; font: inherit; color: #123B44; text-align: left; }
.op-movil-far svg { width: 19px; height: 19px; color: #4d7f87; flex: none; }
.op-movil-far span { flex: 1; min-width: 0; }
.op-movil-far em { font-style: normal; font-size: 12px; font-weight: 600; color: #0A7581; }
.op-movil-herr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; border-top: 1px solid #edf3f4; padding: 12px; }

/* ---------- 9. Los apartados de una sección (botones redondos debajo del título) ---------- */
.op-apartados { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.op-apartados button, .op-apartados a { padding: 10px 17px; border: 1px solid #dce9eb; border-radius: 25px; font-size: 14px; background: white; color: #123B44; text-decoration: none; }
.op-apartados .activo { background: #d8edef; color: #1c606b; border-color: #bedde1; font-weight: 600; }
.op-pastillas { display: inline-flex; gap: 5px; padding: 4px; background: #e9f0f1; border-radius: 8px; }
.op-pastillas button { border: 0; padding: 7px 12px; background: transparent; font-size: 12px; border-radius: 5px; }
.op-pastillas button.activo { background: white; box-shadow: 0 1px 5px #123b440e; }

/* ---------- 10. Botones ---------- */
.op-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #0FA3B4; border-radius: 24px; padding: 11px 16px; min-height: 42px; color: white; background: #087d89; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.op-btn:hover { background: #096671; }
.op-btn svg { width: 16px; height: 16px; }
.op-btn.claro { background: white; color: #123B44; border-color: #dce7e8; }
.op-btn.claro:hover { background: #f0f8f8; }
.op-btn.peligro { background: #B3261E; border-color: #B3261E; color: #fff; }
.op-btn.peligro:hover { background: #941f18; }
.op-btn.claro.peligro { background: white; color: #B3261E; border-color: #dce7e8; }
.op-texto-btn { background: none; border: 0; padding: 0; color: #0a7984; font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.op-texto-btn:hover { text-decoration: underline; }
.op-acciones { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ---------- 11. Campos (texto, desplegable, fecha) ---------- */
.op-etq { display: block; font-size: 13px; color: #536c73; margin: 8px 0 5px; }
.op-campo { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d6e4e6; border-radius: 11px; font: inherit; font-size: 15px; color: #123B44; background: #fff; min-width: 0; }
textarea.op-campo { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.op-campo[readonly] { background: #f3f7f8; color: #536c73; }
.op-campo:focus { outline: none; border-color: #0FA3B4; box-shadow: 0 0 0 3px rgba(15, 163, 180, .28); }
.op-campo::placeholder { color: #9AA7AA; }
.op-nota { font-size: 12.5px; color: #6b838a; margin: 6px 0 0; }
.op-mensaje { font-size: 13.5px; min-height: 1em; }
.op-mensaje.bien { color: #14694A; }
.op-mensaje.mal { color: #D0453B; }
.op-marca-chk { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; font-size: 14.5px; cursor: pointer; }
.op-marca-chk input { width: 18px; height: 18px; accent-color: #0FA3B4; }

/* ---------- 12. Los desplegables de OPFAR (los pinta js/desplegables.js) ---------- */
.ot-lista { position: fixed; z-index: 1000; box-sizing: border-box; background: #fff; border: 1px solid #dfebec; border-radius: 16px; box-shadow: 0 18px 40px rgba(18, 59, 68, .18); padding: 6px; overflow: auto; overscroll-behavior: contain; font-family: var(--op-body); }
.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: 10px; padding: 9px 12px; font: inherit; font-size: 14px; 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 (20/10/2026, pedido por Jessica para Control): 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 (.ot-ops). La opción activa (flechas o ratón; el foco se queda en el campo) se ve como la que tiene el foco
   (.ot-op.activa, arriba). El campo, como .op-campo y a 16 px: con menos, el iPhone se acerca al tocarlo. */
.ot-lista.con-buscar { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.ot-buscar { flex: none; padding: 8px 8px 6px; border-bottom: 1px solid #edf3f4; }
.ot-buscar input { display: block; width: 100%; box-sizing: border-box; margin: 0; height: 42px; padding: 0 12px 0 38px; border: 1px solid #d6e4e6; border-radius: 11px; 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 12px 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: 6px; }
.ot-vacio { flex: none; padding: 16px 12px 18px; font-size: 14px; color: #6b838a; text-align: center; }
:is(.op-pagina, .op-ui) select[aria-expanded="true"] { border-color: #0FA3B4 !important; box-shadow: 0 0 0 3px rgba(15, 163, 180, .2) !important; }

/* ---------- 13. El calendario de OPFAR (lo pinta js/fechas.js en cada <input type="date">) ---------- */
.ot-cal { background: white; border-radius: 22px; padding: 16px 16px 10px; min-width: 280px; font-family: var(--op-body); }
.ot-cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ot-cal-cab b { font: 700 16px var(--op-display); 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 var(--op-mono); color: #8aa0a4; padding: 4px 0; }
.ot-cal-d { border: 0; background: none; border-radius: 12px; height: 38px; font: 500 14px var(--op-display); 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 var(--op-display); color: #1c606b; cursor: pointer; }
.ot-cal-txt:hover { background: #eef6f7; }
.ot-cal-txt:disabled { color: #c3d0d2; cursor: default; background: none; }
:is(.op-pagina, .op-ui) input[type="date"]:not([data-nativo]) { cursor: pointer; caret-color: transparent; }
:is(.op-pagina, .op-ui) input[type="date"]:not([data-nativo])::-webkit-datetime-edit { cursor: pointer; }

/* ---------- 14. Etiquetas, paneles, tablas y avisos en la página ---------- */
.op-etiqueta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 11px; font-weight: 600; padding: 5px 9px; border-radius: 20px; background: #e8f5f2; color: #226e66; }
.op-etiqueta.aviso { background: #fff2d6; color: #825b21; }
.op-etiqueta.neutra { background: #edf2f3; color: #536c73; }
.op-etiqueta.bien { background: #E3F4EC; color: #14694A; }
/* el rojo de error oficial (--opfar-danger #D0453B, --opfar-danger-soft #FBE5E3): «Rechazada», «Cancelada», un error al guardar */
.op-etiqueta.mal { background: #FBE5E3; color: #8a2a22; }
.op-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 26px; }
.op-antetitulo { font: 400 10px var(--op-mono); text-transform: uppercase; letter-spacing: .1em; color: #487079; margin-bottom: 9px; }
.op-cabeza h1 { font-size: 1.75rem; margin: 0 0 9px; line-height: 1.3; }
.op-cabeza p { font-size: .875rem; margin: 0; color: #627a80; line-height: 1.6; }
.op-panel { background: white; border: 1px solid #dfebec; border-radius: 20px; overflow: hidden; box-shadow: 0 3px 10px #123b4403; }
.op-panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px 23px; border-bottom: 1px solid #dce7e8; }
.op-panel-cab h2 { font-size: 16px; margin: 0; }
.op-panel-cab p { font-size: 12px; color: #627a80; margin: 5px 0 0; }
.op-panel-cuerpo { padding: 23px; }
.op-tabla { border-collapse: collapse; width: 100%; font-size: .8125rem; }
.op-tabla th { background: #f8fbfb; text-align: left; padding: 15px 20px; font-size: .75rem; font-weight: 500; color: #627a80; }
.op-tabla td { padding: 18px 20px; border-top: 1px solid #dce7e8; line-height: 1.7; }
/* la tabla densa de los informes (Control): filas de unos 30 px, para ver al menos 8 filas por listado */
.op-tabla.densa { font-size: 12.5px; }
.op-tabla.densa th { padding: 7px 12px; font-size: 11.5px; }
.op-tabla.densa td { padding: 6px 12px; line-height: 1.4; }
.op-tabla.densa .op-numero { font-size: 12px; }
.op-tabla .derecha, .op-tabla.densa .op-numero { text-align: right; }
.op-tabla-scroll { overflow-x: auto; }
.op-numero { font-family: var(--op-mono); font-size: .8125rem; }
.op-nota-caja { padding: 14px 17px; border: 1px solid #d5e8e9; background: #f1f9f9; color: #456c73; font-size: .8125rem; line-height: 1.7; border-radius: 9px; margin-bottom: 23px; }
.op-nota-caja.aviso { background: #fff5df; border-color: #eadcc0; color: #805b24; }
.op-nota-caja.mal { background: #FBE5E3; border-color: #f0c4bf; color: #8a2a22; }
.op-vacio { padding: 40px; text-align: center; color: #627a80; line-height: 1.7; }

/* ---------- 15. Diálogos y el mensaje de abajo ---------- */
dialog.op-dialogo { width: min(580px, calc(100vw - 32px)); max-height: 90vh; overflow: auto; border: 1px solid #dce7e8; border-radius: 25px; padding: 30px; color: #123B44; background: white; box-shadow: 0 25px 100px #123b4433; font-family: var(--op-body); }
dialog.op-dialogo::backdrop { background: #123b4455; backdrop-filter: blur(3px); }
dialog.op-dialogo h2 { font-family: var(--op-display); letter-spacing: -.035em; font-size: 1.2rem; margin: 0 0 17px; }
/* sin peso (:where): una nota (.op-nota) o un mensaje (.op-mensaje) dentro de la ventana mandan, como en Ontime */
:where(dialog.op-dialogo) p { font-size: .875rem; line-height: 1.7; color: #627a80; }
dialog.op-dialogo .op-acciones { justify-content: flex-end; margin-top: 25px; }
.op-mensaje-flotante { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 14px 22px; background: #123B44; color: white; border-radius: 9px; z-index: 1500; font-size: .8125rem; font-family: var(--op-body); box-shadow: 0 10px 30px #123b4433; }

/* ---------- 15 bis. «Pronto» en el menú: una sección que aún no está (no se puede pulsar) ---------- */
.op-menu-arriba .pronto, .op-menu-lateral .pronto, .op-movil-item.pronto { opacity: .6; cursor: default; }
.op-menu-arriba .pronto em, .op-menu-lateral .pronto em, .op-movil-item.pronto em { font-style: normal; font-size: 10.5px; font-weight: 600; background: #edf2f3; color: #536c73; border-radius: 20px; padding: 2px 8px; }
.op-menu-lateral .pronto em, .op-movil-item.pronto em { margin-left: auto; }

/* ---------- 15 ter. Mi cuenta y Cambiar contraseña (js/opfar-cuenta.js), las ventanas de Ontime ---------- */
dialog.op-dialogo.op-cuenta-dlg { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 28px 34px 24px; border-radius: 18px; }
dialog.op-dialogo.op-cuenta-dlg h2 { margin: 0 0 14px; color: #0A7581; }
.op-cuenta-perfil { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.op-cuenta-cara { flex: none; }
.op-cuenta-cara .op-iniciales { font-size: 30px; }
.op-cuenta-avas { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.op-cuenta-avas small { color: #6b838a; font-size: 12px; }
.op-cuenta-fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.op-cuenta-ava { padding: 2px; border: 1px solid #bedde1; border-radius: 50%; background: #fff; cursor: pointer; line-height: 0; }
.op-cuenta-ava:hover, .op-cuenta-ava:focus-visible { border-color: #0FA3B4; box-shadow: 0 0 0 3px rgba(15, 163, 180, .28); outline: none; }
.op-cuenta-ava[aria-pressed="true"] { border-color: #0FA3B4; box-shadow: 0 0 0 2px #0FA3B4; }
.op-cuenta-subir { cursor: pointer; }
.op-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.op-pass { position: relative; margin-bottom: 8px; }
.op-dos .op-pass { margin-bottom: 0; }
.op-pass .op-campo { padding-right: 50px; }
.op-ojo { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #536c73; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.op-ojo svg { width: 20px; height: 20px; }
.op-ojo:hover { color: #0A7581; background: #DFF2F4; }
.op-olvido { font-size: 13px; color: #536c73; margin: -2px 0 12px; }
.op-olvido .op-texto-btn { font-size: 13px; }
@media (max-width: 640px) { .op-dos { grid-template-columns: 1fr; } .op-dos .op-pass { margin-bottom: 8px; } dialog.op-dialogo.op-cuenta-dlg { padding: 24px 20px; } }

/* ---------- 15 quater. Instalar la app (js/opfar-instalar.js): la ventana y el aviso «Novedad» ---------- */
dialog.op-dialogo.op-instalar-dlg { width: min(480px, calc(100vw - 32px)); }
.op-instalar-ya { width: 100%; margin: 2px 0 12px; }
.op-instalar-dlg .op-mensaje:empty { display: none; }
.op-instalar-dlg .op-mensaje { margin-bottom: 12px; }
.op-instalar-pasos { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; font-size: .875rem; line-height: 1.6; color: #123B44; }
.op-novedad-dlg .op-etiqueta { display: inline-block; margin-bottom: 12px; }
@media (max-width: 640px) { dialog.op-dialogo.op-instalar-dlg { padding: 24px 20px; } }

/* ---------- 16. Barras de desplazamiento finas, las de Ontime (como las de hola.opfar.es), en toda la web ----------
   Finas, redondeadas, sin carril y en gris azulado. Firefox no tiene ::-webkit-scrollbar: allí, las estándar finas. */
: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; }

/* ---------- 17. Pantallas más pequeñas (los mismos cortes que Ontime) ---------- */
@media (max-width: 1350px) {
  .op-rol { display: none; }
  .op-marca-opfar img { width: 110px; }
  .op-zona { gap: 6px; }
  .op-contenido { padding: 25px 25px 30px; }
}
@media (max-width: 1250px) {
  .op-pagina[data-menu="lateral"] .op-cuerpo { grid-template-columns: 200px minmax(0, 1fr); }
  .op-menu-lateral-dentro { padding: 27px 13px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .op-menu-arriba { gap: 2px; padding: 10px 16px; }
  .op-menu-arriba button, .op-menu-arriba a { padding: 10px 12px; gap: 7px; font-size: 13.5px; }
}
@media (max-width: 1000px) {
  .op-pagina[data-menu="lateral"] .op-cuerpo { grid-template-columns: 195px minmax(0, 1fr); }
  .op-menu-lateral-dentro { padding: 24px 10px; }
  .op-menu-lateral button, .op-menu-lateral a { font-size: 13px; }
  .op-cabecera { padding: 16px 22px; }
  .op-marca { gap: 11px; }
  .op-marca-app strong { font-size: 20px; }
  .op-farmacia { max-width: 230px; font-size: 12px; }
  .op-marca-opfar img { width: 95px; }
  .op-cuenta-btn > span:not(.op-cara) { display: none; }
  .op-cuenta-btn { padding: 4px; }
}
@media (min-width: 721px) and (max-width: 900px) { .op-menu-arriba button > svg, .op-menu-arriba a > svg { display: none; } }
@media (max-width: 720px) {
  .op-pagina[data-menu="lateral"] .op-cuerpo { display: block; }
  .op-menu-lateral, .op-menu-arriba { display: none; }
  .op-movil { display: block; }
  .op-cabecera { padding: 15px; gap: 10px; }
  .op-marca-opfar img { width: 84px; }
  .op-marca-app strong { font-size: 18px; }
  .op-marca-raya, .op-marca-app svg, .op-farmacia { display: none; }
  .op-zona { padding: 3px; }
  .op-cara { width: 31px; height: 31px; }
  .op-campana { min-height: 35px; padding: 7px; }
  .op-cuenta-btn > svg:last-child { display: none; }
  .op-cuenta-pop { right: 0; width: min(280px, calc(100vw - 30px)); }
  .op-avisos-pop { position: fixed; left: 15px; right: 15px; top: 66px; width: auto; }
  .op-contenido, .op-pagina[data-menu="lateral"] .op-contenido { padding: 20px 16px 24px; }
  .op-apartados { gap: 6px; }
  .op-apartados button, .op-apartados a { font-size: 12px; padding: 9px 12px; }
  .op-cabeza { align-items: flex-start; flex-direction: column; gap: 18px; }
  .op-cabeza h1 { font-size: 1.45rem; }
  .op-tabla th, .op-tabla td { padding: 13px; }
  dialog.op-dialogo { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { :is(.op-pagina, .op-ui) * { scroll-behavior: auto !important; transition: none !important; } }
/* una página con algo fijo abajo (un botón flotante, una barra): el hueco para que no tape lo último (como Ontime, 85 px) */
.op-pagina[data-menu] .op-contenido.con-fijo-abajo, .op-contenido.con-fijo-abajo { padding-bottom: 85px; }

/* ============================================================================================
   23/10/2026 · Lo que Ontime tenía y pasa a ser común: el modo oscuro, la guía, las pantallas de privacidad, los
   avisos por correo en Mi cuenta y el aviso de versión nueva. El oscuro de estas piezas va en opfar-oscuro.css.
   ============================================================================================ */

/* ---------- 18. El interruptor del modo claro y oscuro (js/opfar-tema.js · OPFAR_TEMA.boton()) ----------
   El de Ontime: fijo abajo a la izquierda, un sol y una luna, con el círculo en el que toca. */
.op-tema-btn { all: unset; box-sizing: border-box; position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 62px; height: 32px; border-radius: 999px; cursor: pointer; background: #FFFFFF; border: 1px solid #d6e9eb; box-shadow: 0 6px 18px rgba(18, 59, 68, .16); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #7F9EA3; transition: border-color .2s, box-shadow .2s; }
.op-tema-btn:hover { border-color: #0FA3B4; box-shadow: 0 8px 22px rgba(18, 59, 68, .24); }
.op-tema-btn:focus-visible { outline: 2px solid #0FA3B4; outline-offset: 3px; }
.op-tema-btn svg { width: 16px; height: 16px; position: relative; z-index: 1; transition: color .25s; }
.op-tema-btn::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #123B44; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .28s cubic-bezier(.4, 1.3, .6, 1); }
:root:not([data-tema="oscuro"]) .op-tema-btn svg:first-child { color: #FFFFFF; }
:root[data-tema="oscuro"] .op-tema-btn::before { transform: translateX(30px); }
@media (max-width: 900px) { .op-tema-btn { left: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
@media print { .op-tema-btn { display: none; } }

/* ---------- 19. La guía de la primera vez (js/opfar-guia.js) ----------
   La de Ontime: el destino resaltado con un marco turquesa (el resto, en penumbra) y la tarjeta al lado. */
.op-guia { position: fixed; inset: 0; z-index: 2000; }
.op-guia-velo { position: absolute; inset: 0; background: transparent; }
.op-guia.sin-destino .op-guia-velo { background: rgba(18, 59, 68, .45); }
.op-guia-marco { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 3px rgba(15, 163, 180, .9), 0 0 0 9999px rgba(18, 59, 68, .45); transition: left .2s ease, top .2s ease, width .2s ease, height .2s ease; }
.op-guia-tarjeta { position: fixed; box-sizing: border-box; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid #dfebec; border-radius: 16px; box-shadow: 0 18px 40px rgba(18, 59, 68, .18); padding: 18px 20px 16px; font-family: var(--op-body); color: #123B44; outline: none; transition: left .2s ease, top .2s ease; }
.op-guia-tarjeta.centrada { left: 50% !important; top: 50% !important; width: min(420px, calc(100vw - 24px)) !important; transform: translate(-50%, -50%); }
.op-guia-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.op-guia-cuenta { font-family: var(--op-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #0A7581; }
.op-guia-x { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: #6B7B7C; cursor: pointer; padding: 0; }
.op-guia-x svg { width: 16px; height: 16px; }
.op-guia-x:hover { background: #eef6f7; color: #123B44; }
.op-guia-tarjeta h2 { margin: 0 0 6px; font-family: var(--op-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #123B44; }
.op-guia-tarjeta p { margin: 0; font-size: 14px; line-height: 1.55; color: #3d5a61; }
.op-guia-puntos { display: flex; gap: 5px; margin: 14px 0 12px; }
.op-guia-puntos i { width: 6px; height: 6px; border-radius: 50%; background: #D7E6E6; }
.op-guia-puntos i.on { width: 18px; border-radius: 999px; background: #0FA3B4; }
.op-guia-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #E4EFEF; padding-top: 12px; }
.op-guia-no { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6B7B7C; cursor: pointer; }
.op-guia-no input { width: 16px; height: 16px; margin: 0; accent-color: #0FA3B4; }
.op-guia-botones { display: flex; gap: 8px; margin-left: auto; }
.op-guia-btn { height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid #0FA3B4; background: #0FA3B4; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.op-guia-btn:hover { background: #0C8F9E; border-color: #0C8F9E; }
.op-guia-btn.sec { background: #fff; color: #123B44; border-color: #D7E6E6; }
.op-guia-btn.sec:hover { background: #F1F8F8; }
.op-guia-btn:focus-visible, .op-guia-x:focus-visible, .op-guia-no input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 163, 180, .3); }
@media (prefers-reduced-motion: reduce) { .op-guia-marco, .op-guia-tarjeta { transition: none; } }
@media print { .op-guia { display: none !important; } }

/* ---------- 20. Las pantallas de privacidad (js/opfar-privacidad.js) ----------
   El fondo de la entrada de OPFAR (el degradado verde profundo, la rejilla de 64 px y la cruz en marca de agua: el de
   la pantalla de entrar de Ontime) y una tarjeta blanca con el emblema, el nombre de la web, el título y el texto. */
.op-entrada { position: fixed; inset: 0; z-index: 2100; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 24px; isolation: isolate;
  background: radial-gradient(130% 100% at 78% 8%, #1b545f, #123B44 52%, #0c2229); font-family: var(--op-body); }
.op-entrada::before { content: ''; position: fixed; 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%); }
.op-entrada::after { content: ''; position: fixed; 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; }
html.op-entrada-abierta { overflow: hidden; }
.op-entrada-tarjeta { position: relative; width: min(480px, 100%); margin: auto; box-sizing: border-box; background: #FFFFFF; color: #2F4A50; border-radius: 26px; padding: 40px 40px 32px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.op-entrada-tarjeta.ancha { width: min(600px, 100%); }
.op-entrada-emblema { width: 56px; height: 56px; display: block; margin: 0 auto 10px; filter: drop-shadow(0 8px 22px rgba(14, 148, 167, .35)); }
.op-entrada-app { font: 800 32px var(--op-display); letter-spacing: -.045em; color: #123B44; line-height: 1; }
.op-entrada-app span { color: #0FA3B4; }
.op-entrada-tarjeta h1 { font: 700 20px var(--op-display); letter-spacing: -.02em; color: #123B44; margin: 14px 0 0; }
.op-entrada-sub { color: #56777f; font-size: 12.5px; line-height: 1.4; margin: 6px 0 20px; }
.op-entrada-cuerpo { display: grid; gap: 10px; text-align: left; }
.op-aviso-texto { margin: 0; font-size: 15px; line-height: 1.55; color: #2F4A50; }
.op-aviso-nota { margin: 0; padding: 12px 14px; border-radius: 12px; background: #DFF2F4; color: #56777f; font-size: 13px; line-height: 1.55; }
.op-aviso-fila { padding: 0 0 10px; border-bottom: 1px solid #e4eff0; font-size: 14px; line-height: 1.55; color: #2F4A50; }
.op-aviso-fila b, .op-aviso-texto b, .op-aviso-nota b { font-weight: 600; color: #123B44; }
.op-aviso-fila > b:first-child { display: block; color: #0A7581; font-size: 13px; margin-bottom: 2px; }
.op-entrada-ayuda { margin: 8px 0 0; text-align: center; font-size: 12.5px; line-height: 1.4; color: #56777f; }
.op-entrada-boton { width: 100%; height: 56px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer; background: #0FA3B4; color: #FFFFFF; font: 700 16px var(--op-display); transition: background .15s, transform .15s; }
.op-entrada-boton:hover { background: #0C8F9E; }
.op-entrada-boton:active { transform: scale(.985); }
.op-entrada-boton:disabled { opacity: .6; cursor: wait; }
.op-entrada-boton:focus-visible { outline: 3px solid #5BD0D6; outline-offset: 3px; }
.op-entrada-error { margin: 0; text-align: center; color: #D0453B; font-size: 13px; }
.op-entrada-error:empty { display: none; }
.op-entrada-error a { color: inherit; font-weight: 700; }
@media (max-width: 640px) { .op-entrada-tarjeta, .op-entrada-tarjeta.ancha { padding: 30px 20px 24px; } }

/* ---------- 21. Mi cuenta: los avisos por correo y Privacidad (js/opfar-cuenta.js) ---------- */
.op-cuenta-avisos { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; cursor: pointer; font-size: 14px; color: #123B44; }
.op-cuenta-avisos input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: #0FA3B4; }
.op-cuenta-avisos small { display: block; color: #62858b; font-size: 12.8px; margin-top: 2px; }
.op-cuenta-privacidad { display: grid; gap: 6px; margin: 4px 0 12px; }

/* ---------- 22. «Hay una versión nueva» (js/opfar-version.js) ---------- */
.op-version-nueva { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 20px; background: #123B44; color: #fff; border-radius: 9px; font-size: 13px; box-shadow: 0 6px 24px rgba(18, 59, 68, .25); }
.op-version-nueva .op-btn { flex: none; }
@media (max-width: 560px) { .op-version-nueva { left: 16px; right: 16px; transform: none; flex-wrap: wrap; } }
