/* Ayuda (chat y contacto) y recordatorios. Usa las variables y los botones de app.css. */
.ef-dlg { z-index: 70; }
.ef-dlg .modal-caja { max-width: 560px; }
.ef-cont { overflow-y: auto; flex: 1; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.ef-cont h2 { padding-right: 44px; }
.ef-cont ol { padding-left: 22px; margin: 8px 0 14px; }
.ef-cont li { margin-bottom: 6px; }
.ef-nota { background: #FFF4C7; border-radius: var(--r-m); padding: 12px 14px; font-size: 15px; margin: 12px 0; }
.ef-fila { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ef-hora { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.ef-hora input[type=time] { border: 0; border-radius: var(--r-s); background: var(--papel); box-shadow: inset 0 0 0 2px var(--linea); padding: 10px 14px; font-size: 20px; font-weight: 700; min-height: 48px; }
.ef-estado { font-weight: 700; margin: 6px 0 0; min-height: 1.4em; }
.ef-estado.mal { color: var(--ponche-2); }

/* botón flotante */
.ef-flota { position: fixed; z-index: 40; right: 12px; bottom: calc(var(--nav, 72px) + 14px + env(safe-area-inset-bottom)); height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--papel); color: var(--noche); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: inset 0 0 0 2px var(--linea), 0 4px 14px -6px rgba(20, 27, 77, .5); }
.ef-flota:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--noche), 0 4px 14px -6px rgba(20, 27, 77, .5); }
.ef-flota svg { width: 18px; height: 18px; }
body.con-modal .ef-flota, body.ef-chat-abierto .ef-flota { display: none; }
@media (min-width: 1024px) { .ef-flota { bottom: 18px; right: 18px; } }
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1023px) { .ef-flota { bottom: 58px; height: 34px; } }

/* panel de chat */
.ef-chat .modal-caja { height: min(640px, 94dvh); max-width: 460px; }
.ef-chat-cab { display: flex; align-items: center; gap: 12px; padding: 16px 64px 14px 18px; background: var(--noche); color: #fff; }
.ef-chat-cab img { width: 40px; height: 40px; border-radius: 50%; background: var(--lila); object-fit: cover; }
.ef-chat-cab b { display: block; line-height: 1.15; font-size: 17px; }
.ef-chat-cab small { color: rgba(255, 255, 255, .72); font-size: 13px; }
.ef-msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ef-m { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ef-m.bot { align-self: flex-start; background: var(--papel); box-shadow: inset 0 0 0 2px var(--linea); border-bottom-left-radius: 6px; }
.ef-m.yo { align-self: flex-end; background: var(--noche); color: #fff; border-bottom-right-radius: 6px; }
.ef-m.pensando { color: var(--gris); font-style: italic; }
.ef-m a { color: inherit; font-weight: 700; }
.ef-sug { display: flex; flex-wrap: nowrap; overflow-x: auto; flex: none; gap: 8px; padding: 4px 16px 10px; }
.ef-sug button { flex: none; white-space: nowrap; border: 0; background: var(--papel); box-shadow: inset 0 0 0 2px var(--linea); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.ef-sug button:hover { box-shadow: inset 0 0 0 2px var(--noche); }
.ef-chat-caja { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--papel); box-shadow: 0 -1px 0 var(--linea); }
.ef-chat-caja input { flex: 1; min-width: 0; border: 0; border-radius: 999px; background: var(--nieve); padding: 0 16px; min-height: 46px; font-size: 16px; box-shadow: inset 0 0 0 2px var(--linea); }
.ef-chat-caja input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--noche); }
.ef-chat-caja .boton { min-height: 46px; padding: 0 18px; }
.ef-legal { font-size: 12px; color: var(--gris); text-align: center; padding: 0 12px 6px; background: var(--papel); }
.ef-form label.campo { margin-top: 12px; }
.ef-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ef-form { padding: 4px 4px 8px; }
.ef-form-cont { overflow-y: auto; flex: 1; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
@media (max-width: 520px) { .ef-chat .modal-caja { height: 94dvh; } }

/* ventana de instalación */
.ef-guia { display: block; width: 100%; max-width: 250px; height: auto; margin: 10px auto; border-radius: 16px; background: var(--noche); }
.ef-inst .ef-cont { padding-top: 22px; }
.ef-inst h2 { margin: 0 0 6px; }
.ef-inst .sub { margin: 0 0 4px; font-size: 15px; }
.ef-inst-uno .boton { margin-top: 10px; }
.ef-inst .ef-pasos { font-size: 15px; line-height: 1.4; margin: 6px 0 10px; }
.ef-inst .ef-pasos li { margin-bottom: 4px; }
.ef-inst .peq { font-size: 13px; }
.ef-inst > .modal-caja > .ef-cont > .boton { margin-top: 6px; }
.ef-inst-ancho .modal-caja { max-width: 980px; }
.ef-inst-compu { display: grid; grid-template-columns: 1fr 1fr 190px; gap: 20px; align-items: start; margin-top: 8px; }
.ef-inst-compu h3 { margin: 0; font-size: 17px; }
.ef-inst-compu .ef-guia { max-width: 220px; margin: 8px 0 6px; }
.ef-inst-compu .ef-pasos { font-size: 13.5px; padding-left: 18px; margin: 0; }
.ef-inst-qr { text-align: center; }
.ef-inst-qr img { display: block; margin: 8px auto; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--linea); }
.ef-inst-qr .boton { margin-top: 8px; }
@media (max-width: 899px) { .ef-inst-compu { grid-template-columns: 1fr; } }
@media (max-height: 760px) { .ef-guia { max-width: 190px; } }
