/* ============ VARIABLES ============ */
:root {
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --border: #3f3f3f;
  --text: #ffffff;
  --text-muted: #9a9a9a;

  --hero-red: #e6322f;
  --hero-yellow: #ffd400;
  --hero-green: #3ecf5e;
  --hero-blue: #3b82f6;

  --accent: var(--hero-yellow);
  --accent-glow: rgba(255, 212, 0, 0.5);

  --font-display: "Bangers", cursive;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Textura de cómic (ciudad) de fondo en toda la página, muy sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("../images/comic-bg-city.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn--outline {
  background: #000;
  border-color: var(--hero-yellow);
  color: var(--hero-yellow);
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.2);
}
.btn--outline:hover {
  background: var(--hero-yellow);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.05);
}

.btn--solid {
  background: var(--hero-yellow);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.4);
}
.btn--solid:hover {
  background: #ffe14d;
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.05);
}

.btn--yellow { background: var(--hero-yellow); color: #000; }

.btn--sm { padding: 10px 20px; font-size: 13px; }

.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
.navbar.is-scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  border-color: #222;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__links--desktop { display: none; gap: 48px; }
.navbar__links--desktop a {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  font-size: 18px;
  color: #fff;
  transition: color 0.3s;
}
.navbar__links--desktop a:hover { color: var(--hero-yellow); }

.navbar__logo--mobile { height: 44px; width: auto; }

.navbar__toggle {
  background: none;
  border: none;
  color: var(--hero-yellow);
  width: 40px; height: 40px;
  cursor: pointer;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.navbar__toggle svg { width: 28px; height: 28px; }

.navbar__actions--desktop { display: none; gap: 16px; }

.navbar__mobile {
  max-height: 0;
  overflow: hidden;
  background: rgba(0,0,0,0.97);
  transition: max-height 0.5s ease;
}
.navbar__mobile.is-open { max-height: 400px; border-bottom: 1px solid #222; }
.navbar__mobile-links {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 32px 0 16px;
}
.nav-mobile-link { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.1em; color: #fff; }
.navbar__mobile-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 0 24px 32px;
}

@media (min-width: 768px) {
  .navbar__links--desktop { display: flex; }
  .navbar__logo--mobile { display: none; }
  .navbar__toggle { display: none; }
  .navbar__actions--desktop { display: flex; }
  .navbar__mobile { display: none; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, rgba(230,50,47,0.12), transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(59,130,246,0.1), transparent 55%),
              radial-gradient(ellipse at 80% 80%, rgba(62,207,94,0.1), transparent 55%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../images/comic-bg-city.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.28;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.75) 55%, var(--bg) 100%);
}

.hero__content { position: relative; z-index: 1; max-width: 780px; display: flex; flex-direction: column; align-items: center; }

.hero__logo {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 0 25px rgba(255,212,0,0.25));
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hero-yellow);
  margin-top: 28px;
}

.hero__location { margin-top: 48px; display: flex; flex-direction: column; align-items: center; }

.hero__location-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-red);
  margin: 0 0 4px;
}
.hero__location-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 4px;
}
.hero__location-caption {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin: 0 0 28px;
}

@media (min-width: 768px) {
  .hero__logo { max-width: 550px; }
  .hero__tagline { font-size: 26px; }
  .hero__location-title { font-size: 34px; }
  .hero__location-sub { font-size: 17px; }
}

/* ============ SECCIONES GENERALES ============ */
.section { padding: 64px 0; position: relative; }

.section__header { text-align: center; margin-bottom: 44px; }

.section__title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.section__caption {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.section__cta { display: flex; justify-content: center; margin-top: 32px; }

@media (min-width: 768px) {
  .section__title { font-size: 44px; }
}

/* ============ FAVORITOS CAROUSEL ============ */
.carousel { position: relative; width: 100%; overflow: hidden; }

.carousel__track {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  will-change: transform;
}

.fav-card {
  position: relative;
  flex-shrink: 0;
  width: calc(50% - 8px);
  aspect-ratio: 3 / 4;
  z-index: 0;
  overflow: hidden;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .fav-card { width: calc(25% - 12px); }
}

.fav-card:hover { z-index: 20; }

.fav-card__photo {
  position: absolute; inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #2a2a2a;
  transition: transform 0.5s ease;
}
.fav-card:hover .fav-card__photo { transform: scale(1.2); }

.fav-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.fav-card__label {
  position: absolute; bottom: 0; left: 0; width: 100%;
  height: 0;
  overflow: hidden;
  background: rgba(255, 212, 0, 0.85);
  border-radius: 0 0 16px 16px;
  display: flex; align-items: center; justify-content: center;
  transition: height 0.3s ease;
  z-index: 10;
  pointer-events: none;
}
.fav-card:hover .fav-card__label { height: 48px; }
@media (min-width: 768px) { .fav-card:hover .fav-card__label { height: 56px; } }

.fav-card__label span {
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 10px;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .fav-card__label span { font-size: 13.5px; }
}

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid #8a8a8a;
  color: #fff;
  font-size: 22px;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s;
}
.carousel__arrow:hover { background: var(--hero-yellow); color: #000; }
.carousel__arrow--left { left: 12px; }
.carousel__arrow--right { right: 12px; }
@media (min-width: 768px) { .carousel__arrow { display: flex; } }

/* ============ MENU ACORDEON ============ */
.menu-list { max-width: 720px; }

.menu-category { margin-bottom: 8px; }

.menu-category__header {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  padding: 12px 4px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}

.menu-category__name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-yellow);
  margin: 0;
}
.menu-category__caption {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.menu-category__chevron {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--hero-yellow);
  transition: transform 0.4s ease;
}
.menu-category.is-open .menu-category__chevron { transform: rotate(180deg); }

