/* ===========================
   FUENTES LOCALES
   =========================== */
@font-face {
  font-family: 'Rift Soft';
  src: url('fonts/Tipografias/Rift Soft/Rift Soft Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rift Soft';
  src: url('fonts/Tipografias/Rift Soft/Rift Soft Bold Italic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Rift Soft';
  src: url('fonts/Tipografias/Rift Soft/Rift Soft Demi.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Darkmode';
  src: url('fonts/Tipografias/Darkmode/Darkmode DarkmodeOn XBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Darkmode';
  src: url('fonts/Tipografias/Darkmode/Darkmode DarkmodeOn Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===========================
   VARIABLES
   =========================== */
:root {
  --color-bg:         #00492E;
  --color-primary:    #FF6B35;
  --color-white:      #FFFFFF;
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex-grow: 1; }

/* ===========================
   HEADER
   =========================== */
#mainHeader {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  height: 62px;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  column-gap: 8px;
}

#logoHeader {
  justify-self: center;
  height: auto;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.back-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}
.back-btn i {
  font-size: 20px;
  line-height: 1;
  color: var(--color-white);
}

.header-spacer {
  display: block;
  width: 44px;
  height: 44px;
}

/* ===========================
   LANDING HERO
   =========================== */
.landing-hero {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 260px;
  overflow: hidden;
}

.landing-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.15) 0%,
      rgba(0,73,46,0.25) 45%,
      rgba(0,73,46,0.80) 75%,
      var(--color-bg) 100%
    );
  pointer-events: none;
}

.landing-hero__logo-overlay {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  width: 200px;
  max-width: 65vw;
  object-fit: contain;
  z-index: 2;
  animation: dropInCentered 1.4s cubic-bezier(.34,1.56,.64,1) both;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.5));
}

@keyframes dropInCentered {
  from { opacity: 0; transform: translate(-50%, -18px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===========================
   CATEGORY LANDING
   =========================== */
.category-landing {
  padding: 0 0 32px;
}

/* ===========================
   CATEGORY CARDS
   =========================== */
.category-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 8px;
}

.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  min-height: 140px;
  display: flex;
  align-items: stretch;
  opacity: 0;
  animation: dropIn 0.8s cubic-bezier(.34,1.56,.64,1) both;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease;
}
.category-card:active {
  transform: scale(0.97);
}

/* Background image */
.category-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle overlay — image stays visible, text protected by shadow */
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(0, 35, 18, 0.30) 0%,
    rgba(0, 35, 18, 0.18) 45%,
    rgba(0, 35, 18, 0.00) 100%
  );
}

/* Fallback card without image */
.category-card--no-img {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

/* Nosotros accent */
.category-card--nosotros {
  border: 1px solid rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.08);
}
.category-card--nosotros .category-card__name {
  color: var(--color-primary);
}
.category-card--nosotros .category-card__arrow i {
  color: var(--color-primary);
}

/* Content layer */
.category-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 56px 20px 22px;
  gap: 5px;
  width: 100%;
}

.category-card__name {
  font-family: 'Rift Soft', sans-serif;
  font-size: clamp(1.9rem, 7.5vw, 3rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-white);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}

.category-card__sub {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.category-card__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.90rem;
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   MARQUEE
   =========================== */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
  margin-top: 8px;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-family: 'Rift Soft', sans-serif;
  font-size: 0.80rem;
  font-weight: 700;
  font-style: italic;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================
   RECOMENDADO CARD
   =========================== */
.recomendado-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 14px;
  margin: 16px 16px 4px;
  overflow: hidden;
}

.recomendado-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #27ae60;
  color: white;
  font-family: 'Rift Soft', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 5px 14px 5px 20px;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  border-bottom-left-radius: 10px;
  line-height: 1;
}

.recomendado-card__img {
  width: 100px;
  height: 100px;
  min-width: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.recomendado-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 44px;
}

.recomendado-card__label {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 700;
  color: rgba(255,255,255,0.60);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recomendado-card__name-desc {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin: 0;
}
.recomendado-card__name-desc strong {
  color: var(--color-white);
  font-weight: 800;
}

.recomendado-card__price {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
}

/* ===========================
   CATEGORY VIEW
   =========================== */
.category-view { padding-bottom: 32px; }

.category-header {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 32px;
  background: #0d3d24;
  background-size: cover;
  background-position: center;
}
.category-header__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.15) 0%,
      rgba(0,73,46,0.25) 45%,
      rgba(0,73,46,0.80) 75%,
      var(--color-bg) 100%
    );
  z-index: 1;
  pointer-events: none;
}
.category-title {
  position: relative;
  z-index: 2;
  font-family: 'Rift Soft', sans-serif;
  font-size: clamp(3.2rem, 12vw, 5.5rem);
  color: var(--color-white);
  font-style: italic;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.55);
  padding: 0 16px;
}

.category-dishes-list {
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
}

/* ===========================
   DISH CARDS — VERTICAL
   =========================== */
.dish-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  width: 100%;
  min-height: 160px;
}

.dish-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}
.dish-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dish-card__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  color: rgba(255,255,255,0.18);
  font-size: 2.2rem;
}

.dish-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 8px;
}

.dish-card__name {
  font-family: 'Darkmode', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  padding-right: 48px;
}

