.menu-tipo { min-width: 0; margin-top: 6px; }
.menu-tipo[hidden], #galeria-contenedor[hidden] { display: none !important; }

.mt-seccion { margin-top: 24px; }
.mt-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mt-titulo h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--ce-texto); }
.mt-titulo a, .mt-titulo button { font-size: 13.5px; font-weight: 700; color: var(--ce-naranja); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 6px 2px; }
.mt-nada { text-align: center; color: var(--ce-apagado); margin: 18px 0 4px; }

.mt-buscar {
  display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 0 16px; min-height: 52px;
  border-radius: 999px; background: var(--ce-superficie); border: 1px solid var(--ce-linea);
  box-shadow: var(--ce-sombra); color: var(--ce-apagado); cursor: text;
}
.mt-buscar input {
  flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 14px 0 !important; margin: 0 !important; font: inherit; font-size: 15px; color: var(--ce-texto); outline: none;
}
.mt-buscar:focus-within { border-color: var(--ce-naranja); box-shadow: 0 0 0 3px var(--ce-naranja-suave); }

.mt-favorito {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: #374151; cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .14); transition: transform .16s ease, color .16s ease;
}
.mt-favorito:active { transform: scale(.9); }
.mt-favorito.activo { color: #E11D48; }
.mt-favorito.activo svg { fill: currentColor; }

.mt-cargando { display: flex; justify-content: center; gap: 8px; padding: 46px 0; }
.mt-cargando span { width: 10px; height: 10px; border-radius: 50%; background: var(--ce-naranja); animation: mt-salto 1s ease-in-out infinite; }
.mt-cargando span:nth-child(2) { animation-delay: .15s; }
.mt-cargando span:nth-child(3) { animation-delay: .3s; }
@keyframes mt-salto { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-6px); } }

.mt-aviso {
  position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 3000;
  transform: translateX(-50%); display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 999px; background: #12151B; color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: opacity .3s ease, transform .3s ease;
}
.mt-aviso a { color: #FF8A3D; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mt-aviso.fuera { opacity: 0; transform: translate(-50%, 8px); }

.mtc-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 180px; padding: 22px 0 22px 22px; border-radius: 24px; background: var(--ce-naranja-suave);
}
.mtc-hero::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -90px; border-radius: 50%;
  background: rgba(255, 107, 26, .16);
}
.mtc-hero-texto { position: relative; z-index: 1; max-width: 320px; }
.mtc-etiqueta {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--ce-naranja); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mtc-hero h2 { margin: 10px 0 6px; font-size: 27px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: var(--ce-texto); }
.mtc-hero p { margin: 0; font-size: 14px; color: var(--ce-apagado); }
.mtc-hero-foto { position: relative; z-index: 1; flex: none; width: 170px; height: 150px; margin-right: -18px; }
.mtc-hero-foto img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 28px 0 0 28px;
  box-shadow: -10px 14px 30px rgba(234, 88, 12, .25);
}