.menu-category__body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease, opacity 0.4s ease;
}
.menu-category.is-open .menu-category__body { grid-template-rows: 1fr; opacity: 1; }

.menu-category__body-inner { overflow: hidden; }

.menu-items {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 4px;
}

.menu-item {
  padding: 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}
.menu-item:hover {
  border-color: var(--hero-yellow);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(1.01);
}

.menu-item__row {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 6px;
}
.menu-item__name {
  font-weight: 700; font-size: 17px; color: #fff;
}
.menu-item__price {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 17px;
  color: var(--hero-yellow);
}
.menu-item__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 768px) {
  .menu-category__name { font-size: 30px; }
  .menu-item__row { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* ============ GALLERY SLIDER ============ */
.slider { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 8px; }

.slider__track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.gal-card {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: auto;
  height: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #2a2a2a;
}
.gal-card img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .gal-card { height: 450px; }
}

.slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid #8a8a8a;
  color: #fff;
  font-size: 22px;
  display: none;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.slider__arrow:hover { background: var(--hero-green); color: #000; }
.slider__arrow--left { left: -4px; }
.slider__arrow--right { right: -4px; }
@media (min-width: 768px) { .slider__arrow { display: flex; } }

/* ============ UBICACION ============ */
.location {
  display: grid;
  gap: 24px;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid #8a8a8a;
  box-shadow: 0 0 40px rgba(216,216,216,0.1);
}
.location__map { width: 100%; height: 340px; background: #000; }
.location__info {
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  background: #111;
}
.location__info p { margin: 0; color: #ddd; line-height: 1.6; font-size: 14px; }

@media (min-width: 768px) {
  .location { grid-template-columns: 1.6fr 1fr; }
  .location__map { height: 420px; }
}

/* ============ PREFOOTER ============ */
.section--prefooter { padding-top: 20px; }

.prefooter { text-align: center; }
.prefooter__title {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hero-red);
  margin: 0 0 32px;
  line-height: 1.1;
}
.prefooter__actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
@media (min-width: 640px) {
  .prefooter__actions { flex-direction: row; justify-content: center; }
}
@media (min-width: 768px) {
  .prefooter__title { font-size: 64px; }
}

/* ============ REDES ============ */
.social { text-align: center; }
.social__title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-blue);
  margin: 0 0 36px;
}
.social__icons { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.social__icon {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid #8a8a8a;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.3s;
}
.social__icon:hover {
  border-color: var(--hero-yellow);
  color: var(--hero-yellow);
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--accent-glow);
}
.social__icon svg { width: 44px; height: 44px; }

/* ============ FOOTER ============ */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #222;
}
.footer p {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #999;
}

/* ============ ONOMATOPEYAS (arte de cómic) ============ */
/* .comic-pop = animación de aparición (100% CSS, no depende de JS) */
/* .comic-bubble = capa de flotación continua (imagen en sí) */
.comic-pop {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: scale(0.3) rotate(-12deg);
  animation: comicPopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.15s;
  pointer-events: none;
}

@keyframes comicPopIn {
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.comic-bubble {
  display: block;
  width: clamp(90px, 15vw, 220px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(2px 6px 6px rgba(0,0,0,0.45));
  animation: comicFloat 4.5s ease-in-out infinite;
}

@keyframes comicFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
}

@media (max-width: 560px) {
  .comic-pop--hide-mobile { display: none; }
  .comic-bubble { width: 92px; }
}

/* ============ MODAL RECORRIDO VIRTUAL ============ */
.tour-modal {
  position: fixed; inset: 0;
  z-index: 999999;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.tour-modal.is-open { display: flex; }

.tour-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.tour-modal__box {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--hero-yellow);
  box-shadow: 0 0 60px rgba(255,212,0,0.45);
  width: 80%;
  height: 600px;
  max-height: 90vh;
  z-index: 1;
}
.tour-modal__box iframe { width: 100%; height: 100%; border: 0; }

.tour-modal__close {
  position: absolute; top: 12px; right: 12px;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hero-yellow);
  color: #000;
  border: none;
  font-weight: 700; font-size: 18px;
  cursor: pointer;
}
