/* ════════════════════════════════════════════════════════════════
   Maya Tours — Rediseño Home 2026 (clases/animaciones compartidas)
   Portado del prototipo de diseño aprobado (Claude Design).
   Lo usan los componentes del bundle (nav, hero, sliders, secciones).
   Las clases con prefijo mt- evitan colisión con el resto del sitio.
   ════════════════════════════════════════════════════════════════ */

::selection { background: #E84423; color: #fff; }

/* En la home el control de moneda+idioma vive en el nav nuevo (CurrencySelect +
   LangSelect/Google Translate) → ocultamos el widget viejo combinado para no duplicar.
   El resto del sitio (que no carga este CSS) lo conserva. */
.mt-locale-btn, #mt-locale-mount { display: none !important; }

/* Con el sheet de búsqueda abierto: ocultar la barra inferior, el nav y las stats
   del hero (que se filtran por el stacking-context del mt-hero-pad). */
body.mt-search-sheet-open .mobile-bottom-bar { transform: translateY(130%) !important; pointer-events: none; }
body.mt-search-sheet-open .mt-site-nav { opacity: 0 !important; pointer-events: none !important; }
body.mt-search-sheet-open .mt-hero-stats { visibility: hidden !important; }

/* ── Reveal on scroll ── */
.mt-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.mt-reveal.in, .mt-reveal.is-visible { opacity: 1; transform: none; }
.mt-reveal[data-d="1"] { transition-delay: .08s; }
.mt-reveal[data-d="2"] { transition-delay: .16s; }
.mt-reveal[data-d="3"] { transition-delay: .24s; }
.mt-reveal[data-d="4"] { transition-delay: .32s; }
.mt-reveal[data-d="5"] { transition-delay: .40s; }

/* ── Keyframes ── */
@keyframes mtFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes mtPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes mtShine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }
@keyframes mtMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes mtRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mtBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes mtNudgeX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes mtChipsPeek { 0% { transform: translateX(0); } 12% { transform: translateX(-46px); } 30% { transform: translateX(0); } 100% { transform: translateX(0); } }
@keyframes mtSheetUp { from { transform: translateY(100%); } to { transform: none; } }
/* Entrada solo-opacidad (sin transform → no crea containing block que rompa el sheet fixed) */
@keyframes mtFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── CTA shine ── */
.mt-cta { position: relative; overflow: hidden; }
.mt-cta::before { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: mtShine 4.5s ease-in-out infinite; animation-delay: 1.4s; pointer-events: none; }

/* ── Bento cards (destinos) ── */
.mt-card-img { transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.mt-bento:hover .mt-card-img { transform: scale(1.08); }
.mt-bento { transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease; }
.mt-bento:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(11,42,34,.5); }

/* ── Link underline (nav) ── */
.mt-link { position: relative; }
.mt-link::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; background: #E84423; transition: width .3s cubic-bezier(.16,1,.3,1); }
.mt-link:hover::after { width: 100%; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .mt-reveal { opacity: 1 !important; transform: none !important; }
  .mt-mq-track { animation: none !important; flex-wrap: nowrap; overflow-x: auto; }
}

/* ── Marquee (conciertos / salidas / testimonios) ── */
.mt-mq { overflow: hidden; position: relative; width: 100%; }
.mt-mq-track { display: flex; gap: 18px; width: max-content; animation: mtMarquee var(--mq-dur,46s) linear infinite; will-change: transform; }
.mt-mq:hover .mt-mq-track { animation-play-state: paused; }
/* En móvil el marquee SIGUE animándose automático (pedido del cliente: auto en
   desktop y móvil). Solo ajustamos el gap. El usuario que prefiere reduced-motion
   recibe el override de abajo (sin animación + scroll manual). */
@media (max-width: 768px) {
  .mt-mq-track { gap: 14px; }
}

