/* Navegación — complemento a tailwind.css */
.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* —— Encabezado —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  justify-self: start;
}
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-header__logo img {
  display: block;
  height: 1.375rem;
  width: auto;
}

/* —— Footer —— */
.site-footer {
  margin-top: 0;
  padding: 0;
  background: var(--tl-ink);
  color: #e2e8f0;
}
.site-footer__top {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.35fr repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem 3rem;
  }
}
.site-footer__brand img {
  display: block;
  height: 1.5rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer__tagline {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #94a3b8;
}
.site-footer__city {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
}
.site-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer__links a {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-footer__links a:hover {
  color: #fff;
}
.site-footer__cta-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 0;
}
@media (min-width: 480px) {
  .site-footer__cta-bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
.site-footer__cta-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.site-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer__cta-actions .btn-primary {
  background: var(--tl-green);
  border-color: var(--tl-green);
}
.site-footer__cta-actions .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.site-footer__cta-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 0 1.75rem;
  font-size: 0.75rem;
  color: #64748b;
}
@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.site-footer__bottom a {
  color: #94a3b8;
  text-decoration: none;
}
.site-footer__bottom a:hover {
  color: #e2e8f0;
}
.site-footer__bottom .brand-name {
  color: #cbd5e1;
  font-weight: 700;
}
.menu-builder__footer.site-footer {
  margin-top: 2rem;
}
@media (max-width: 1023px) {
  .menu-builder-page .menu-builder__footer.site-footer {
    padding-bottom: 5rem;
  }
}

/* Selector de ciudad */
.city-picker {
  position: relative;
}
.city-picker > summary {
  list-style: none;
  cursor: pointer;
}
.city-picker > summary::-webkit-details-marker {
  display: none;
}
.city-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.45rem 0.22rem 0.38rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.city-picker__btn:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.city-picker[open] .city-picker__btn {
  border-color: #94a3b8;
  color: #475569;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}
.city-picker__btn .city-picker__icon {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  color: #94a3b8;
}
.city-picker__btn:hover .city-picker__icon,
.city-picker[open] .city-picker__btn .city-picker__icon {
  color: #64748b;
}
.city-picker__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5rem);
  z-index: 70;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 0.875rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
}
.city-picker__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
}
.city-picker__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}
.city-picker__text {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}
.city-picker__text--muted {
  color: #64748b;
  font-size: 0.75rem;
}
.city-picker__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #047857;
  text-decoration: none;
}
.city-picker__cta:hover {
  color: #065f46;
  text-decoration: underline;
}
.city-picker--menu {
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.city-picker__btn--menu {
  width: fit-content;
}
.city-picker__panel--menu {
  position: static;
  width: 100%;
  margin-top: 0.65rem;
  box-shadow: none;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.site-nav {
  display: none;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.25rem;
}
.site-nav__link,
.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.site-nav__link:hover,
.site-nav__trigger:hover,
.nav-dropdown:hover .site-nav__trigger {
  color: #0f172a;
  background: #f8fafc;
}
.site-nav__trigger {
  cursor: default;
  user-select: none;
}
.site-nav__chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .site-nav__chevron,
.nav-dropdown:focus-within .site-nav__chevron {
  transform: rotate(180deg);
}
.site-nav__dropdown {
  position: relative;
  padding-bottom: 0.45rem;
  margin-bottom: -0.45rem;
}
.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-left: 1.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid #e2e8f0;
}
.site-header__cta {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.site-header__login {
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}
.site-header__login:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.site-header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease;
}
.site-header__toggle:hover {
  background: #f8fafc;
}
.site-mobile-menu {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  padding: 1rem 1.5rem 1.5rem;
}
.site-mobile-menu__link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}
.site-mobile-menu__link:hover {
  color: #0f172a;
}
.site-mobile-menu__link--sub {
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.9375rem;
  color: #64748b;
}
.site-mobile-menu__label {
  margin: 0.75rem 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.site-mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}
.site-mobile-menu__btn {
  display: block;
  width: 100%;
  text-align: center;
}
@media (min-width: 1024px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }
  .site-header__logo {
    justify-self: start;
  }
  .site-nav {
    display: flex;
    justify-self: center;
    margin: 0;
    padding: 0;
  }
  .site-header__actions {
    display: flex;
    justify-self: end;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    gap: 1rem;
  }
  .site-header__toggle {
    display: none;
  }
}
@media (min-width: 1100px) {
  .site-nav {
    gap: 0.15rem;
  }
  .site-nav__link,
  .site-nav__trigger {
    padding: 0.5rem 0.85rem;
  }
  .site-header__inner {
    gap: 2.5rem;
  }
}
/* Hero cover — flotantes sutiles */
@keyframes hero-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
@keyframes hero-drift-chip {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-7px) translateX(3px);
  }
}
@keyframes hero-glow {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.06);
  }
}
.hero-visual {
  position: relative;
  padding: 1.25rem 0.5rem;
  isolation: isolate;
}
.hero-cover-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(15, 23, 42, 0.04);
  animation: hero-drift 7s ease-in-out infinite;
}
.hero-cover-img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(42px);
  animation: hero-glow 9s ease-in-out infinite;
}
.hero-orb--a {
  top: 6%;
  left: -4%;
  width: 42%;
  height: 38%;
  background: rgba(93, 143, 46, 0.2);
  animation-delay: 0s;
}
.hero-orb--b {
  right: -6%;
  bottom: 8%;
  width: 48%;
  height: 40%;
  background: rgba(78, 123, 38, 0.12);
  animation-delay: -3s;
}
.hero-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  font-size: 0.7rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
  pointer-events: none;
  animation: hero-drift-chip 5.5s ease-in-out infinite;
}
.hero-chip--menu {
  left: -2%;
  bottom: 14%;
  color: #4e7b26;
  background: rgba(238, 244, 232, 0.95);
  border-color: rgba(93, 143, 46, 0.35);
  animation-duration: 7s;
  animation-delay: -2.5s;
}
.hero-chip--rating {
  top: 2%;
  right: 0;
  animation-duration: 6.2s;
  animation-delay: -1s;
}
.hero-chip--impact {
  top: 20%;
  left: -5%;
  animation-duration: 5.8s;
  animation-delay: -0.5s;
}
.hero-chip-icon {
  font-size: 0.85rem;
  line-height: 1;
}
.hero-chip-muted {
  font-weight: 500;
  color: #64748b;
}
.hero-chip-stat {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.hero-chip-stat--up {
  color: #4e7b26;
}
@media (max-width: 640px) {
  .hero-chip--impact {
    display: none;
  }
  .hero-visual {
    padding: 0.75rem 0.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cover-frame,
  .hero-orb,
  .hero-chip,
  .hero-chip-dot {
    animation: none;
  }
}
@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }
  .lg\:hidden {
    display: none;
  }
}
.nav-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% - 0.45rem);
  z-index: 60;
  min-width: 13rem;
  padding: 0.35rem 0;
  margin: 0;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown-panel a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}
.nav-dropdown-panel a:hover {
  background: #f8fafc;
  color: #0f172a;
}
.site-mobile-menu[hidden],
#mobile-menu[hidden] {
  display: none !important;
}
