/* ==========================================================
   hotfood.css — Plaza Tropical Hot Food Page
   Supplement to styles.css (shared tokens apply here too)
   ========================================================== */

/* ── HERO ─────────────────────────────────────────────────── */

.hf-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--green-dark);
  padding-bottom: 5rem;
}

.hf-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/bannerhot.jpg');
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.06);
  animation: hf-hero-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hf-hero-drift {
  from { transform: scale(1.06) translateX(0); }
  to   { transform: scale(1.1)  translateX(-1.2%); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-hero-bg { animation: none; transform: scale(1.06); }
}

.hf-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgb(10 28 18 / 0%) 0%, rgb(10 28 18 / 18%) 55%, rgba(10, 28, 18, 0.96) 100%);
  z-index: 1;
}

.hf-hero-overlayREAL {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,28,18,0.42) 0%,
    rgba(10,28,18,0.72) 55%,
    rgba(10,28,18,0.96) 100%
  );
  z-index: 1;
}

.hf-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;

  opacity: 0.38;
  pointer-events: none;
}

.hf-hero-grainREAL {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--grain);
  opacity: 0.38;
  pointer-events: none;
}

.hf-hero-content {
  position: relative;
  z-index: 3;
  padding-top: 7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.hf-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
  opacity: 0;
}
body.hf-loaded .hf-hero-eyebrow { opacity: 1; }

.hf-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
}

.hf-hero-title em {
  font-style: italic;
  color: var(--orange);
  font-family: var(--font-script);
  font-size: 0.88em;
}

.hf-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-mid);
  margin-bottom: 1.8rem;
  max-width: 420px;
}

.hf-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.hf-hero-cta:hover { color: var(--orange); border-color: var(--orange); }

.hf-hero-tag {
  position: absolute;
  bottom: 2.5rem;
  right: -2rem;
  z-index: 4;
  transform: rotate(90deg);
  transform-origin: bottom right;
  pointer-events: none;
}
.hf-hero-tag-inner {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── HERO ANIMATIONS ──────────────────────────────────────── */

.hf-hero [data-hero-anim] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.hf-hero [data-hero-anim="fade"] { transform: none; }
.hf-hero [data-hero-anim].anim-reset  { opacity: 0; transform: translateY(20px); }
.hf-hero [data-hero-anim="fade"].anim-reset { transform: none; }
.hf-hero [data-hero-anim].anim-play   { opacity: 1; transform: translateY(0); }

/* ── MARQUEE DIVIDER ──────────────────────────────────────── */

.hf-marquee-wrap {
  background: var(--orange);
  overflow: hidden;
  padding: 0.6rem 0;
  white-space: nowrap;
}

.hf-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  animation: hf-marquee 28s linear infinite;
  will-change: transform;
}

@keyframes hf-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hf-marquee-track { animation: none; }
}

.hf-marquee-track span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.hf-marquee-dot {
  font-size: 0.55rem !important;
  opacity: 0.6;
  letter-spacing: 0 !important;
}

/* ── FILTER BAR ───────────────────────────────────────────── */

.hf-filter-wrap {
  position: sticky;
  top: 111px; /* navbar height ~86px; sits right below */
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 4px 24px rgba(26,10,0,0.06);
}

/* Scrollable strip — full viewport width, no container constraint */
.hf-filter-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hf-filter-scroll::-webkit-scrollbar { display: none; }

.hf-filter-inner {
  display: inline-flex; /* shrink-wraps to content width so parent can scroll */
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  min-width: 100%; /* at least full width so tabs are left-aligned when not scrolling */
  justify-content: center;
  
}

.hf-filter-meta {
  display: flex;
  align-items: center;
  padding: 0.3rem 0 0.5rem;
}

#hfCount {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.hf-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.05rem;
  background: transparent;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.hf-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.hf-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,98,10,0.3);
}

.hf-tab .hf-tab-emoji {
  font-size: 0.9rem;
  line-height: 1;
}

/* ── CATEGORY SUB-NAV ─────────────────────────────────────── */

.hf-cat-nav {
  border-top: 1px solid var(--cream-dark);
  background: var(--warm-white);
}

.hf-cat-nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hf-cat-nav-scroll::-webkit-scrollbar { display: none; }

.hf-cat-nav-inner {
  display: flex;
  align-items: stretch;
  padding: 0 1rem;
  min-width: max-content;
  width: 100%;
  justify-content: center;
}

.hf-cat-nav-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-light);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  flex-shrink: 0;
}

.hf-cat-nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s var(--ease-smooth);
}

