/* =========================================================================
   /restaurantes/ (templates/restaurants/hub.html). Lo común (tarjetas, cocinas, platos,
   ciudades, botones) viene de home-v2.css; aquí solo lo propio de esta página.
   ========================================================================= */

/* ---------- Cabecera ---------- */
.rh-hero { position: relative; z-index: 5; overflow: clip visible; background: var(--hv-cream); border-bottom: 2px solid var(--hv-ink); }
.rh-hero__in { display: flex; align-items: center; gap: 32px; min-height: 560px; flex-wrap: wrap; }
.rh-hero__copy { flex: 1 1 520px; min-width: 0; position: relative; z-index: 2; padding: 56px 0; }
.rh-crumbs { font-size: 13px; color: var(--hv-soft); }
.home-v2 .rh-crumbs a { color: var(--hv-green); }
.rh-h1 { margin: 20px 0 0; font-size: 62px; line-height: 1.02; font-weight: 700; letter-spacing: -.025em; color: var(--hv-ink); }
.rh-green { color: var(--hv-green); }

/* Accesos rápidos */
.rh-quick { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.rh-qchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--hv-ink); color: var(--hv-ink); font-size: 14px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.home-v2 .rh-qchip { color: var(--hv-ink); }
.rh-qchip:hover, .rh-qchip:focus-visible { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--hv-green); }
.rh-star { color: var(--hv-gold); }
.home-v2 .rh-qchip--ai { background: var(--hv-green); color: #FFFFFF; border-color: var(--hv-green); }
.rh-qchip--ai:hover, .rh-qchip--ai:focus-visible { box-shadow: 3px 3px 0 var(--hv-ink); }

/* Columnas de fotos que suben y bajan */
.rh-cols { flex: 1 1 420px; min-width: 0; position: relative; height: 560px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.rh-cols__in { position: absolute; inset: -80px -20px; display: flex; gap: 18px; justify-content: center; transform: rotate(-8deg); }
.rh-col { display: flex; flex-direction: column; gap: 18px; width: 150px; animation: rhUp 38s linear infinite; }
.rh-col--down { animation-name: rhDown; animation-duration: 44s; }
.rh-col--slow { animation-duration: 52s; }
.rh-cols:hover .rh-col { animation-play-state: paused; }
@keyframes rhUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes rhDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.rh-col img { width: 150px; height: 150px; border-radius: 20px; display: block; border: 2px solid var(--hv-ink); box-shadow: 6px 6px 0 var(--hv-ink); flex: none; object-fit: cover; background: var(--hv-photo-bg); }

/* ---------- Estados ---------- */
.rh-states { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 12px; }
.rh-state { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1.5px solid var(--hv-sand); border-radius: 16px; background: #FFFFFF; color: var(--hv-ink); min-width: 0; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-v2 .rh-state { color: var(--hv-ink); }
.rh-state:hover, .rh-state:focus-visible { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--hv-green); border-color: var(--hv-ink); }
.rh-state b { font-size: 28px; line-height: 1; color: var(--hv-green); }
.rh-state__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rh-bar { height: 6px; border-radius: 999px; background: #EFE7DA; overflow: hidden; }
.rh-bar i { display: block; height: 100%; border-radius: 999px; background: var(--hv-green); }

/* ---------- El Pana ---------- */
.rh-pana { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 48px; border: 2px solid var(--hv-ink); border-radius: 28px; background: var(--hv-cream); box-shadow: 12px 12px 0 var(--hv-green); }
.rh-pana__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rh-pana__pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--hv-green); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.home-v2 .rh-pana__h2 { margin: 0; font-family: inherit; font-size: 48px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; color: var(--hv-ink); }
.rh-pana__p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--hv-soft); max-width: 480px; }
.rh-pana__cta { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--hv-green); font-weight: 700; font-size: 16px; border: 2px solid var(--hv-ink); box-shadow: 5px 5px 0 var(--hv-ink); transition: transform .2s ease, box-shadow .2s ease; }
.home-v2 .rh-pana__cta, .home-v2 .rh-pana__cta:hover { color: #FFFFFF; }
.rh-pana__cta:hover, .rh-pana__cta:focus-visible { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--hv-ink); }
.rh-chat { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rh-bub { max-width: 88%; padding: 14px 18px; border-radius: 20px; font-size: 15px; line-height: 1.45; border: 2px solid var(--hv-ink); }
.rh-bub--me { align-self: flex-end; background: #FFFFFF; border-bottom-right-radius: 6px; }
.rh-bub--pa { align-self: flex-start; background: var(--hv-green); color: #FFFFFF; border-bottom-left-radius: 6px; }
.rh-typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; border-radius: 20px; border: 2px solid var(--hv-ink); background: #FFFFFF; align-self: flex-start; }
.rh-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--hv-green); animation: rhBlink 1.2s ease-in-out infinite; }
.rh-typing i:nth-child(2) { animation-delay: .15s; } .rh-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rhBlink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rh-hero__in { min-height: 0; }
  .rh-h1 { font-size: 48px; }
  .rh-cols { height: 300px; flex-basis: 100%; }
  .rh-col { width: 110px; }
  .rh-col img { width: 110px; height: 110px; }
  .rh-states { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .rh-h1 { font-size: 40px; }
  .rh-hero__copy { padding: 36px 0 0; }
  .rh-cols { display: none; }  /* en móvil la cabecera va directa al contenido */
  .rh-hero__copy { padding-bottom: 32px; }
  .rh-pana { padding: 28px 20px; gap: 24px; box-shadow: 8px 8px 0 var(--hv-green); border-radius: 22px; }
  .home-v2 .rh-pana__h2 { font-size: 34px; }
  .rh-pana__cta { width: 100%; justify-content: center; }
  .rh-state b { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .rh-col, .rh-typing i { animation: none !important; }
}
