/* ==========================================================
   MEXALI — Versión móvil a la medida (≤ 860 px)
   ========================================================== */
.nav-burger, .mnav { display: none; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .sec { padding: 76px 0; }
  .h2 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.06; }
  .head-row { gap: 18px; margin-bottom: 34px; }
  .head-note { font-size: 15px; }

  /* ——— Navegación ——— */
  .nav { top: 12px; padding: 0 12px; }
  .nav.scrolled { top: 8px; }
  .nav-brand { background: rgba(14, 14, 16, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); padding: 9px 14px 9px 10px; }
  .nav-brand .iso { width: 28px; height: 25px; }
  .wordmark { font-size: 14px; }
  .nav-cta { margin-left: auto; margin-right: 8px; padding: 5px 5px 5px 16px; font-size: 13px; }
  .arrow-dot { width: 32px; height: 32px; }
  .nav-burger { display: grid; place-items: center; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--red); cursor: pointer; box-shadow: 0 10px 24px -10px rgba(232, 57, 59, .9); }
  .nav-burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 1px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease); }
  .nav-burger span:first-child { top: 18px; }
  .nav-burger span:last-child { top: 26px; }
  .nav-burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
  .mnav { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; justify-content: space-between; padding: 96px 24px 30px; background: radial-gradient(90% 60% at 100% 0%, #3a1214, var(--night) 60%); color: #fff; animation: mnavIn .5s var(--ease); }
  .mnav[hidden] { display: none; }
  @keyframes mnavIn { from { clip-path: circle(0 at calc(100% - 35px) 35px); } to { clip-path: circle(150% at calc(100% - 35px) 35px); } }
  .mnav nav { display: flex; flex-direction: column; }
  .mnav nav a { font-size: clamp(28px, 8.5vw, 38px); font-weight: 200; letter-spacing: -.03em; text-decoration: none; padding: 7px 0; border-bottom: 1px solid var(--line-d); opacity: 0; transform: translateY(14px); animation: mnavItem .6s var(--ease) forwards; }
  .mnav nav a:nth-child(1) { animation-delay: .05s; } .mnav nav a:nth-child(2) { animation-delay: .09s; } .mnav nav a:nth-child(3) { animation-delay: .13s; } .mnav nav a:nth-child(4) { animation-delay: .17s; }
  .mnav nav a:nth-child(5) { animation-delay: .21s; } .mnav nav a:nth-child(6) { animation-delay: .25s; } .mnav nav a:nth-child(7) { animation-delay: .29s; } .mnav nav a:nth-child(8) { animation-delay: .33s; }
  @keyframes mnavItem { to { opacity: 1; transform: none; } }
  .mnav nav a.active { color: var(--red); font-weight: 600; }
  .mnav-ctas { display: grid; gap: 12px; }
  .mnav-ctas .btn { justify-content: space-between; }
  .mnav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .mnav-chip { text-align: center; padding: 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); text-decoration: none; font-weight: 600; font-size: 15px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .wa-float { opacity: 0; pointer-events: none; }

  /* ——— Hero ——— */
  .hero { margin: 8px; border-radius: 26px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding: 96px 22px 34px; }
  .chip-label { font-size: 10px; letter-spacing: .1em; padding: 7px 12px 7px 10px; }
  .hero-title { font-size: clamp(2.5rem, 12.4vw, 3.6rem); line-height: .96; margin: 20px 0 18px; }
  .hero-title .line { white-space: nowrap; }
  .hero-title .indent { padding-left: 0; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 26px; }
  .hero-ctas .btn { justify-content: space-between; }
  .btn-play { justify-content: center; }
  .btn-play .play { width: 44px; height: 44px; }
  .hero-proof { margin-top: 26px; }
  .hero-stage { height: 300px; min-height: 0; margin: 0 -10px 8px; transform: none; }
  .logo3d { width: 200px; height: 175px; margin: -95px 0 0 -100px; }
  .orbit-1 { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .orbit-2 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .logo3d-floor { bottom: -40px; height: 40px; }
  .fcard { font-size: 11px; padding: 10px 12px; border-radius: 14px; }
  .fc-ga { left: 0; top: 4px; width: 150px; }
  .fc-ga .fc-big { font-size: 24px; }
  .fc-ga .spark { width: 120px; height: 28px; }
  .fc-wa { right: 0; bottom: 6px; width: 210px; left: auto; }
  .fc-wa .wa-ico { width: 30px; height: 30px; border-radius: 9px; }
  .fc-google, .fc-meta { display: none; }
  .hero-bottom { display: none; }
  .hero-glow { width: 520px; height: 520px; right: -200px; top: 150px; }

  /* ——— Cinta ——— */
  .ticker { padding: 22px 0 0; }
  .ticker span { font-size: 22px; }

  /* ——— Servicios: carrusel deslizable ——— */
  .svc-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 6px 20px 18px; scrollbar-width: none; perspective: none; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 80%; height: 430px; scroll-snap-align: center; }
  .svc-body { padding: 20px; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
  .swipe-hint::after { content: "→"; color: var(--red); animation: nudge 1.6s infinite; }
  @keyframes nudge { 50% { transform: translateX(6px); } }

  /* ——— Proyectos: carrusel deslizable ——— */
  .projects { margin: 0 8px; border-radius: 26px; }
  .projects .proj-pin { height: auto; min-height: 0; display: block; padding: 76px 0 50px; }
  .proj-intro { padding: 0 20px; margin-bottom: 26px; }
  .proj-progress, .proj-hint { display: none; }
  .proj-viewport { overflow: visible; -webkit-mask: none; mask: none; height: auto; display: block; }
  .proj-track { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 6px 20px 16px; scrollbar-width: none; transform: none !important; }
  .proj-track::-webkit-scrollbar { display: none; }
  .proj { flex: 0 0 86%; width: auto; scroll-snap-align: center; }
  .proj-device { border-radius: 14px; }
  .device-bar { padding: 8px 12px; }
  .device-bar span { font-size: 10px; padding: 3px 10px; }
  .proj-info { grid-template-columns: 1fr; margin-top: 18px; }
  .proj h3 { font-size: 24px; }
  .proj-info > p:not(.proj-meta) { font-size: 14.5px; }
  .proj-tags { grid-column: 1; }
  .proj-end { flex: 0 0 70%; scroll-snap-align: center; align-self: center; padding: 0; }
  .proj-end p { font-size: 34px; }
  .proj .swipe-hint, .projects .swipe-hint { color: var(--muted-d); padding: 0 20px; }

  /* ——— Simulador ——— */
  .lab-me { padding: 18px; gap: 12px; border-radius: 20px; }
  .me-field { display: flex; flex-direction: column; gap: 2px; width: 100%; font-size: 13px; }
  .me-field input, #me-name { width: 100%; font-size: 19px; }
  .lab-me-hint { font-size: 12px; }
  .lab-tabs { margin: 0 -20px; padding: 0 20px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lab-tabs::-webkit-scrollbar { display: none; }
  .lab-tabs button { min-width: 225px; padding: 12px 14px; scroll-snap-align: start; }
  .lab-tabs button:hover { transform: none; }
  .lt-ico { width: 38px; height: 38px; }
  .lab-panel { min-height: 0; padding: 22px 16px 20px; border-radius: 24px; }
  .lp-q { font-size: 19px; }
  .serp { padding: 12px; }
  .serp-list .s-title { font-size: 14.5px; }
  .serp-list li:nth-child(n+4) { display: none; }
  .meter b { font-size: 44px; }
  .ga-store { min-height: 360px; }
  .ga-door { width: 90px; height: 130px; right: 16px; top: 64px; }
  .ga-btns { grid-template-columns: 1fr 1fr; left: 12px; right: 12px; bottom: 12px; }
  .ga-btns button { font-size: 12px; padding: 10px; }
  .meta-days { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .day.dim { display: none; }
  .funnel { grid-template-columns: 1fr 1fr; }
  .f-step b { font-size: 26px; }
  .budget output { font-size: 38px; }
  .wa-lab { grid-template-columns: 1fr; }
  .wa-side { order: -1; }
  .wa-side ul { display: none; }
  .wa-side .wa-q { display: none; }
  .wa-chat { height: 300px; }
  .lp-say { font-size: 14px; }
  .lab-cta { padding: 18px; }
  .lab-cta .btn { width: 100%; justify-content: space-between; }

  /* ——— Marcas / manuales ——— */
  .studio { margin: 0 8px; border-radius: 26px; }
  .books { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .book-info b { font-size: 14.5px; }
  .book-info small { font-size: 9.5px; }
  .reel { padding-top: 70px; }
  .reel-frame { height: 62vh; border-radius: 22px; }
  .credits { gap: 12px; }
  .photo-rows { padding-top: 76px; }
  .row img { height: 200px; border-radius: 16px; }

  /* ——— Visor de manuales ——— */
  .fb { padding: 18px 8px 16px; grid-template-rows: auto 1fr auto auto; }
  .fb-head { padding: 0 8px; }
  .fb-head h3 { font-size: 22px; }
  .fb-close { width: 44px; height: 44px; }
  .fb-book { width: calc(100vw - 30px); }
  .fb-note::before { content: "Gira tu teléfono para verlo más grande · "; color: #fff; }
  @media (orientation: landscape) { .fb-book { width: min(92vw, calc((100vh - 120px) * 1.7778)); } .fb-head, .fb-note { display: none; } .fb-note::before { content: none; } }

  /* ——— Proceso ——— */
  .tl-step { padding: 22px; }

  /* ——— Clientes: mapa arriba de la lista ——— */
  .clients { margin: 0 8px; border-radius: 26px; padding: 76px 16px; }
  .clients-grid { display: flex; flex-direction: column; gap: 0; }
  .clients-copy { display: contents; }
  .clients-copy > .eyebrow, .clients-copy > .h2, .clients-note { order: 1; padding: 0 4px; }
  .cl-stats { order: 2; margin: 22px 4px 18px; gap: 26px; }
  .cl-stats b { font-size: 42px; }
  .map-box { order: 3; border-radius: 20px; margin-bottom: 18px; }
  .cl-filter { order: 4; }
  .cl-list { order: 5; max-height: 340px; }
  .map-hud { font-size: 8.5px; }
  .map-hud.bl, .map-hud.br { display: none; }
  .map-card { width: 220px; }

  /* ——— Cotizador: preguntas primero ——— */
  .quote-sec { padding: 0 8px 70px; }
  .quote-card { display: flex; flex-direction: column; gap: 20px; padding: 30px 16px 22px; border-radius: 26px; }
  .quote-side { display: contents; }
  .quote-side > .eyebrow, .quote-side > .h2 { order: 1; padding: 0 6px; }
  .quiz { order: 2; min-height: 0; padding: 22px 18px; border-radius: 22px; }
  .summary { order: 3; margin-top: 0; }
  .quote-direct { order: 4; padding: 0 6px; }
  .q legend { font-size: 23px; }
  .opts span { padding: 11px 16px; font-size: 14px; }
  .opts-cards span { padding: 14px; }
  .o-ico { width: 38px; height: 38px; }
  .quiz-nav .btn { min-height: 52px; }
  .btn-wa { width: 100%; justify-content: center; }
  .summary li { grid-template-columns: 96px 1fr; font-size: 13.5px; }

  /* ——— Preguntas y pie ——— */
  .faq { padding-top: 0; }
  .faq-list summary { font-size: 15.5px; padding: 18px 60px 18px 18px; }
  .faq-list details p { padding: 0 18px 18px; font-size: 15px; }
  .foot { margin: 0 8px 8px; border-radius: 26px; padding: 70px 22px 26px; }
  .foot-cta { font-size: 2.3rem; }
  .foot-top .btn { width: 100%; justify-content: space-between; }
  .foot-cols { gap: 26px; padding: 36px 0; }
  .giant { font-size: 24vw; margin: 0 -10px; }
  .foot-legal { font-size: 10.5px; padding-bottom: 70px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
@media (min-width: 861px) { .swipe-hint { display: none; } }