.mtc-chips {
  display: flex; gap: 12px; overflow-x: auto; padding: 18px 2px 6px; margin: 0 -2px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.mtc-chips::-webkit-scrollbar { display: none; }
.mtc-chip {
  flex: none; width: 80px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 0; border: 0; background: none; color: var(--ce-texto); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.mtc-chip-foto, .mtc-chip-icono {
  width: 72px; height: 72px; border-radius: 22px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--ce-superficie); border: 2px solid var(--ce-linea); box-shadow: var(--ce-sombra);
  transition: border-color .16s ease, transform .16s ease;
}
.mtc-chip-foto img { width: 100%; height: 100%; object-fit: cover; }
.mtc-chip-icono { color: var(--ce-naranja); }
.mtc-chip:active .mtc-chip-foto, .mtc-chip:active .mtc-chip-icono { transform: scale(.95); }
.mtc-chip.activo { color: var(--ce-naranja); font-weight: 800; }
.mtc-chip.activo .mtc-chip-foto { border-color: var(--ce-naranja); }
.mtc-chip.activo .mtc-chip-icono { background: var(--ce-naranja); border-color: var(--ce-naranja); color: #fff; }

.mtc-fila {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 216px); gap: 14px;
  overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.mtc-fila::-webkit-scrollbar { display: none; }
.mtc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mtc-producto {
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
  border-radius: 20px; overflow: hidden; background: var(--ce-superficie); border: 1px solid var(--ce-linea); box-shadow: var(--ce-sombra);
}
.mtc-producto[hidden] { display: none; }
.mtc-foto { display: block; aspect-ratio: 4 / 3; background: var(--ce-naranja-suave); }
.mtc-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtc-sin-foto { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ce-naranja); }
.mtc-datos { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px 12px; flex: 1; min-width: 0; }
.mtc-nombre {
  font-weight: 800; font-size: 14.5px; line-height: 1.3; color: var(--ce-texto); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mtc-cat { font-size: 12px; color: var(--ce-apagado); }
.mtc-pie { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mtc-precio { font-size: 16.5px; font-weight: 800; color: var(--ce-texto); }
.mtc-consultar { font-size: 12.5px; font-weight: 700; color: var(--ce-apagado); }
.mtc-mas, .mtc-ver {
  flex: none; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--ce-naranja); color: #fff; box-shadow: 0 6px 14px rgba(255, 107, 26, .35);
  transition: transform .16s ease, background-color .16s ease;
}
.mtc-ver { background: var(--ce-superficie-2); color: var(--ce-texto); box-shadow: none; border: 1px solid var(--ce-linea); }
.mtc-mas:active, .mtc-ver:active { transform: scale(.92); }
.mtc-mas:disabled { opacity: .6; cursor: progress; }
.mtc-mas.listo { background: #16A34A; }

.mtc-oferta {
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: 140px; margin-top: 24px;
  border-radius: 22px; background: #12151B; color: #fff;
}
.mtc-oferta-texto { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 4px; max-width: 62%; }
.mtc-oferta-texto strong { font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.mtc-oferta-texto span { font-size: 14px; color: #C3C8D0; }
.mtc-oferta-boton {
  align-self: flex-start; margin-top: 10px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--ce-naranja); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none;
}
.mtc-oferta-boton b { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #fff; color: #12151B; font-size: 12px; text-align: center; }
.mtc-oferta img {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%; height: 100%; object-fit: cover; opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%);
}

.mtc-vacio { margin-top: 22px; padding: 20px; border-radius: 20px; background: var(--ce-superficie-2); text-align: center; }
.mtc-vacio h3 { margin: 0 0 4px; font-size: 18px; }
.mtc-vacio p { margin: 0 0 14px; color: var(--ce-apagado); font-size: 14px; }
.mtc-tiendas { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.mtc-tienda {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--ce-superficie);
  border: 1px solid var(--ce-linea); text-decoration: none; color: var(--ce-texto); font-weight: 700; font-size: 13.5px;
}
.mtc-tienda img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mtc-tienda span { padding: 9px 10px; }

.mt-viajes {
  --az: #1D4ED8; --az-fuerte: #172E73; --az-suave: #EAF1FF; --az-borde: #CFDDFB;
}
html.dark-mode .mt-viajes { --az: #7EA6FF; --az-fuerte: #D6E2FF; --az-suave: #121C32; --az-borde: #24365C; }
.mtv-cab { padding: 4px 2px 0; }
.mtv-etiqueta {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--az-suave); color: var(--az);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mtv-cab h2 { margin: 10px 0 4px; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: var(--ce-texto); }
.mtv-cab p { margin: 0; color: var(--ce-apagado); font-size: 14.5px; }
.mtv-buscar:focus-within { border-color: var(--az); box-shadow: 0 0 0 3px var(--az-suave); }
.mt-viajes .mt-titulo a, .mt-viajes .mt-titulo button { color: var(--az); }

.mtv-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mtv-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px; cursor: pointer;
  background: var(--ce-superficie); border: 1px solid var(--az-borde); color: var(--ce-texto);
  font: inherit; font-size: 14px; font-weight: 700; box-shadow: var(--ce-sombra); transition: transform .16s ease, background-color .16s ease;
}
.mtv-chip svg { color: var(--az); }
.mtv-chip:hover { background: var(--az-suave); }
.mtv-chip:active { transform: scale(.96); }

.mtv-recientes { list-style: none; margin: 0; padding: 0; border-radius: 18px; background: var(--ce-superficie); border: 1px solid var(--ce-linea); overflow: hidden; }
.mtv-recientes li + li { border-top: 1px solid var(--ce-linea); }
.mtv-recientes button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 0; background: none;
  color: var(--ce-texto); font: inherit; text-align: left; cursor: pointer;
}
.mtv-recientes button:hover { background: var(--az-suave); }
.mtv-mini {
  flex: none; width: 64px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--az-suave); color: var(--az);
  display: inline-flex; align-items: center; justify-content: center;
}
.mtv-mini img { width: 100%; height: 100%; object-fit: cover; }
.mtv-reciente-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mtv-reciente-texto strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtv-reciente-texto small { display: inline-flex; align-items: center; gap: 4px; color: var(--ce-apagado); font-size: 12.5px; }
.mtv-reciente-texto small svg { color: var(--az); }
.mtv-reloj { color: var(--ce-apagado); flex: none; }

.mtv-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: 168px; margin-top: 24px;
  border-radius: 24px; background: linear-gradient(135deg, var(--az-suave), #DCE8FF);
}
html.dark-mode .mtv-banner { background: linear-gradient(135deg, #0F1A31, #16264A); }
.mtv-banner-texto { position: relative; z-index: 1; padding: 22px; max-width: 58%; }
.mtv-banner-texto h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--az-fuerte); }
.mtv-banner-texto p { margin: 0 0 14px; font-size: 13.5px; color: var(--ce-apagado); }
.mtv-banner-boton {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--az-fuerte); color: #fff; font: inherit; font-weight: 800; font-size: 14px;
}
html.dark-mode .mtv-banner-boton { background: var(--az); color: #0B1222; }
.mtv-banner img {
  position: absolute; right: 0; top: 0; bottom: 0; width: 48%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}

.mtv-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mtv-tarjeta {
  position: relative; display: flex; gap: 14px; padding: 12px; min-width: 0; border-radius: 20px;
  background: var(--ce-superficie); border: 1px solid var(--ce-linea); box-shadow: var(--ce-sombra);
}
.mtv-tarjeta[hidden] { display: none; }
.mtv-foto {
  flex: none; width: 128px; height: 108px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--az-suave); color: var(--az); display: flex; align-items: center; justify-content: center;
}
.mtv-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtv-datos { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 2px 34px 2px 0; }
.mtv-nombre {
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit;
  font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--ce-texto); text-decoration: none;
}
.mtv-lugar, .mtv-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ce-apagado); }
.mtv-lugar svg, .mtv-meta svg { color: var(--az); flex: none; }
.mtv-precio { font-size: 18px; font-weight: 800; color: var(--az); }
.mtv-precio small { font-size: 11.5px; font-weight: 700; opacity: .7; }
.mtv-consultar { font-size: 13px; font-weight: 700; color: var(--ce-apagado); }
.mtv-solicitar { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 800; font-size: 13.5px; color: var(--az); }
.mt-viajes .mt-favorito { top: 12px; right: 12px; background: var(--az-suave); color: var(--az); box-shadow: none; }
.mt-viajes .mt-favorito.activo { color: var(--az); }

@media (max-width: 600px) {
  .mtc-hero { min-height: 160px; padding: 18px 0 18px 18px; }
  .mtc-hero h2 { font-size: 23px; }
  .mtc-hero-foto { width: 128px; height: 124px; }
  .mtc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mtc-oferta-texto { max-width: 70%; }
  .mtv-cab h2 { font-size: 26px; }
  .mtv-lista { grid-template-columns: minmax(0, 1fr); }
  .mtv-foto { width: 108px; height: 96px; }
  .mtv-banner-texto { max-width: 66%; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mt-favorito, .mtc-chip-foto, .mtc-chip-icono, .mtc-mas, .mtc-ver, .mtv-chip, .mt-aviso { transition: none; }
  .mt-cargando span { animation: none; opacity: .6; }
}
