/* Centro de ayuda (ayuda.js): burbuja «?» abajo a la derecha y su panel. Todo bajo .ay
   para no chocar con Tailwind de la portada ni con .rv de reservas. */
.ay { --ay-bg: #1d140f; --ay-card: #2a1f17; --ay-line: rgba(255, 255, 255, 0.1); --ay-ink: #f5ede4; --ay-soft: #cdbfae;
  --ay-muted: #9d8f80; --ay-yellow: #ffc21a; --ay-orange: #e8650a;
  position: fixed; right: 16px; bottom: 16px; z-index: 70; font-family: inherit; color: var(--ay-ink); }
.ay * { box-sizing: border-box; }

/* Burbuja */
.ay-burbuja { display: flex; align-items: center; gap: 8px; margin-left: auto; border: 0; cursor: pointer; border-radius: 999px;
  padding: 8px 18px 8px 8px; background: var(--ay-yellow); color: #2a1a00; font: inherit; font-weight: 800; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform .15s ease, box-shadow .15s ease; }
.ay-burbuja:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.ay-burbuja:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ay-q { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2a1a00; color: var(--ay-yellow); font-size: 20px; font-weight: 900; }
.ay-abierto .ay-burbuja { display: none; }

/* Panel */
.ay-panel { position: absolute; right: 0; bottom: 0; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100vh - 32px));
  display: flex; flex-direction: column; background: var(--ay-bg); border: 1px solid rgba(255, 194, 26, 0.35); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); overflow: hidden; animation: ay-entra .18s ease-out; }
.ay-panel[hidden] { display: none; }
@keyframes ay-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ay-cab { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 10px; }
.ay-tit { flex: 1; min-width: 0; }
.ay-h { margin: 0; font-size: 20px; font-weight: 800; color: var(--ay-yellow); line-height: 1.2; }
.ay-sub { margin: 2px 0 0; font-size: 14px; color: var(--ay-soft); }
.ay-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ay-line); background: transparent; color: var(--ay-ink);
  font-size: 22px; line-height: 1; cursor: pointer; }
.ay-x:hover { border-color: var(--ay-yellow); }
.ay-buscar { margin: 0 16px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--ay-line); background: var(--ay-card);
  color: var(--ay-ink); font: inherit; font-size: 15px; outline: none; }
.ay-buscar:focus { border-color: var(--ay-yellow); }
.ay-chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.ay-chips::-webkit-scrollbar { display: none; }
.ay-chip { flex: none; border: 1px solid var(--ay-line); background: var(--ay-card); color: var(--ay-soft); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ay-chip[aria-selected="true"] { background: var(--ay-orange); border-color: var(--ay-orange); color: #fff; }

.ay-lista { flex: 1; overflow-y: auto; padding: 4px 16px 16px; overscroll-behavior: contain; }
.ay-tema { margin: 14px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ay-muted); }
.ay-nada { margin: 24px 0; text-align: center; color: var(--ay-soft); }
.ay-item { border: 1px solid var(--ay-line); background: var(--ay-card); border-radius: 14px; margin-bottom: 8px; }
.ay-item[open] { border-color: rgba(255, 194, 26, 0.45); }
.ay-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-weight: 700;
  font-size: 15px; line-height: 1.35; }
.ay-item summary::-webkit-details-marker { display: none; }
.ay-item summary > span { flex: 1; }
.ay-item summary::after { content: '▾'; flex: none; color: var(--ay-yellow); transition: transform .15s; }
.ay-item[open] summary::after { transform: rotate(180deg); }
.ay-badge { flex: none; font-style: normal; font-size: 11px; font-weight: 800; color: #2a1a00; background: var(--ay-yellow); border-radius: 999px; padding: 2px 8px; }
.ay-guia { border-left: 4px solid var(--ay-yellow); }
.ay-cuerpo { padding: 0 14px 14px; }
.ay-r { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ay-soft); }
.ay-r b, .ay-paso b { color: var(--ay-ink); }
.ay a { color: var(--ay-yellow); }

/* Pasos con captura */
.ay-pasos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ay-pasos li { display: flex; gap: 10px; }
.ay-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ay-orange); color: #fff;
  font-size: 13px; font-weight: 800; margin-top: 1px; }
.ay-paso { flex: 1; min-width: 0; }
.ay-paso p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; color: var(--ay-soft); }
.ay-img { display: block; width: 100%; max-height: 520px; object-fit: contain; object-position: top left; border-radius: 10px;
  border: 1px solid var(--ay-line); background: #120c08; cursor: zoom-in; }

.ay-pie { border-top: 1px solid var(--ay-line); padding: 12px 16px 14px; text-align: center; }
.ay-pie p { margin: 0 0 8px; font-size: 14px; color: var(--ay-soft); }
.ay-wa { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #06301a !important; font-weight: 800; text-decoration: none;
  border-radius: 999px; padding: 10px 18px; }
.ay-wa svg { width: 20px; height: 20px; }
.ay .ay-mail { margin: 8px 0 0; font-size: 12.5px; color: var(--ay-muted); }

/* Captura en grande */
.ay-foto { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.85); display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 56px 12px 24px; cursor: zoom-out; }
.ay-foto img { max-width: min(520px, 100%); height: auto; border-radius: 12px; }
.ay-foto-x { position: fixed; top: 12px; right: 12px; background: rgba(0, 0, 0, 0.6); color: #fff; }

/* Celular: el panel ocupa la pantalla (deja ver un poco de la página arriba) */
@media (max-width: 639px) {
  .ay { right: 12px; bottom: 12px; }
  .ay-burbuja { padding: 6px; }
  .ay-boton-txt { display: none; }
  .ay-abierto .ay-panel { position: fixed; inset: 6vh 0 0 0; width: 100%; height: auto; border-radius: 20px 20px 0 0; border-bottom: 0; }
  html.ay-bloqueo, html.ay-bloqueo body { overflow: hidden; }
}
