/* Maguana Club · Flujo de reservas (calendario → personas → plano → datos → hecho) */

html.rm-bloqueo, html.rm-bloqueo body { overflow: hidden; }

.reserva-modal-card { transition: max-width .25s ease; }
.reserva-modal-card.ancha { max-width: 980px; }
@media (max-width: 799px) {
  .reserva-modal-backdrop.show { padding: 0; align-items: stretch; }
  .reserva-modal-card { max-width: none; max-height: none; height: 100%; height: 100dvh; border: none; padding: 22px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .reserva-modal-card.ancha { max-width: none; }
}
@media (min-width: 800px) {
  .reserva-modal-card.ancha { max-height: 92vh; }
}

.rm-paso[hidden] { display: none !important; }
.rm-volver {
  position: absolute; top: 14px; left: 14px; height: 30px; padding: 0 10px;
  background: none; border: 1px solid var(--line); color: var(--ivory);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.rm-volver[hidden] { display: none; }
.rm-cal-header button:disabled { opacity: .25; cursor: default; }
.rm-cal-day.past { color: #3a3a3a; border-color: rgba(255,255,255,0.05); cursor: default; }
.rm-cal-day.today { outline: 1px dashed rgba(221,187,116,.55); outline-offset: -4px; }
.rm-cal-day:not(.closed):not(.past):not(.empty):hover { border-color: var(--gold-bright); }
.rm-dp-thumb { background-size: cover; background-position: center; }
.rm-dp-event-body .hora { color: var(--gold); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.rm-cargando { text-align: center; color: var(--ivory-dim); font-size: .85rem; padding: 36px 0; }
.rm-cargando::before {
  content: ''; display: block; width: 22px; height: 22px; margin: 0 auto 12px;
  border: 2px solid var(--line); border-top-color: var(--gold-bright); border-radius: 50%;
  animation: rm-gira .8s linear infinite;
}
@keyframes rm-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rm-cargando::before { animation: none; } }

.rm-aviso {
  border: 1px solid rgba(255,90,90,.45); background: rgba(122,35,51,.25);
  color: #F2D6D6; font-size: .8rem; padding: 10px 12px; margin: 0 0 14px;
}
.rm-aviso[hidden] { display: none; }
.rm-aviso.info { border-color: var(--line); background: rgba(198,161,91,.08); color: var(--ivory); }

.rm-resumen-linea {
  text-align: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin: -8px 0 18px;
}

/* Paso personas */
.rm-personas { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 10px 0 8px; }
.rm-personas button {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  background: none; color: var(--gold-bright); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.rm-personas button:disabled { opacity: .25; cursor: default; }
.rm-personas output { font-family: 'Prata', serif; font-size: 3rem; min-width: 70px; text-align: center; line-height: 1; }
.rm-personas-txt { text-align: center; color: var(--ivory-dim); font-size: .8rem; margin-bottom: 24px; }

/* Paso plano */
.rm-plano-cab { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; margin-bottom: 12px; }
.rm-leyenda { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: .66rem; color: var(--ivory-dim); margin: 10px 0 12px; }
.rm-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rm-leyenda i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.rm-leyenda .l-libre { background: #141B17; box-shadow: 0 0 0 2px var(--gold-bright); }
.rm-leyenda .l-res { background: rgba(255,40,40,.5); }
.rm-leyenda .l-no { background: #141B17; opacity: .35; box-shadow: 0 0 0 1px #4B5A52; }
.rm-leyenda .l-sel { background: var(--gold-bright); }

.rm-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 14px; }
.rm-chips-tit { width: 100%; text-align: center; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-dim); }
.rm-chip {
  border: 1px solid var(--line); background: none; color: var(--ivory);
  padding: 7px 12px; font-size: .78rem; cursor: pointer; font-family: inherit;
}
.rm-chip small { color: var(--ivory-dim); margin-left: 4px; }
.rm-chip.activa { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }
.rm-chip.activa small { color: var(--bg-deep); }

.rm-barra {
  position: sticky; bottom: -30px; margin: 0 -22px -30px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(0,0,0,.94); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; z-index: 6;
}
@media (max-width: 799px) { .rm-barra { margin: 0 -16px; bottom: -24px; padding-left: 16px; padding-right: 16px; } }
.rm-barra .txt { flex: 1; font-size: .82rem; line-height: 1.3; }
.rm-barra .txt b { display: block; font-size: .95rem; color: var(--gold-bright); font-weight: 600; }
.rm-barra .rm-dp-btn { width: auto; padding: 13px 22px; flex: 0 0 auto; }
.rm-dp-btn:disabled { opacity: .35; cursor: default; }

/* Plano */
.mp-wrap { position: relative; }
.mp-scroller { overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: #0B0F0D; max-height: 62vh; }
@media (max-width: 799px) { .mp-scroller { max-height: 56vh; } }
.mp-marco { position: relative; width: 100%; padding-top: 66.6667%; }
.mp-lienzo { position: absolute; inset: 0; }
.mp-suelo { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-mesa { transition: box-shadow .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.mp-mesa::after { content: ''; position: absolute; inset: -8px; border-radius: inherit; }
.mp-candidata { animation: mp-latido 2.2s ease-in-out infinite; }
@keyframes mp-latido { 50% { filter: brightness(1.35); } }
@media (prefers-reduced-motion: reduce) { .mp-candidata { animation: none; } }
.mp-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 2px; background: rgba(0,0,0,.8); border: 1px solid var(--line); z-index: 8; }
.mp-zoom-btn { width: 34px; height: 34px; background: none; border: none; color: var(--gold-bright); font-size: 1.2rem; cursor: pointer; }
.mp-zoom-btn:disabled { opacity: .3; cursor: default; }
.mp-zoom-val { font-size: .66rem; color: var(--ivory-dim); min-width: 38px; text-align: center; }

/* Paso datos */
.rm-ficha { border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; font-size: .84rem; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.rm-ficha dt { color: var(--ivory-dim); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.rm-ficha dd { margin: 0; }
.rm-campo { margin-bottom: 14px; }
.rm-campo label { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 6px; }
.rm-campo input, .rm-campo textarea {
  width: 100%; background: #0E0E0E; border: 1px solid rgba(198,161,91,.35); color: var(--ivory);
  padding: 12px; font-size: 1rem; font-family: inherit; border-radius: 0;
}
.rm-campo textarea { min-height: 70px; resize: vertical; font-size: .9rem; }
.rm-campo input:focus, .rm-campo textarea:focus { outline: none; border-color: var(--gold-bright); }
.rm-campo .ayuda { font-size: .7rem; color: var(--ivory-dim); margin-top: 5px; }
.rm-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rm-check { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; color: var(--ivory-dim); margin: 6px 0 18px; cursor: pointer; }
.rm-check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.rm-check a, .rm-priv summary { color: var(--gold-bright); text-decoration: underline; cursor: pointer; }
.rm-priv { font-size: .72rem; color: var(--ivory-dim); margin: -10px 0 18px; line-height: 1.5; }
.rm-priv summary { list-style: none; font-size: .72rem; }
.rm-priv summary::-webkit-details-marker { display: none; }
.rm-priv div { border-left: 2px solid var(--line); padding: 8px 0 2px 12px; margin-top: 8px; }

/* Paso hecho */
.rm-hecho { text-align: center; padding: 10px 0 6px; }
.rm-hecho .ok {
  width: 64px; height: 64px; margin: 4px auto 16px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; color: var(--gold-bright);
}
.rm-hecho .ok svg { width: 30px; height: 30px; }
.rm-hecho h3 { margin-bottom: 8px; }
.rm-hecho .codigo { display: inline-block; font-family: 'Prata', serif; font-size: 1.4rem; letter-spacing: .08em; color: var(--gold-bright); border: 1px dashed var(--line); padding: 6px 16px; margin: 8px 0 16px; }
.rm-hecho p { color: var(--ivory-dim); font-size: .86rem; margin-bottom: 14px; }
.rm-hecho .rm-ficha { text-align: left; }

.rm-chips-plegable { width: 100%; }
.rm-chips-plegable summary { cursor: pointer; list-style: none; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.rm-chips-plegable summary::-webkit-details-marker { display: none; }
.rm-chips-plegable .rm-chips { margin-top: 8px; }
#rmPasoPlano { padding-bottom: 8px; }