.hf-cat-nav-btn:hover { color: var(--text-dark); }

.hf-cat-nav-btn.active {
  color: var(--orange);
}
.hf-cat-nav-btn.active::after {
  transform: scaleX(1);
}

/* ── CATALOG ──────────────────────────────────────────────── */

.hf-catalog {
  background: var(--cream);
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.hf-cat-section {
  margin-bottom: 4rem;
}

.hf-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cream-dark);
  padding-top: 3.7rem;
}

.hf-cat-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.hf-cat-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hf-cat-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: auto;
  flex-shrink: 0;
}

/* Sub-header within a category (e.g. Res / Cerdo / Chivo) */
.hf-subcat {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hf-subcat::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(232,98,10,0.2);
}

/* ── DISH GRID ────────────────────────────────────────────── */

.dish-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.dish-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  content-visibility: auto;
  contain-intrinsic-size: 0 260px;
}

.dish-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.dish-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-mid);
}

.dish-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-smooth);
}

.dish-card:hover .dish-img-wrap img {
  transform: scale(1.07);
}

.dish-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(26,74,46,0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1.4;
}

.dish-special-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--orange);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.dish-body {
  padding: 0.85rem 1rem 1rem;
}
.dish-body--center {
  text-align: center;
}

.dish-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.dish-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── NO-PHOTO PLACEHOLDER — "Vapor de Cocina" ────────────── */

.dish-nophoto {
  background: transparent;
}

/* Blurred food image as atmospheric background */
.dish-nophoto-bg {
  position: absolute;
  inset: -18px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.52) saturate(1.7);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.dish-card:hover .dish-nophoto-bg {
  transform: scale(1.08);
}

/* Warm vignette + light center bloom */
.dish-nophoto-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255,210,100,0.10) 0%, transparent 60%),
    linear-gradient(175deg, rgba(10,28,18,0.22) 0%, rgba(10,28,18,0.52) 100%);
  z-index: 1;
}

/* Grain texture — matches site aesthetic */
.dish-nophoto::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain, none);
  opacity: 0.28;
  z-index: 2;
  pointer-events: none;
}

/* Centered "No Image" label */
.dish-nophoto-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .dish-card:hover .dish-nophoto-bg { transform: none; }
}

/* Badge stays visible on top with slight dark backing for legibility */
.dish-nophoto .dish-badge {
  position: relative;
  z-index: 4;
  background: rgba(10, 28, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ── CTA BAND ─────────────────────────────────────────────── */

.hf-cta-band {
  background: var(--green-dark);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}

.hf-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 65%, rgba(232,98,10,0.18) 0%, transparent 62%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hf-cta-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.hf-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.hf-cta-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hf-cta-dots span { display: block; background: var(--orange); border-radius: 50%; }
.hf-cta-dots span:nth-child(1) { width: 6px; height: 6px; opacity: 0.45; }
.hf-cta-dots span:nth-child(2) { width: 10px; height: 10px; }
.hf-cta-dots span:nth-child(3) { width: 6px; height: 6px; opacity: 0.45; }

.hf-cta-script {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--amber);
  line-height: 1.15;
  margin-bottom: 0.1rem;
}

.hf-cta-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 1rem;
}

.hf-cta-sub {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.58);
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}

.hf-cta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hf-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.3rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.hf-cta-chip i { color: var(--orange); font-size: 0.9rem; flex-shrink: 0; }

.hf-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 1199px) {
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .hf-filter-wrap { top: 90px; } /* collapsed navbar: logo (70px) + padding (~19px) */
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .hf-cat-section { margin-bottom: 3rem; }
}

@media (max-width: 767px) {
  .hf-hero { min-height: auto; padding-bottom: 4rem; }
  .hf-hero-content {
    padding-top: 5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .hf-hero-content > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hf-hero-sub { max-width: 100%; }
  .hf-hero-cta { margin-bottom: 24px; }
  .botones { width: 100%; }
  .botones .hero-btns { width: 100%; }
  .botones .hero-btns .btn { width: 100%; justify-content: center; }
  .hf-hero-tag { display: none; }
  .hf-filter-wrap { top: 111px; }
  .hf-cta-band { padding: 4.5rem 0; }
  .hf-cta-info { flex-direction: column; align-items: center; }
  .hf-cta-chip { white-space: normal; text-align: center; }
}

@media (max-width: 480px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .dish-body { padding: 0.65rem 0.75rem 0.75rem; }
  .dish-name { font-size: 0.85rem; }
  .dish-desc { font-size: 0.72rem; }
}
