/* TurnoYa MP — normalización de medias: todas las tarjetas con el mismo
   tamaño sin importar la imagen del negocio (logo cuadrado, foto apaisada,
   o placeholder). La img se estira con object-fit:cover sobre el contenedor. */
.ty-card__media, .mp-rmedia { position: relative; overflow: hidden; background: var(--navy-tint); }
.ty-card__media { aspect-ratio: 4 / 3; }
.ty-card__media > img, .mp-rmedia > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ty-card__media > .ty-badge { position: absolute; left: auto; inset-inline-start: 12px; top: 12px; z-index: 1; width: auto; }

/* ResultItem: columna de imagen de altura completa, como en el kit. */
.ty-result .mp-rmedia { height: 100%; min-height: 150px; }
.ty-result .mp-rmedia > img { border-radius: inherit; }

/* Ofertas: media apaisada (el resto de la card sigue siendo ty-card). */
.mp-dealcard .ty-card__media { aspect-ratio: 16 / 9; }

/* El grid estira todas las cards de la fila al mismo alto. */
.ty-grid { align-items: stretch; }
.ty-card { height: 100%; }

@media (max-width: 860px) {
  .ty-result .mp-rmedia { height: auto; aspect-ratio: 16 / 8; min-height: 0; }
}

/* ---- Logo real TurnoYa ---- */
.ty-logo { height: 26px; width: auto; display: block; }
.ty-logo--foot { height: 24px; filter: none; }

/* ---- Buscadores: el input puede encogerse (placeholders cortados) ---- */
.ty-search__f > div { flex: 1; min-width: 0; }
.mp-in { min-width: 0; }

/* ---- Responsive estructural (acompaña al toggle .ty-m de mp.js) ---- */
@media (max-width: 860px) {
  .ty-nav { height: auto; }
  .ty-nav .ty-wrap { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .ty-nav__links { display: none; }
  .ty-nav .ty-wrap > div[style*="max-width"] { order: 3; flex-basis: 100%; max-width: none !important; }
  .ty-search__f em, .ty-search__f b { font-size: 12px; }
  .ty-search .ty-btn--lg { height: 52px; }

  .ty-grid--4, .ty-grid--3, .ty-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ty-section { padding: 36px 0; }
  .ty-sechead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ty-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .ty-tabs { overflow-x: auto; }
  .ty-tabs a { flex: none; }
  .ty-stickybar { flex-wrap: nowrap; }
  .ty-band { padding: 28px 20px; border-radius: var(--radius-lg); }
  .ty-stepper { font-size: 12px; overflow-x: auto; }
  .ty-stepper > span { flex: none; }
  .mp-dates { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .mp-dates .ty-date { flex: none; }
}
@media (max-width: 480px) {
  .ty-grid--4, .ty-grid--3, .ty-grid--2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Círculos decorativos del hero: chicos y al fondo, sin tapar el titular. */
  .mp-heroart { width: 340px; height: 340px; right: -150px !important; top: -40px !important; opacity: .5; }
}
@media (max-width: 560px) {
  /* Nav móvil: logo + idioma + Registra; el botón Ingresar se esconde (entra por el footer). */
  .ty-nav__right .ty-btn--outline { display: none; }
  .ty-nav__right .ty-btn { height: 36px; padding: 0 12px; font-size: 13px; }
  .ty-logo { height: 22px; }
}

/* ---- Header fijo al hacer scroll ---- */
.ty-nav { position: sticky; top: 0; z-index: 60; }

/* ---- Selector de idioma: flecha propia (la nativa se veía mal) ---- */
.mp-langsel {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-start: 15px;
  padding-inline-end: 32px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7285' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.ty-on-navy .mp-langsel { background-color: rgba(255,255,255,.08); }
[dir='rtl'] .mp-langsel { background-position: left 12px center; }

/* ---- Favoritos (corazón de las cards) ---- */
.mp-fav { cursor: pointer; border: 0; }
.mp-fav.is-fav { color: var(--orange); }
.mp-fav.is-fav svg { fill: currentColor; }
/* El badge de la media vuelve arriba a la izquierda (regla base en turnoya.css;
   un override anterior lo mandaba abajo y ganaba por orden de carga). */
.ty-card__media .ty-badge { top: 12px; bottom: auto; }

/* ---- Buscador estándar en pantallas angostas: campos en grilla 2+2 y botón
   a ancho completo (evita solapamientos de labels a ≤420px) ---- */
@media (max-width: 560px) {
  .ty-search { flex-wrap: wrap; padding: 8px; gap: 2px; }
  .ty-search .ty-search__f { flex: 1 1 44% !important; min-width: 0; padding: 8px 10px; }
  .ty-search .ty-search__f + .ty-search__f { border-left: 0; }
  .ty-search .ty-search__f b { font-size: 11px; }
  .ty-search .ty-search__f input, .ty-search .mp-whenfield em { font-size: 13px; }
  .ty-search > .ty-btn { flex: 1 1 100%; height: 48px; margin-top: 6px; }
}

/* ---- Banda fina de estadísticas vivas bajo el hero ---- */
.mp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mp-stats .ty-stat b { font-size: 32px; line-height: 36px; }
@media (max-width: 860px) { .mp-stats .ty-stat b { font-size: 24px; line-height: 28px; } }

/* ---- Carruseles horizontales (recién sumados / vistos / guardados) ---- */
.mp-hscroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.mp-hscroll > * { flex: none; width: 250px; scroll-snap-align: start; }

/* ---- Categorías: cards con foto de fondo (referencia del usuario) ---- */
.ty-catcard { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-card); isolation: isolate; }
.ty-catcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease, ease); }
.ty-catcard:hover img { transform: scale(1.04); }
.ty-catcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,30,0) 38%, rgba(0,20,30,.82) 88%); z-index: 1; }
.ty-catcard__body { position: absolute; z-index: 2; inset-inline-start: 16px; bottom: 14px; color: var(--white); }
.ty-catcard__body b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.ty-catcard__body small { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }
.ty-catcard__arrow { position: absolute; z-index: 2; inset-inline-end: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 999px; background: var(--white); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; }
[dir='rtl'] .ty-catcard__arrow svg { transform: scaleX(-1); }

/* ---- Hero con personajes (desktop) y arte móvil ---- */
.mp-hero__man, .mp-hero__woman { position: absolute; bottom: 0; z-index: 1; pointer-events: none; }
.mp-hero__man { inset-inline-start: -10px; height: 88%; }
.mp-hero__woman { inset-inline-end: -14px; height: 94%; }
.mp-hero__content { position: relative; z-index: 2; }
.mp-hero__inner { max-width: 700px; margin: 0 auto; }
.mp-hero__mobileart { display: none; }
.mp-hero__stats { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); flex-wrap: wrap; }
.mp-hstat { display: flex; align-items: center; gap: 10px; }
.mp-hstat__ico { color: var(--yellow); display: flex; }
.mp-hstat__num { font-size: 30px; font-weight: 800; color: var(--white); letter-spacing: -.5px; line-height: 1; }
.mp-hstat__lbl { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.82); }

