/* ExamiNáutica — Buzón de sugerencias (widget flotante).
   Va abajo a la IZQUIERDA para no solaparse con el asistente IA (abajo derecha).
   Colores con fallback por si una página no tiene cargada la paleta de styles.css. */
.fbx-fab {
  /* Va APILADO encima del botón de accesibilidad (que está en left:16 bottom:16,
     48px) para no chocar con él. */
  position: fixed; left: 16px; bottom: 76px; z-index: 57;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px 11px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sea-600, #0f9a80); color: #fff;
  font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 6px 20px rgba(8, 40, 60, .28); transition: transform .15s, box-shadow .15s;
}
.fbx-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8, 40, 60, .34); }
.fbx-fab:focus-visible { outline: 3px solid var(--sea-100, #d3f3ec); outline-offset: 3px; }
.fbx-fab svg { width: 20px; height: 20px; flex: none; }
/* En pantallas estrechas, botón redondo solo con icono (ahorra espacio). */
@media (max-width: 560px) {
  .fbx-fab { padding: 0; width: 50px; height: 50px; justify-content: center; }
  .fbx-fab .fbx-fab__t { display: none; }
}
/* Si hay barra de navegación inferior (app en móvil), el botón de accesibilidad
   sube a bottom:80, así que el buzón sube por encima de él. */
@media (max-width: 900px) { body:has(.bottomnav) .fbx-fab { bottom: 140px; } }
/* Mientras el banner de cookies está visible, ocultamos el FAB (como a11y/chatbot). */
body:has(#cookie-banner) .fbx-fab { display: none; }

.fbx-panel {
  position: fixed; left: 16px; bottom: 138px; z-index: 58;
  width: 340px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--cyan-100, #d7f0f8); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(8, 40, 60, .26); overflow: hidden;
  font-family: inherit; color: var(--ink, #0e2438);
  animation: fbx-in .16s ease-out;
}
@keyframes fbx-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { body:has(.bottomnav) .fbx-panel { bottom: 202px; } }
@media (max-width: 560px) { .fbx-panel { left: 8px; right: 8px; width: auto; } }

.fbx-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--sea-600, #0f9a80), var(--sea-700, #0c7d68));
}
.fbx-head__ic { display: flex; }
.fbx-head__ic svg { width: 22px; height: 22px; }
.fbx-head__t { font-size: 15px; font-weight: 800; }
.fbx-head__s { font-size: 12px; opacity: .9; }
.fbx-x { margin-left: auto; background: rgba(255, 255, 255, .15); border: 0; color: #fff; cursor: pointer; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fbx-x:hover { background: rgba(255, 255, 255, .28); }
.fbx-x svg { width: 17px; height: 17px; }

.fbx-body { padding: 15px 16px 16px; }
.fbx-body label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy-700, #16496f); margin: 0 0 5px; }
.fbx-body textarea, .fbx-body input[type="email"] {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 14.5px; color: var(--ink, #0e2438);
  border: 1.5px solid var(--cyan-100, #d7f0f8); border-radius: 10px; padding: 10px 12px; background: #fbfdfe;
  transition: border-color .15s;
}
.fbx-body textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.fbx-body textarea:focus, .fbx-body input[type="email"]:focus { outline: none; border-color: var(--sea-500, #16b397); }
.fbx-body .fbx-email { margin-top: 11px; }
.fbx-hint { font-size: 11.5px; color: #6b8198; margin: 6px 2px 0; line-height: 1.45; }
/* Honeypot: oculto para personas, cebo para bots. */
.fbx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fbx-send {
  margin-top: 13px; width: 100%; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--sea-600, #0f9a80); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s;
}
.fbx-send:hover { background: var(--sea-700, #0c7d68); }
.fbx-send:disabled { opacity: .6; cursor: default; }
.fbx-send svg { width: 17px; height: 17px; }
.fbx-err { font-size: 13px; color: #c0392b; margin: 10px 2px 0; min-height: 0; }

/* Estado de éxito */
.fbx-ok { padding: 26px 22px; text-align: center; }
.fbx-ok__ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--sea-50, #e8faf5); color: var(--sea-600, #0f9a80); display: flex; align-items: center; justify-content: center; }
.fbx-ok__ic svg { width: 30px; height: 30px; }
.fbx-ok h3 { font-size: 17px; margin: 0 0 6px; color: var(--navy-800, #103a5c); }
.fbx-ok p { font-size: 13.5px; color: #5e7287; margin: 0; line-height: 1.5; }

@media (prefers-reduced-motion: reduce), (prefers-reduced-motion) {
  .fbx-fab, .fbx-send, .fbx-panel { transition: none; animation: none; }
}
