/* Estilos nuevos para el catálogo dinámico y el flujo de reserva.
   Reutilizan las variables de color definidas en styles.css (--orange,
   --ink, --card, --line, --text, --text-soft). */

.game-photo {
  position: relative;
  overflow: hidden;
  background: var(--card);
}
.game-photo-placeholder {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 122, 0, 0.08),
    rgba(255, 122, 0, 0.08) 10px,
    transparent 10px,
    transparent 20px
  );
}

.game-price {
  font-weight: 700;
  color: var(--ink);
  margin: 0.25rem 0 0.75rem;
}
.game-price-original {
  color: var(--text-soft);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 0.5rem;
}

.br-catalog-empty {
  color: var(--text-soft);
}

/* ---------- Tarjetas destacadas (home): solo foto + nombre ---------- */
.game-card-featured .game-body {
  padding: 16px 18px;
}
.game-card-featured .game-body h3 {
  margin: 0;
}

/* ---------- Tarjetas de juegos (home): toda la card abre WhatsApp ---------- */
.game-card-wa {
  display: block;
  text-decoration: none;
  color: inherit;
}
.game-card-wa .game-photo {
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--tone) 30%, var(--card)),
    color-mix(in srgb, var(--tone) 58%, var(--bg))
  );
}
.game-card-wa .game-body h3 {
  margin-bottom: 6px;
}
.game-card-wa .game-body p {
  margin: 0 0 10px;
}
.game-photo-index {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.6rem;
  line-height: 1;
  color: color-mix(in srgb, var(--tone) 80%, var(--dark));
  opacity: 0.6;
}
.game-detail {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 16%, transparent);
  color: color-mix(in srgb, var(--tone) 62%, var(--text));
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Nubecita de pensamiento sobre la letra R ----------
   --bubble-dx / --bubble-dy corrun la nube respecto de la R: +
   a la derecha, - hacia arriba. Se ajustan acá si hay que moverla. */
.think-bubble {
  --bubble-dx: 78px;
  --bubble-dy: -40px;
  position: absolute;
  left: clamp(76px, calc(var(--r-x, 50%) + var(--bubble-dx)), calc(100% - 76px));
  top: calc(var(--r-top, 34%) + var(--bubble-dy));
  transform: translate(-50%, -100%);
  z-index: 4;
  margin-bottom: 26px;
  padding: 12px 24px 14px;
  background: #fff;
  color: var(--dark);
  border: 2px solid var(--dark);
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  box-shadow: 5px 6px 0 rgba(32, 18, 5, 0.18);
  pointer-events: none;
  animation: think-bob 2.8s ease-in-out infinite;
}
.think-bubble.is-hidden {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.think-dot {
  position: absolute;
  background: #fff;
  border: 2px solid var(--dark);
  border-radius: 50%;
}
/* Los puntitos bajan hacia la R, que quedó abajo-izquierda de la nube. */
.think-dot-lg {
  width: 14px;
  height: 14px;
  left: 4px;
  bottom: -21px;
}
.think-dot-sm {
  width: 8px;
  height: 8px;
  left: -3px;
  bottom: -40px;
}
@keyframes think-bob {
  0%,
  100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, calc(-100% - 7px));
  }
}

/* ---------- Hint de scroll del hero: punto que sube + "Desliza" ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 21%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.scroll-cue.is-hidden {
  opacity: 0;
}
.scroll-cue-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 14%, transparent);
  animation: scroll-cue-dot 2s ease-in-out infinite;
}
@keyframes scroll-cue-dot {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  70% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(-10px);
    opacity: 0;
  }
}
.scroll-cue-label {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .scroll-cue {
    bottom: 24%;
  }
}
@media (max-height: 620px) {
  .scroll-cue {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-dot {
    animation: none;
  }
}

/* ---------- Página /catalogo: header propio con logo animado ---------- */
.catalogo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}
.catalogo-header-logo {
  text-decoration: none;
}
.catalogo-header-logo .display {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--orange);
  animation: catalogo-logo-float 3.6s ease-in-out infinite;
}
@keyframes catalogo-logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .catalogo-header-logo .display {
    animation: none;
  }
}

/* ---------- Explorador de catálogo: filtros + orden ---------- */
.catalog-explorer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 56px) 60px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 2.2rem;
}
.catalog-filters input[type="search"],
.catalog-filters input[type="number"],
.catalog-filters select {
  font: inherit;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
.catalog-filters > label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}
.catalog-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-category-pills button {
  font: inherit;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
  cursor: pointer;
}
.catalog-category-pills button.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.catalog-price-range {
  display: flex;
  gap: 10px;
}
.catalog-price-range label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ---------- Página /catalogo: footer propio (liviano, sin animaciones) ---------- */
.catalogo-footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 5vw, 56px) 40px;
  color: var(--text-soft);
}
.catalogo-footer p {
  margin: 0 0 10px;
}
.catalogo-footer a {
  color: inherit;
}
.catalogo-footer-brand {
  text-decoration: none;
  font-size: 1.3rem;
  color: var(--orange);
}

button.btn-wsp {
  cursor: pointer;
  border: none;
  font: inherit;
}

/* ---------- Modal de reserva ---------- */
.br-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 12, 4, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.br-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}
.br-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-soft);
}
.br-modal h3 {
  margin: 0 0 12px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  color: var(--ink);
}
.br-modal-hint {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 10px;
}
.br-modal-success p {
  margin-bottom: 16px;
}
.br-modal-error {
  color: #b3261e;
  font-size: 0.85rem;
}

.br-booking-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.br-booking-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.br-booking-form input,
.br-booking-form textarea {
  font: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.br-booking-form button[type="submit"] {
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.br-booking-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Calendario ---------- */
.br-calendar {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.br-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: var(--ink);
}
.br-calendar-header button {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--orange);
  padding: 2px 8px;
}
.br-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.br-calendar-weekdays {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.br-calendar-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.br-calendar-day:hover:not(.is-disabled) {
  background: color-mix(in srgb, var(--orange) 16%, transparent);
}
.br-calendar-day.is-selected {
  background: var(--orange);
  color: #fff;
}
.br-calendar-day.is-disabled {
  color: var(--line);
  text-decoration: line-through;
  cursor: not-allowed;
}