@media (max-width: 1180px) {
  .mp-hero__man { height: 70%; opacity: .95; }
  .mp-hero__woman { height: 76%; }
}
@media (max-width: 1020px) {
  .mp-hero__man, .mp-hero__woman { display: none; }
}
@media (max-width: 860px) {
  .mp-hero { padding-bottom: 36px !important; }
  .mp-hero__inner { max-width: none; }
  .mp-hero__mobileart { display: block; width: 100%; max-width: 400px; margin: 26px auto 0; border-radius: var(--radius-lg); }
  .mp-hstat__num { font-size: 24px; }
}

/* ---- Hero v2: hombre recortado (240px), mujer limpia, columna 640 ---- */
.mp-hero__man { width: clamp(150px, 17vw, 240px); height: auto; max-height: 96%; object-fit: contain; object-position: left bottom; }
.mp-hero__woman { width: clamp(210px, 26vw, 400px); height: auto; max-height: 98%; object-fit: contain; object-position: right bottom; }
.mp-hero__inner { max-width: 640px; }
.mp-hero .ty-search { min-width: 0; }
.mp-hero .ty-search__f { min-width: 0; }
.mp-hero__mobileart { max-height: 330px; object-fit: cover; object-position: top; }
@media (max-width: 1180px) {
  .mp-hero__man { opacity: .9; }
}

@media (max-width: 860px) {
  /* Círculos del hero aún más al fondo en mobile para no competir con el titular. */
  .mp-heroart { right: -180px !important; top: -80px !important; opacity: .32; }
}

/* Fix cascada: la columna de 640 solo aplica en desktop; mobile al 100%. */
@media (min-width: 861px) {
  .mp-hero__inner { max-width: 640px; }
}
@media (max-width: 860px) {
  .mp-hero__inner { max-width: none; }
}
.ty-m, .ty-m body, html, body { overflow-x: hidden; }

/* Fix min-content mobile: fila de populares envuelve y los chips pueden encogerse. */
.mp-poprow { flex-wrap: wrap; }
.mp-poprow > .ty-chips { min-width: 0; flex: 1; }
.mp-hstat { min-width: 0; }
.mp-hero__stats > * { min-width: 0; }

/* ---- Hero v3: personaje único (mujer + tarjetas de categorías) ---- */
.mp-hero__personaje { position: absolute; bottom: 0; inset-inline-end: clamp(8px, 3vw, 48px); height: 106%; width: auto; z-index: 1; pointer-events: none; }
@media (min-width: 861px) {
  .mp-hero__inner { max-width: 600px; margin-inline-start: clamp(4px, 2vw, 40px); }
}
@media (max-width: 1120px) {
  .mp-hero__personaje { height: 92%; opacity: .96; }
}
@media (max-width: 1020px) {
  .mp-hero__personaje { display: none; }
}
@media (max-width: 860px) {
  .mp-hero__mobileart { max-height: 380px; }
}

@media (min-width: 861px) {
  .mp-hero__inner { max-width: 560px; }
  .mp-hero__personaje { height: 100%; }
}

@media (min-width: 861px) {
  .mp-hero .ty-search__f:first-child { flex: 1.7; }
  .mp-hero .ty-search .ty-btn { padding: 0 20px; }
}

/* ---- "Reservar es así de fácil": cards de foto + pasos con flechas ---- */
.mp-titlecenter { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -1px; }
.mp-howcards { gap: 20px; margin-bottom: 40px; }
.mp-howcards img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); display: block; }
.mp-steps { display: flex; align-items: flex-start; justify-content: center; gap: clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.mp-step { display: flex; gap: 16px; align-items: flex-start; max-width: 320px; }
.mp-step__n { width: 52px; height: 52px; flex: none; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 22px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.mp-steps__arrow { width: 44px; height: 44px; flex: none; border-radius: 999px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-top: 4px; }
[dir='rtl'] .mp-steps__arrow svg { transform: scaleX(-1); }

/* ---- Grow your business ---- */
.mp-grow { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.mp-grow__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mp-grow__pills { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }
.mp-pill { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--border); color: var(--navy); font-size: 14px; box-shadow: var(--shadow-sm); }
.mp-pill svg { color: var(--navy); }
.mp-grow__img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); display: block; }

@media (max-width: 900px) {
  .mp-grow { grid-template-columns: 1fr; }
  .mp-grow__img { max-width: 520px; margin: 0 auto; }
  .mp-steps__arrow { display: none; }
  .mp-step { max-width: none; width: 100%; }
}

@media (min-width: 901px) {
  .mp-steps { flex-wrap: nowrap; gap: clamp(12px, 2.6vw, 40px); }
  .mp-step { max-width: 300px; }
  .mp-steps__arrow { width: 40px; height: 40px; }
}

/* ---- Hero a altura completa de pantalla (los 3 idiomas) ---- */
.mp-hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: stretch;
}
.mp-hero > .ty-wrap { display: flex; flex-direction: column; width: 100%; }
.mp-hero__inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.mp-hero__stats { margin-top: auto; }
@media (min-width: 861px) {
  .mp-hero__personaje { height: min(96%, 780px); max-width: clamp(380px, 38vw, 580px); object-fit: contain; object-position: right bottom; }
}
@media (max-width: 860px) {
  .mp-hero { min-height: calc(100vh - 60px); min-height: calc(100svh - 60px); }
  .mp-hero__inner { justify-content: flex-start; }
}

.mp-hero__inner > .ty-badge { align-self: flex-start; }

/* Círculos del hero: posición lógica — en RTL van a la izquierda, detrás del personaje. */
@media (max-width: 860px) {
  .mp-heroart { inset-inline-end: -180px !important; right: auto !important; }
}

/* Stats del hero: una sola línea en desktop (los labels en inglés son más largos). */
@media (min-width: 861px) {
  .mp-hero__stats { flex-wrap: nowrap; gap: clamp(14px, 2.4vw, 40px); }
  .mp-hstat, .mp-hstat__lbl { white-space: nowrap; }
}

/* Selector de idioma: solo texto (sin chevron ni espacio para ícono). */
.mp-langsel { background-image: none; padding-inline: 12px; }

/* Carrusel "Recién sumados": todas las cards mismo ancho Y alto. */
.mp-hscroll { align-items: stretch; }
.mp-hscroll > .ty-card { width: 250px; flex: none; height: auto; display: flex; flex-direction: column; }
.mp-hscroll > .ty-card .ty-card__body { flex: 1; }

/* ---- "Booking is this easy": card = imagen exacta, sin espacios ---- */
.mp-howcards img { aspect-ratio: 490 / 475; object-fit: cover; height: auto; }