.dish-card__desc {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.dish-card__price {
  font-family: 'Darkmode', 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-white);
  display: block;
}

/* Badge / banderín de tag */
.dish-tag {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Rift Soft', sans-serif;
  font-size: 0.70rem;
  letter-spacing: 0.08em;
  color: white;
  padding: 5px 10px 5px 14px;
  border-bottom-left-radius: 10px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
  line-height: 1;
  white-space: nowrap;
}
.dish-tag--new      { background: #2d7a50; }
.dish-tag--picante  { background: #c0392b; }
.dish-tag--vegano   { background: #27ae60; }
.dish-tag--promo    { background: var(--color-primary); }

/* ===========================
   DRINKS TEXT VIEW
   =========================== */
.food-subcategory-section {
  margin-bottom: 28px;
}

.food-subcategory-section__title {
  font-family: 'Rift Soft', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.35);
  margin-bottom: 12px;
}

.drinks-section {
  margin-bottom: 24px;
}

.drinks-section__title {
  font-family: 'Rift Soft', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.35);
  margin-bottom: 2px;
}

.drink-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.drink-row:last-child {
  border-bottom: none;
}

.drink-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.drink-row__name {
  font-family: 'Darkmode', sans-serif;
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.drink-row__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}

.drink-row__price {
  font-family: 'Darkmode', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===========================
   NOSOTROS VIEW
   =========================== */
.nosotros-view {
  min-height: 100vh;
  background: var(--color-bg);
}
.nosotros-view__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 60px;
  gap: 22px;
  max-width: 520px;
  margin: 0 auto;
}
.nosotros-view__logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  padding: 10px;
}
.nosotros-view__nombre {
  font-family: 'Rift Soft', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  margin: 0;
}
.nosotros-view__slogan {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: -10px 0 0;
}
.nosotros-view__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.nosotros-view__hours {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 18px 22px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.94rem;
  line-height: 2;
  color: rgba(255,255,255,0.82);
}
.nosotros-view__hours p { margin: 0; }
.nosotros-view__section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.nosotros-view__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.nosotros-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: var(--color-white);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  transition: background 0.18s;
}
.nosotros-social-link:hover { background: rgba(255,255,255,0.14); }
.nosotros-social-link i { font-size: 19px; color: var(--color-primary); }
.nosotros-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  background: #25D366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s;
  margin-top: 4px;
}
.nosotros-wa-btn:hover { opacity: 0.88; }
.nosotros-wa-btn i { font-size: 20px; }

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--color-bg);
  padding: 28px 16px;
  text-align: center;
}
.footer-logo {
  width: 70px;
  opacity: 0.78;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.copyright-text {
  color: rgba(255,255,255,0.44);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.79rem;
  margin-bottom: 8px;
}
.powered-by {
  color: rgba(255,255,255,0.48);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.81rem;
}
.gastroredes-link {
  color: #07eb85;
  font-weight: 700;
  text-decoration: none;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 768px) {
  .category-cards {
    max-width: 600px;
    margin: 0 auto;
  }
  .category-card {
    min-height: 160px;
  }
  .category-card__name {
    font-size: 3rem;
  }
}

/* ===========================
   TRANSICIONES DE PÁGINA
   =========================== */
@keyframes pageSlideInRight {
  from { opacity: 0; transform: translateX(52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pageSlideInLeft {
  from { opacity: 0; transform: translateX(-52px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pageSlideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-52px); }
}
@keyframes pageSlideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(52px); }
}
.page-exit-left  { animation: pageSlideOutLeft  0.20s cubic-bezier(.4,0,1,1) both; pointer-events: none; }
.page-exit-right { animation: pageSlideOutRight 0.20s cubic-bezier(.4,0,1,1) both; pointer-events: none; }
.page-enter-right { animation: pageSlideInRight 0.32s cubic-bezier(.22,1,.36,1) both; }
.page-enter-left  { animation: pageSlideInLeft  0.32s cubic-bezier(.22,1,.36,1) both; }

/* ===========================
   IMAGEN BG — CABECERA CATEGORÍA
   =========================== */
.category-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
}
@keyframes bgZoomIn {
  from { transform: scale(1.10); }
  to   { transform: scale(1); }
}
.category-header__bg--zoom {
  animation: bgZoomIn 0.7s cubic-bezier(.22,1,.36,1) both;
}

/* ===========================
   TÍTULO CATEGORÍA — ENTRADA
   =========================== */
@keyframes titleUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.category-title--enter {
  animation: titleUp 0.44s 0.12s cubic-bezier(.22,1,.36,1) both;
}

/* ===========================
   PLATOS — ENTRADA ESCALONADA
   =========================== */
@keyframes dishFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.dish-animate {
  animation: dishFadeUp 0.38s cubic-bezier(.22,1,.36,1) both;
}

/* ===========================
   BOTÓN ATRÁS — ENTRADA
   =========================== */
@keyframes backSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.back-btn--enter {
  animation: backSlideIn 0.26s 0.10s cubic-bezier(.22,1,.36,1) both;
}

/* ===========================
   RIPPLE EN TARJETAS
   =========================== */
.category-card__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  transform: scale(0);
  pointer-events: none;
  z-index: 5;
  animation: rippleOut 0.55s ease-out forwards;
}
@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}