/* ── Buscador: tabs ── */
.mt-tabs { display: flex; flex-wrap: wrap; gap: 3px; padding: 10px 10px 0; overflow-x: auto; scrollbar-width: none; }
.mt-tabs::-webkit-scrollbar { display: none; }
.mt-tab-btn { cursor: pointer; border: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 15px; border-radius: 999px; font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.mt-tab-btn:not(.mt-tab-on):hover { background: rgba(11,42,34,.06) !important; color: #0B2A22 !important; }

/* ── Buscador: campos ── */
.mt-fields { display: flex; align-items: stretch; padding: 8px; gap: 0; }
.mt-fcell { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-right: 1px solid rgba(11,42,34,.09); cursor: text; }
.mt-flabel { display: flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #108070; }
.mt-finput { border: 0; outline: none; background: transparent; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: #0B2A22; margin-top: 6px; width: 100%; padding: 0; }
.mt-finput::placeholder { color: #9aa0a6; }
.mt-pax-pop { position: absolute; top: calc(100% + 12px); right: 0; width: 268px; background: #fff; border: 1px solid rgba(11,42,34,.1); border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(11,42,34,.45); padding: 10px 12px; z-index: 40; cursor: default; animation: mtRise .25s cubic-bezier(.16,1,.3,1) both; }
.mt-search-go { flex: none; width: 170px; padding: 8px; display: flex; }

/* ── Buscador móvil: disparador + chips ── */
.mt-mtrigger { display: none; }
.mt-mchips-wrap { display: none; }
.mt-mchips { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.mt-mchips::-webkit-scrollbar { display: none; }
.mt-chip-fade { position: absolute; top: 12px; right: 0; bottom: 0; width: 54px; pointer-events: none; background: linear-gradient(to right, rgba(11,42,34,0), rgba(11,42,34,.55)); border-radius: 0 999px 999px 0; transition: opacity .3s ease; }
.mt-mchip { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.3); color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ── Sheet de búsqueda móvil ── */
.mt-sheet { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; animation: mtSheetUp .32s cubic-bezier(.16,1,.3,1) both; }
.mt-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(11,42,34,.1); }
.mt-sheet-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px; border-bottom: 1px solid rgba(11,42,34,.08); scrollbar-width: none; }
.mt-sheet-tabs::-webkit-scrollbar { display: none; }
.mt-sheet-tabs .mt-tab-btn { border: 1px solid rgba(11,42,34,.1); }
.mt-sheet-body { flex: 1; overflow-y: auto; padding: 16px 18px 22px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.mt-srow { display: block; border: 1px solid rgba(11,42,34,.14); border-radius: 14px; padding: 13px 16px; }
.mt-sinput { border: 0; outline: none; width: 100%; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; color: #0B2A22; margin-top: 6px; padding: 0; background: transparent; }
.mt-sinput::placeholder { color: #9aa0a6; }
.mt-sheet-foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(11,42,34,.1); }

/* ── Responsive del buscador ── */
@media (max-width: 760px) {
  .mt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; }
  .mt-fcell { border-right: 0; border: 1px solid rgba(11,42,34,.12); border-radius: 12px; padding: 10px 13px; }
  .mt-search-go { grid-column: 1 / -1; width: 100%; padding: 2px; }
  .mt-search-card { display: none !important; }
  /* Al abrir el disparador, la card se vuelve un sheet a pantalla completa */
  .mt-search-card.mt-search-open {
    display: block !important;
    position: fixed !important; inset: 0 !important; z-index: 200 !important;
    border-radius: 0 !important; border: 0 !important; box-shadow: none !important;
    overflow-y: auto !important; -webkit-overflow-scrolling: touch;
    padding: 56px 4px calc(40px + env(safe-area-inset-bottom)) !important;
    animation: mtSheetUp .32s cubic-bezier(.16,1,.3,1) both;
  }
  .mt-mtrigger { display: flex !important; }
  .mt-mchips-wrap { display: block !important; }
  .mt-mchips { animation: mtChipsPeek 2.6s ease-in-out 1s 1; }
  .mt-pax-pop { width: min(268px, calc(100vw - 48px)); }
}

/* ── Bento responsive ── */
@media (max-width: 920px) {
  .mt-bento-grid { grid-template-columns: repeat(2,1fr) !important; grid-auto-rows: 180px !important; }
  .mt-bento-grid > a:first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
}
@media (max-width: 560px) {
  .mt-bento-grid { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
  .mt-bento-grid > a:first-child { grid-column: span 1 !important; grid-row: span 1 !important; grid-auto-rows: 260px !important; }
  .mt-bento-grid > a { grid-row: span 1 !important; }
}

/* ── Otras secciones responsive ── */
@media (max-width: 820px) { .mt-porque-grid { grid-template-columns: 1fr !important; } .mt-porque-img { max-width: 440px; } }
@media (max-width: 760px) { .mt-foot-grid { grid-template-columns: 1fr !important; gap: 28px !important; } }
@media (max-width: 640px) { .mt-cta-row { justify-content: center !important; text-align: center; } .mt-cta-text { max-width: 100% !important; } .mt-cta-btns { width: 100%; min-width: 0 !important; } }
@media (max-width: 600px) {
  .mt-hero-pad { padding: 86px 14px 44px !important; }
  .mt-hero-stats { display: grid !important; grid-template-columns: repeat(4,1fr) !important; gap: 10px !important; margin-top: 24px !important; }
  .mt-hero-stats > div > div:first-child { font-size: 19px !important; }
  .mt-hero-stats > div > div:last-child { font-size: 9px !important; letter-spacing: .04em !important; }
  .mt-agents-extra { display: none; }
  .mt-tab-btn { padding: 10px 13px !important; font-size: 12.5px !important; gap: 6px !important; }
}