/* ---- Amarillo de acento → gradiente insignia (en toda la web) ---- */
.ty-badge--deal,
.ty-btn--yellow,
.mp-steps__arrow {
  background: linear-gradient(135deg, #FFEB00 0%, #F5C400 22%, #EC8A03 55%, #E25A06 100%);
  color: var(--navy);
}
.ty-hl {
  background-image: linear-gradient(transparent 60%, #FFEB00 60%, #F5C400 72%, #EC8A03 85%, #E25A06 92%, transparent 92%);
}
.mp-gradtext {
  background: linear-gradient(135deg, #FFEB00 0%, #F5C400 35%, #EC8A03 70%, #E25A06 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Header: alto flexible (sin pise) + blur al salir del navy ---- */
.ty-nav { height: auto; min-height: 72px; }
.ty-nav .ty-wrap { min-height: 72px; }
.ty-btn--onnavy { background: transparent; color: var(--white); border-color: rgba(255,255,255,.3); }
.ty-btn--onnavy:hover { border-color: var(--white); }
.ty-logo--l { display: none; }
.ty-on-navy .ty-logo--d { display: block; }
.ty-on-navy .ty-logo--l { display: none; }
.ty-nav:not(.ty-on-navy) .ty-logo--d { display: none; }
.ty-nav:not(.ty-on-navy) .ty-logo--l { display: block; }
.ty-nav.mp-scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.ty-nav.mp-scrolled.ty-on-navy { background: rgba(255,255,255,.82); }
.ty-nav.mp-scrolled .ty-nav__links { color: var(--navy); }
.ty-nav.mp-scrolled .ty-btn--onnavy { color: var(--navy); border-color: var(--border); }
.ty-nav.mp-scrolled .ty-chip, .ty-nav.mp-scrolled.ty-on-navy .ty-chip { background: var(--navy-tint, #EEF3F6); border-color: var(--border); color: var(--navy); }
.ty-nav.mp-scrolled .ty-logo--d { display: none; }
.ty-nav.mp-scrolled .ty-logo--l { display: block; }

/* ---- Popover "Elige cuándo" (anclado exactamente debajo del campo) ---- */
.ty-search__f, .mp-s7, .mp-df { position: relative; }
.mp-whenfield em { display: block; font-style: normal; font-size: 15px; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-whenfield { position: relative; }
.mp-whenpop {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 90; margin-top: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised); padding: 18px; width: min(340px, 92vw);
}

/* ---- Popover genérico de campos de búsqueda ("nuestro modal") ---- */
.mp-fpop {
  position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 90;
  min-width: 100%; max-width: min(380px, 94vw); max-height: 340px; overflow: auto;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised); padding: 8px;
}
.mp-fpop__opt {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  border: 0; background: transparent; padding: 10px 12px; border-radius: var(--radius-md);
  font: 600 14px/1.25 var(--font-sans); color: var(--navy); cursor: pointer; white-space: nowrap;
}
.mp-fpop__opt span { overflow: hidden; text-overflow: ellipsis; }
.mp-fpop__opt svg { color: var(--navy-soft); flex: none; }
.mp-fpop__opt:hover { background: var(--navy-tint); }
.mp-fpop__opt.is-on, .mp-fpop__opt.is-on svg { background: var(--navy); color: var(--white); }
.mp-fpop__empty { margin: 0; padding: 12px; font-size: 13.5px; color: var(--navy-soft); text-align: center; }

/* Popover "Qué buscas": encabezado de sección + acción, filas de recientes,
   botones rápidos de categoría y fila "Usar mi ubicación actual". */
.mp-fpop__h { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 8px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.mp-fpop__h button { border: 0; background: none; font: 700 13px/1 var(--font-sans); color: var(--orange-deep); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.mp-fpop__h button:hover { background: var(--orange-soft); }
.mp-fpop__recent { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; border: 0; background: var(--surface-soft); padding: 10px 12px; border-radius: var(--radius-md); cursor: pointer; margin-bottom: 6px; }
.mp-fpop__recent:hover { background: var(--navy-tint); }
.mp-fpop__recent .ric { width: 36px; height: 36px; border-radius: 10px; background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.mp-fpop__recent .rt { flex: 1; min-width: 0; }
.mp-fpop__recent .rt b { display: block; font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-fpop__recent .rt small { display: block; font-size: 12.5px; color: var(--navy-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-fpop__recent .rx { border: 0; background: none; color: var(--navy-soft); cursor: pointer; padding: 6px; border-radius: 8px; flex: none; }
.mp-fpop__recent .rx:hover { color: var(--orange-deep); background: var(--white); }
.mp-fpop__cats { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.mp-fpop__cat { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; font: 700 15px/1.2 var(--font-sans); color: var(--navy); cursor: pointer; }
.mp-fpop__cat svg { color: var(--navy-soft); }
.mp-fpop__cat:hover { border-color: var(--navy); background: var(--navy-tint); }
.mp-fpop__loc { font-size: 14.5px; padding: 12px; border-bottom: 1px solid var(--border); border-radius: 0; margin-bottom: 6px; }
.mp-fpop__loc:hover { background: var(--navy-tint); border-radius: var(--radius-md); }

/* Popover "Cuándo": títulos de sección + opciones en filas anchas apiladas. */
.mp-whenpop__t { margin: 4px 0 10px; font-size: 15.5px; font-weight: 800; color: var(--navy); letter-spacing: 0; }
.mp-whenopts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mp-whenopt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: start; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 16px; font: 700 15px/1.2 var(--font-sans); color: var(--navy); cursor: pointer; }
.mp-whenopt small { font-size: 13px; font-weight: 600; color: var(--navy-soft); }
.mp-whenopt:hover { border-color: var(--navy); }
.mp-whenopt.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.mp-whenopt.is-active small { color: rgba(255,255,255,.75); }
.mp-whenchip { height: 40px; }
.mp-whenchip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.mp-whenhours { height: 40px; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); padding: 0 12px; background: var(--white); max-width: 110px; }

/* ---- Categorías: fila horizontal con scroll (una sola línea) ---- */
.mp-catrow { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.mp-catrow > * { flex: none; width: 230px; scroll-snap-align: start; }

/* overflow-x: clip (NO hidden) — hidden rompe position: sticky del header. */
.ty-m, .ty-m body, html, body { overflow-x: clip; }

/* Círculos del hero: composición original; en RTL se espejan (amarillo del otro lado del naranja). */
[dir='rtl'] .mp-heroart { transform: scaleX(-1); }

/* Buscador del hero: más aire para que los 3 campos se lean completos. */
@media (min-width: 861px) {
  .mp-hero__inner { max-width: 660px; }
  .mp-hero .ty-search__f { padding: 8px 12px; }
  .mp-hero .ty-search__f:first-child { flex: 1.4; }
  .mp-hero .ty-search .ty-btn { padding: 0 16px; font-size: 15px; }
  .mp-hero .ty-search__f b { font-size: 11.5px; }
  .mp-hero .ty-search__f input, .mp-hero .mp-whenfield em { font-size: 14px; }
}

/* Selects Desde/Hasta del popover "Cuándo": flecha con distancia del borde. */
.mp-whenhours {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-start: 12px;
  padding-inline-end: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7285' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
[dir='rtl'] .mp-whenhours { background-position: left 10px center; }

/* "Booking is this easy": imágenes cuadradas nuevas (mismo tamaño → alto natural uniforme, sin crop). */
.mp-howcards img { aspect-ratio: auto; object-fit: contain; height: auto; }

/* "Booking is this easy": solo las imágenes, sin card blanco alrededor. */
.mp-howcards img { box-shadow: none; border-radius: 0; background: transparent; }

/* ---- Tarjeta "¿Buscás algo específico?" (búsqueda con IA) ---- */
.mp-ai { margin-top: 12px; background: #FFF6E0; border: 1px solid #F2E3BC; border-radius: var(--radius-lg); padding: 18px 20px; }
.mp-ai__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.mp-ai__ico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #FFE9A8; color: var(--orange-deep); display: flex; align-items: center; justify-content: center; }
.mp-ai__title { display: block; font-size: 16px; font-weight: 800; color: var(--navy); }
.mp-ai__sub { margin: 2px 0 0; font-size: 13.5px; color: var(--text); }
.mp-ai__box { display: flex; gap: 8px; background: var(--white); border: 1.5px solid var(--border); border-radius: 999px; padding: 5px 5px 5px 18px; align-items: center; }
.mp-ai__box:focus-within { border-color: var(--orange); }
.mp-ai__input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 14.5px; color: var(--navy); background: transparent; }
.mp-ai__btn { height: 40px; border-radius: 999px; padding: 0 18px; font-size: 14px; flex: none; }
.mp-ai__hint { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12.5px; color: var(--navy-soft); }
@media (max-width: 560px) {
  .mp-ai__btn span { display: none; }
}

/* ---- Header mobile profesional ---- */
@media (max-width: 860px) {
  .ty-nav__right { gap: 8px; }
  .ty-nav__right .ty-btn--outline { display: none; } /* "Ingresar" no entra en mobile (va por el footer) */
  .ty-nav__right .ty-btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .ty-nav__right .ty-btn span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 480px) {
  .ty-logo { height: 20px; }
  .ty-nav__right .ty-btn { width: 38px; padding: 0; justify-content: center; }
  .ty-nav__right .ty-btn span { display: none; } /* Registra = solo ícono */
  .mp-langsel { height: 34px; padding-inline: 10px; font-size: 12px; }
}

/* "Ingresar" fuera del nav en mobile (tanto claro como sobre navy). */
@media (max-width: 860px) {
  .ty-nav__signin { display: none !important; }
}

/* ---- Buscador: separadores lógicos (correctos en RTL) ---- */
.ty-search__f + .ty-search__f { border-left: 0; border-inline-start: 1px solid var(--border); }
.ty-msearch .ty-search__f + .ty-search__f { border-left: 0; border-top: 0; border-inline-start: 0; border-block-start: 1px solid var(--border); }
@media (max-width: 860px) {
  .ty-search__f + .ty-search__f { border-inline-start: 0; border-block-start: 1px solid var(--border); }
}

/* ---- Campo "Cuándo" del buscador compacto: que quepa el texto ---- */
.ty-search--compact .mp-whenfield { flex: .9; min-width: 96px; }
.ty-search--compact .mp-whenfield em { font-size: 13.5px; }
.ty-search--compact .ty-search__f { padding: 4px 10px; }

/* ---- Toggle de vista: grilla (3 cols) / lista ---- */
.mp-viewtoggle { display: inline-flex; gap: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 99px; padding: 3px; }
.mp-viewtoggle button { width: 36px; height: 32px; border: 0; border-radius: 99px; background: transparent; color: var(--navy-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mp-viewtoggle button.is-active { background: var(--navy); color: var(--white); }

/* ---- AI strip compacto en Resultados ---- */
.mp-airow { background: #FFF6E0; border: 1px solid #F2E3BC; border-radius: var(--radius-lg); padding: 12px 16px; margin-top: 16px; }
.mp-airow b { display: block; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.mp-airow small { display: block; font-size: 12.5px; color: var(--text); margin: 2px 0 10px; }
.mp-airow .mp-ai__box { padding: 4px 4px 4px 16px; }
.mp-airow .mp-ai__btn { height: 36px; }

/* ---- Resultados: layout con mapa (desktop) ---- */
.mp-reslayout { display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }
.mp-reslayout.mp-nomap { grid-template-columns: 1fr; }
.mp-rescol { min-width: 0; }
.mp-mapcol { position: sticky; top: 96px; height: calc(100vh - 140px); min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); display: none; }
#mpmap { width: 100%; height: 100%; }
.mp-maptoggle { width: auto !important; padding: 0 12px !important; gap: 6px; font-size: 12.5px; font-weight: 700; }
@media (max-width: 1019px) {
  .mp-mapcol { display: none !important; }
  .mp-reslayout { grid-template-columns: 1fr !important; }
  .mp-maptoggle { display: none; }
}

/* ---- Pines del mapa (burbuja de precio, estilo kit) ---- */
.mp-pin { background: transparent; border: 0; }
.mp-pin span { display: inline-flex; align-items: center; gap: 5px; background: var(--navy); color: var(--white); font: 800 12px/1 var(--font-sans); padding: 7px 10px; border-radius: 999px; box-shadow: var(--shadow-card); white-space: nowrap; transform: translate(-50%, -100%); position: absolute; left: 0; top: -6px; }
.mp-pin small { font-size: 10.5px; font-weight: 700; color: var(--yellow); }
.mp-pin::after { content: ""; position: absolute; left: -5px; top: -7px; border: 5px solid transparent; border-top-color: var(--navy); }

/* ---- Filtros: una sola fila scrollable, más finos ---- */
.mp-filtersrow { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; gap: 8px; }
.mp-filtersrow .ty-chip { height: 34px; padding: 0 14px; font-size: 13px; flex: none; }

/* ---- Select de ciudad: flecha con distancia ---- */
#citysel {
  -webkit-appearance: none; appearance: none;
  padding-inline-start: 14px; padding-inline-end: 32px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7285' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}
[dir='rtl'] #citysel { background-position: left 10px center; }

/* ---- AI en el header (desktop) ---- */
.mp-navai { flex: 1 1 180px; min-width: 170px; max-width: 300px; height: 40px; border: 1.5px solid var(--border); border-radius: 999px; padding: 0 16px; font: inherit; font-size: 13.5px; color: var(--navy); background: var(--white); outline: none; }
.mp-navai:focus { border-color: var(--orange); }
.mp-navai::placeholder { color: var(--navy-soft); }
@media (max-width: 1100px) { .mp-navai { display: none; } }
@media (min-width: 861px) { .mp-airow-m { display: none; } }

/* ---- Cards de resultados (lista, estilo referencia) ---- */
.mp-result { grid-template-columns: 250px 1fr; }
.mp-result .mp-rmedia { aspect-ratio: auto; min-height: 190px; height: 100%; }
.mp-rsvcs { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mp-rsvc { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--navy); }
.mp-rsvc__n { font-weight: 600; }
.mp-rsvc__d { font-size: 12.5px; color: var(--navy-soft); }
.mp-rsvc__p { margin-inline-start: auto; font-weight: 800; white-space: nowrap; }
.mp-rmore { margin-top: 4px; }
@media (max-width: 860px) {
  .mp-result { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .mp-result .mp-rmedia { border-radius: 0; aspect-ratio: 16/8; min-height: 0; }
  .mp-result .ty-result__body { padding: 14px 16px 16px; }
}

/* ---- Buscador organizado dentro de Resultados (mismo patrón que el hero) ---- */
.mp-research { position: relative; margin-bottom: 20px; }
.mp-research .ty-search { box-shadow: none; border: 1px solid var(--border); }
.mp-research .mp-airow { margin-top: 12px; }
@media (min-width: 861px) { .mp-airow-m { display: none; } }

/* Pines del mapa de Deals (badge de descuento) */
.mp-pin2 { background: transparent; border: 0; }
.mp-pin2 span { display: inline-flex; align-items: center; background: var(--orange); color: var(--white); font: 800 12px/1 var(--font-sans); padding: 7px 10px; border-radius: 999px; box-shadow: var(--shadow-card); white-space: nowrap; transform: translate(-50%, -100%); position: absolute; left: 0; top: -6px; }
.mp-pin2::after { content: ""; position: absolute; left: -5px; top: -7px; border: 5px solid transparent; border-top-color: var(--orange); }

/* Link activo del nav (página Ofertas) */
.ty-nav__links a.is-active { background: var(--yellow); color: var(--navy) !important; border-radius: 99px; padding: 6px 14px; margin: -6px 0; }

/* ---- Resultados: cards de la grilla a la MISMA altura ---- */
.mp-rgrid { align-items: stretch; }
.mp-rgrid > .mp-rcard { height: auto; }
.mp-rcard__body { flex: 1; }

/* ---- Deals: fila de toggles/sort dentro de tarjeta, con separadores ---- */
.mp-second2 { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 10px 16px; gap: 14px; }
.mp-second2 .vsep { width: 1px; height: 24px; background: var(--border); flex: none; }
.mp-second2 .sortlbl { font-size: 14px; font-weight: 800; color: var(--navy); }
.mp-sortsel2 { height: 44px; border-radius: var(--radius-md); font-size: 14px; padding: 0 34px 0 14px; }
.mp-second2 .mp-dtoggle { font-size: 14.5px; }
.mp-clear2 { font-size: 14px; font-weight: 700; color: var(--navy); }
.mp-clear2 svg { color: var(--orange-deep); }

/* ---- Deals: chips de filtros redondeados (no pill), 40px ---- */
.mp-dealfilters .ty-chip { height: 40px; border-radius: var(--radius-md); padding: 0 16px; font-size: 13.5px; }

/* ---- Deals: toggles con aire y centrados ---- */
.mp-second2 { align-items: center; min-height: 58px; }
.mp-second2 .mp-dtoggle { gap: 10px; }
.mp-second2 .mp-dtoggle .sw { margin-inline-start: 4px; }
.mp-second2 .vsep { margin: 0 6px; }
.mp-second2 .sortlbl { margin-inline-end: -4px; }

/* ---- Deals: iconos/toggles centrados con el texto ---- */
.mp-second2 .mp-dtoggle { height: 36px; line-height: 1; }
.mp-second2 .mp-dtoggle .tic { display: flex; align-items: center; justify-content: center; height: 36px; }
.mp-second2 .mp-dtoggle .tic svg { display: block; }

/* ---- Deals: alineación final de toggles (icono+texto+switch en una línea centrada) ---- */
.mp-second2 .mp-dtoggle { display: inline-flex; align-items: center; height: 36px; line-height: 1; }
.mp-second2 .mp-dtoggle > span { display: inline-flex; align-items: center; height: auto; }
.mp-second2 .mp-dtoggle .tic { height: auto; line-height: 1; }
.mp-second2 .mp-dtoggle svg { display: block; }
.mp-second2 .mp-dtoggle > span.sw { height: 22px; }

/* ---- Resultados: media corta uniforme y TODAS las cards igualadas ---- */
.mp-rgrid { grid-auto-rows: 1fr; }
.mp-rcard { height: 100%; }
.mp-rcard__media { aspect-ratio: 16 / 10; }

/* ---- Resultados: altura idéntica en TODAS las cards (determinista) ---- */
.mp-rgrid .mp-rcard__media { aspect-ratio: 16 / 10; }
.mp-rgrid .mp-rcard__body { height: 200px; overflow: hidden; }
.mp-rgrid .mp-rcard__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-rgrid .mp-rcard__ctas { margin-top: auto; }

/* Etiqueta «Destacado/מומלץ» siempre compacta (en RTL se estiraba por tener left y right a la vez). */
.ty-card__media > .ty-badge { left: auto !important; right: auto !important; inset-inline-start: 12px !important; inset-inline-end: auto !important; width: max-content !important; max-width: calc(100% - 76px); }

/* ---- Header del marketplace: botón de idioma legible sobre zonas claras (mismo color que «Registra tu negocio») ---- */
.ty-nav.mp-scrolled .ty-chip, .ty-nav.mp-scrolled.ty-on-navy .ty-chip { background: transparent; border: 1.5px solid var(--border); color: var(--navy); }

/* ---- Menú móvil ---- */
.ty-nav__burger, .ty-nav__menu { display: none; }
@media (max-width: 860px) {
  .ty-nav__burger { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--border); background: transparent; color: var(--navy); cursor: pointer; padding: 0; flex: none; }
  .ty-nav.ty-on-navy:not(.mp-scrolled) .ty-nav__burger { color: var(--white); border-color: rgba(255,255,255,.3); }
  .ty-nav__right .mp-langsel { display: none; }
  .ty-nav .ty-wrap { position: static; }
  .ty-nav.is-menu-open .ty-nav__menu { display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline: 0; background: var(--white); padding: 6px 16px 18px; box-shadow: 0 18px 30px rgba(11,34,51,.2); z-index: 70; max-height: calc(100vh - 80px); overflow-y: auto; }
  .ty-nav__menu > a { display: flex; align-items: center; min-height: 48px; font-size: 17px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border); text-decoration: none; }
  .ty-nav__langs { display: flex; gap: 8px; padding-top: 14px; }
  .ty-nav__lang { min-width: 56px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #EEF3F6; color: var(--navy); font: 700 15px/1 var(--font-sans); cursor: pointer; }
  .ty-nav__lang.on { background: var(--navy); color: var(--white); }
}

/* Móvil: «Registra tu negocio» vive dentro del menú, no en el header. */
@media (max-width: 860px) {
  .ty-nav__right > .ty-btn { display: none !important; }
  .ty-nav__right { margin-inline-start: auto; }
}

/* ---- Móvil: buscador del hero y cards ---- */
@media (max-width: 860px) {
  /* El botón «Buscar» estaba aplastado (flex-basis 100% en una columna lo dejaba en 22px de alto). */
  .ty-search { padding: 10px; gap: 0; }
  .ty-search > .ty-btn, .ty-search .ty-btn--lg { flex: 0 0 auto !important; width: 100%; height: 52px !important; margin-top: 10px; font-size: 16px; }
  .ty-search .ty-search__f { padding: 12px 10px; }
}
@media (max-width: 860px) {
  /* Móvil: las secciones de cards del inicio son carruseles horizontales (igual que «Recién sumados»). */
  #availgrid, #offersgrid, #bizgrid { display: flex !important; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4); scroll-padding-inline: var(--space-4); }
  #availgrid::-webkit-scrollbar, #offersgrid::-webkit-scrollbar, #bizgrid::-webkit-scrollbar { display: none; }
  #availgrid > .ty-card, #offersgrid > .ty-card, #bizgrid > .ty-card { flex: none; width: min(78vw, 290px); scroll-snap-align: start; height: auto; }
  .ty-card__foot { gap: 12px; }
  .ty-card__avail { white-space: nowrap; }
  .ty-card__info { min-width: 0; }
}

/* ---- Botón de cuenta en el header ---- */
.ty-nav__acct { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); color: var(--navy); background: transparent; text-decoration: none; flex: none; position: relative; }
.ty-nav.ty-on-navy:not(.mp-scrolled) .ty-nav__acct { color: var(--white); border-color: rgba(255,255,255,.3); }
.ty-nav__acct:hover { border-color: var(--orange); }
html.mp-signed-in .ty-nav__acct { background: var(--orange); border-color: var(--orange); color: var(--white); font-weight: 800; font-size: 15px; }
html.mp-signed-in .ty-nav__acct .ty-nav__acct-ico { display: none; }
html.mp-signed-in .ty-nav__acct::before { content: var(--mp-user-initial, "•"); }
@media (max-width: 860px) { .ty-nav__right > .ty-nav__acct { display: none; } }

/* Hero: sin estadísticas (se quitaron) */
.mp-hero__stats { display: none !important; }

/* Popover «¿Cuándo?»: cabe en pantallas angostas y usa la tipografía del sitio (salía en serif y se salía por la derecha). */
.mp-whenpop { box-sizing: border-box; width: min(340px, calc(100vw - 32px)); font-family: var(--font-sans); }
.mp-whenpop * { box-sizing: border-box; font-family: inherit; }
.mp-whenpop select, .mp-whenpop input { font: inherit; }

/* ---- Móvil: pie de las cards (precio, «Disponible hoy» y «Reservar») sin choques, en TODAS las secciones ---- */
@media (max-width: 860px) {
  .ty-card__foot { flex-wrap: wrap; align-items: stretch; gap: 10px; }
  .ty-card__info { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
  .ty-card__info small { flex: none; }
  .ty-card__info .ty-card__avail { margin-inline-start: auto; align-self: center; }
  .ty-card__cta { flex: 1 1 100%; min-height: 46px; }
}
.ty-note[hidden], .ty-grid[hidden], .mp-hscroll[hidden] { display: none !important; }

/* ---- Móvil: «Reservar es así de fácil» (3 imágenes en carrusel + pasos compactos) ---- */
@media (max-width: 860px) {
  .mp-howcards { display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--space-4) * -1) 28px !important; padding: 0 var(--space-4) 6px; scrollbar-width: none; scroll-padding-inline: var(--space-4); }
  .mp-howcards::-webkit-scrollbar { display: none; }
  .mp-howcards > img { flex: none; width: min(80vw, 320px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 10px 24px -12px rgba(0,48,73,.35); }
  .mp-steps { flex-direction: column; align-items: stretch; gap: 18px; }
  .mp-step { gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
  .mp-step__n { width: 40px; height: 40px; font-size: 18px; }
  .mp-step b, .mp-step h3 { font-size: 16px; }
  .mp-step p { margin: 2px 0 0; font-size: 14px; line-height: 20px; }
  .mp-titlecenter { font-size: 28px !important; line-height: 34px !important; margin-bottom: 24px !important; }
}

/* ===== Hero mobile: buscador y tarjeta IA con más presencia ===== */
@media (max-width: 640px) {
  .mp-hero .ty-search { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 10px; border-radius: 26px; box-shadow: 0 18px 44px rgba(0, 20, 40, .38), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
  .mp-hero .ty-search .ty-search__f { flex: none !important; width: 100%; display: flex; align-items: center; gap: 14px; padding: 11px 8px; border: 0 !important; border-radius: 16px; position: relative; }
  .mp-hero .ty-search .ty-search__f + .ty-search__f::before { content: ''; position: absolute; inset-inline: 66px 8px; top: 0; border-top: 1px solid var(--border); }
  .mp-hero .ty-search .ty-search__f:active { background: #F4F7FA; }
  .mp-hero .ty-search .ty-search__f > svg { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 15px; background: linear-gradient(145deg, #E8F1F8, #F7FAFC); color: var(--navy); }
  .mp-hero .ty-search .ty-search__f:nth-child(2) > svg { background: linear-gradient(145deg, #FFEBDD, #FFF6EE); color: var(--orange-deep); }
  .mp-hero .ty-search .ty-search__f:nth-child(3) > svg { background: linear-gradient(145deg, #E4F6EC, #F3FBF7); color: #1E8A55; }
  .mp-hero .ty-search .ty-search__f b { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-soft); font-weight: 800; }
  .mp-hero .ty-search .ty-search__f input, .mp-hero .ty-search .mp-whenfield em { font-size: 16px; font-weight: 600; color: var(--navy); font-style: normal; }
  .mp-hero .ty-search .ty-search__f input::placeholder { color: #8A99A8; font-weight: 500; }
  .mp-hero .ty-search > .ty-btn { width: 100%; height: 56px; margin-top: 8px; border-radius: 18px; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; background: linear-gradient(135deg, #FF8A3D, #E8590C); box-shadow: 0 10px 22px rgba(232, 89, 12, .42); }
  .mp-hero .ty-search > .ty-btn svg { flex: none; }
  .mp-hero .mp-ai { position: relative; margin-top: 14px; padding: 18px 16px 14px 16px; border: 0; border-radius: 24px; background: linear-gradient(150deg, #FFF3D6 0%, #FFE2B8 100%); box-shadow: 0 14px 34px rgba(0, 20, 40, .28); overflow: hidden; }
  .mp-hero .mp-ai::after { content: ''; position: absolute; top: -34px; inset-inline-end: -26px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 70, .45), transparent 70%); pointer-events: none; }
  .mp-hero .mp-ai__head { margin-bottom: 14px; position: relative; z-index: 1; }
  .mp-hero .mp-ai__head::before { content: ''; flex: none; width: 44px; height: 44px; border-radius: 15px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8590C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3Cpath d='M19 16.5c.2 1.6.9 2.3 2.5 2.5-1.6.2-2.3.9-2.5 2.5-.2-1.600-.9-2.300-2.500-2.500 1.600-.2 2.300-.9 2.500-2.500z'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 6px 14px rgba(232, 89, 12, .25); }
  .mp-hero .mp-ai__head > div { min-width: 0; }
  .mp-hero .mp-ai__title { font-size: 18px; letter-spacing: -.01em; }
  .mp-hero .mp-ai__sub { font-size: 13.5px; line-height: 1.4; }
  .mp-hero .mp-ai__box { position: relative; z-index: 1; border: 0; box-shadow: 0 6px 18px rgba(0, 20, 40, .12); padding: 5px 5px 5px 16px; }
  .mp-hero .mp-ai__input { font-size: 16px; }
  .mp-hero .mp-ai__btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF8A3D, #E8590C); }
  .mp-hero .mp-ai__btn span { display: none; }
  .mp-hero .mp-ai__hint { position: relative; z-index: 1; margin-top: 12px; font-size: 12px; }
}
@media (max-width: 640px) {
  .mp-hero .mp-ai__btn { font-size: 0; }
  .mp-hero .mp-ai__btn::before { content: ''; width: 20px; height: 20px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* ===== Hero mobile compacto: todo el buscador visible sin hacer scroll ===== */
@media (max-width: 640px) {
  .mp-hero { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 10px 0 14px !important; }
  .mp-hero .mp-hero__content { width: 100%; }
  .mp-hero .ty-badge, .mp-hero .mp-hero__inner > p.ty-muted, .mp-hero .mp-hero__mobileart, .mp-hero__stats { display: none !important; }
  .mp-hero .mp-hero-title { font-size: 27px !important; line-height: 31px !important; letter-spacing: -.8px !important; margin: 0 0 14px !important; text-align: start; }
  /* buscador: Qué (ancho completo) + Dónde / Cuándo lado a lado + botón */
  .mp-hero .ty-search { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 8px; border-radius: 22px; }
  .mp-hero .ty-search .ty-search__f { padding: 8px 8px; gap: 10px; border-radius: 14px; }
  .mp-hero .ty-search .ty-search__f:first-child { grid-column: 1 / -1; }
  .mp-hero .ty-search .ty-search__f + .ty-search__f::before { display: none; }
  .mp-hero .ty-search .ty-search__f:nth-child(3) { border-inline-start: 1px solid var(--border) !important; border-radius: 0 14px 14px 0; }
  .mp-hero .ty-search .ty-search__f:nth-child(2) { border-top: 1px solid var(--border) !important; border-radius: 0 0 0 14px; }
  .mp-hero .ty-search .ty-search__f:nth-child(3) { border-top: 1px solid var(--border) !important; }
  .mp-hero .ty-search .ty-search__f > svg { width: 18px; height: 18px; padding: 8px; border-radius: 12px; }
  .mp-hero .ty-search .ty-search__f b { font-size: 10px; }
  .mp-hero .ty-search .ty-search__f input, .mp-hero .ty-search .mp-whenfield em { font-size: 15px; }
  .mp-hero .ty-search > .ty-btn { grid-column: 1 / -1; height: 50px; margin-top: 6px; font-size: 16px; border-radius: 16px; }
  /* IA: una sola barra */
  .mp-hero .mp-ai { margin-top: 10px; padding: 8px; border-radius: 20px; display: flex; }
  .mp-hero .mp-ai::after, .mp-hero .mp-ai__head, .mp-hero .mp-ai__hint { display: none; }
  .mp-hero .mp-ai__box { width: 100%; box-shadow: none; padding: 3px 3px 3px 14px; background: rgba(255, 255, 255, .92); }
  .mp-hero .mp-ai__box::before { content: ''; flex: none; align-self: center; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8590C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.6 2.4 6.4 7 7-4.6.6-6.4 2.4-7 7-.6-4.6-2.4-6.4-7-7 4.6-.6 6.4-2.4 7-7z'/%3E%3C/svg%3E") center / contain no-repeat; }
  .mp-hero .mp-ai__btn { width: 40px; height: 40px; }
  /* populares: una fila deslizable */
  .mp-hero .mp-poprow { margin-top: 10px !important; gap: 8px !important; flex-wrap: nowrap; }
  .mp-hero .mp-poprow .ty-label { display: none; }
  .mp-hero .mp-poprow .ty-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .mp-hero .mp-poprow .ty-chips::-webkit-scrollbar { display: none; }
  .mp-hero .mp-poprow .ty-chips > * { flex: none; }
}
@media (max-width: 640px) {
  .mp-hero { align-items: flex-end; }
  .mp-hero .mp-hero__personaje { display: block !important; position: absolute; top: 8px; bottom: auto; inset-inline-end: 50%; transform: translateX(50%); height: 46%; max-height: 400px; width: auto; opacity: 1; z-index: 1; }
  [dir=rtl] .mp-hero .mp-hero__personaje { transform: translateX(-50%); inset-inline-end: auto; inset-inline-start: 50%; }
  .mp-hero .mp-heroart { opacity: .35; }
}
/* Hero mobile: la imagen ocupa el espacio libre justo encima del título; sin "Populares" */
@media (max-width: 640px) {
  .mp-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .mp-hero .mp-heroart { z-index: 0; }
  .mp-hero .mp-hero__personaje { position: relative !important; top: auto !important; inset-inline-end: auto !important; inset-inline-start: auto !important; transform: none !important; flex: 1 1 0; min-height: 0; max-height: none; height: auto; width: auto; max-width: 100%; align-self: center; object-fit: contain; object-position: center bottom; margin: 4px 0 -6px; }
  [dir=rtl] .mp-hero .mp-hero__personaje { transform: none !important; }
  .mp-hero .mp-poprow { display: none !important; }
}
/* Hero mobile (v3): altura exacta de la pantalla; la imagen se encoge para que todo el contenido quepa */
@media (max-width: 640px) {
  .mp-hero { height: calc(100svh - 62px); min-height: 0; max-height: 860px; overflow: hidden; padding: 6px 0 14px !important; }
  .mp-hero .mp-hero__personaje { flex: 1 1 0; height: 0; min-height: 0; width: 100%; max-width: 100%; object-fit: contain; object-position: center bottom; margin: 0 0 -4px; }
  .mp-hero .mp-heroart { display: none; }
  .mp-hero .mp-hero-title { font-size: 24px !important; line-height: 28px !important; margin: 0 0 10px !important; }
  .mp-hero .mp-hero__content { flex: none; }
}
/* Hero mobile (v4): círculos de vuelta + recorte del espacio muerto superior de la imagen */
@media (max-width: 640px) {
  .mp-hero .mp-heroart { display: block; z-index: 0; width: 360px; height: 360px; right: -150px !important; top: 20px !important; opacity: .5; }
  [dir=rtl] .mp-hero .mp-heroart { right: auto !important; left: -150px; }
  .mp-hero .mp-hero__personaje { z-index: 1; object-view-box: inset(10% 0 0 0); }
}
@media (max-width: 640px) {
  .mp-hero .mp-hero__personaje { object-view-box: inset(4% 0 0 0); }
  .mp-hero .mp-heroart { width: 400px; height: 400px; left: 50%; right: auto !important; transform: translateX(-62%); top: 24px !important; opacity: .55; }
  /* Idéntico a LTR: los círculos quedan detrás del personaje (no se espejan ni se desplazan en RTL). */
  [dir=rtl] .mp-hero .mp-heroart { left: 50% !important; right: auto !important; transform: translateX(-60%); }
}
/* Hero mobile (v5): como el mockup — imagen con fade inferior, título grande encima, tarjeta de búsqueda amplia */
@media (max-width: 640px) {
  .mp-hero { padding: 0 0 16px !important; }
  .mp-hero .mp-hero__personaje { object-view-box: inset(3% 0 0 0); -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); mask-image: linear-gradient(to bottom, #000 78%, transparent 100%); margin: 0 0 -34px; }
  .mp-hero .mp-heroart { width: 440px; height: 440px; top: 10px !important; transform: translateX(-60%); opacity: .6; }
  .mp-hero .mp-hero__content { position: relative; z-index: 3; }
  .mp-hero .mp-hero-title { font-size: 34px !important; line-height: 37px !important; letter-spacing: -1.1px !important; margin: 0 0 14px !important; }
  .mp-hero .ty-search { padding: 10px; border-radius: 28px; box-shadow: 0 20px 46px rgba(0, 10, 25, .45); }
  .mp-hero .ty-search .ty-search__f { padding: 10px 10px; gap: 12px; }
  .mp-hero .ty-search .ty-search__f > svg { width: 20px; height: 20px; padding: 10px; border-radius: 14px; }
  .mp-hero .ty-search .ty-search__f b { font-size: 11px; letter-spacing: .09em; }
  .mp-hero .ty-search .ty-search__f input, .mp-hero .ty-search .mp-whenfield em { font-size: 16.5px; }
  .mp-hero .ty-search > .ty-btn { height: 52px; border-radius: 18px; font-size: 17px; margin-top: 8px; }
  .mp-hero .mp-ai { margin-top: 12px; padding: 0; background: transparent; box-shadow: none; }
  .mp-hero .mp-ai__box { background: linear-gradient(135deg, #FFF8EA, #FFEBCF); padding: 5px 5px 5px 16px; height: 54px; border-radius: 999px; }
  .mp-hero .mp-ai__input { font-size: 15.5px; }
}

/* Logo más grande en mobile sin agrandar el header (margen negativo compensa el alto extra) */
@media (max-width: 560px) {
  .ty-nav .ty-logo, .ty-mhead .ty-logo { height: 30px; margin: -4px 0; }
}
@media (max-width: 480px) {
  .ty-nav .ty-logo, .ty-mhead .ty-logo { height: 30px; margin: -4px 0; }
}
/* Hero mobile: los popovers (Cuándo / Dónde) deben poder salir del hero — solo se recorta en horizontal */
@media (max-width: 640px) {
  .mp-hero { overflow: visible !important; overflow-x: clip !important; }
  .mp-hero .mp-hero__content, .mp-hero .mp-hero__inner { overflow: visible; }
  .mp-hero .mp-hero__inner > div[style*="position:relative"] { z-index: 20; }
  .mp-hero .mp-ai, .mp-hero .mp-poprow { position: relative; z-index: 1; }
}

/* Popover "Cuándo": mismo diseño que los demás popovers (.mp-fpop): tarjeta compacta, filas simples, activo en navy */
.mp-whenpop { padding: 8px; max-height: 380px; overflow: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); }
.mp-whenpop__t { margin: 0; padding: 6px 12px 6px; font-size: 14.5px; font-weight: 800; color: var(--navy); }
.mp-whenopts { gap: 0; margin-bottom: 6px; }
.mp-whenopt { border: 0; background: transparent; border-radius: var(--radius-md); padding: 10px 12px; font: 600 14px/1.25 var(--font-sans); color: var(--navy); }
.mp-whenopt:hover { background: var(--navy-tint); border-color: transparent; }
.mp-whenopt small { font-size: 12.5px; font-weight: 600; color: var(--navy-soft); }
.mp-whenopt.is-active { background: var(--navy); color: var(--white); }
.mp-whenopt.is-active small { color: rgba(255, 255, 255, .75); }
.mp-whenpop .ty-row { padding: 4px 12px 8px; }
.mp-whenhours { height: 38px; }

/* Móvil: «Reservar es así de fácil» — sin scroll horizontal; las 3 imágenes forman un collage vertical escalonado */
@media (max-width: 860px) {
  .mp-howcards { display: flex !important; flex-direction: column; align-items: stretch; gap: 0; overflow: visible !important; scroll-snap-type: none; margin: 0 0 26px !important; padding: 6px 0 0; }
  .mp-howcards > img { width: 86% !important; max-width: 400px; height: auto !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; border-radius: 0 !important; box-shadow: none !important; scroll-snap-align: none; filter: drop-shadow(0 16px 22px rgba(0, 48, 73, .2)); position: relative; }
  .mp-howcards > img:nth-child(1) { align-self: flex-start; transform: rotate(-1.6deg); z-index: 1; }
  .mp-howcards > img:nth-child(2) { align-self: flex-end; transform: rotate(1.4deg); margin-top: -34px; z-index: 2; }
  .mp-howcards > img:nth-child(3) { align-self: flex-start; transform: rotate(-1.2deg); margin-top: -34px; z-index: 3; }
}
@media (max-width: 860px) {
  .mp-howcards { padding-inline: 6px; }
  .mp-howcards > img { width: 82% !important; }
}

/* El menú desplegable (hamburguesa) debe quedar por encima de todo, incl. el mapa y las hojas de Explorar */
.ty-nav.is-menu-open { z-index: 3000 !important; }
