/* NEXTCRM 25/11/2026 | Fichas, carrito, agenda y demo en celulares.
   Solo responsive. Mantiene íntegra la validación y la lógica existente. */
@media (max-width:760px){
 /* Carrito: no sacrificar formularios para simular un "sin scroll". */
 body.nx-unified-header{min-width:0!important;max-width:100vw!important;overflow-x:hidden!important}
 body.nx-unified-header>.nx-global-header{min-width:0!important;max-width:100vw!important}
 body.nx-unified-header>.nx-global-header .nx-global-brand{min-width:0!important;max-width:calc(100vw - 85px)!important}
 body.nx-unified-header>.nx-global-header .nx-global-nav.nx-open{max-height:calc(100dvh - 65px)!important;overflow-y:auto!important}
 body.nx-unified-header main.nx-checkout-main{
   width:100%!important;max-width:100%!important;min-width:0!important;
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   flex:1 1 auto!important;min-height:0!important;
   padding:12px 12px calc(20px + env(safe-area-inset-bottom))!important;
   gap:12px!important;overflow-x:hidden!important;overflow-y:auto!important;
   -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;
 }
 .nx-checkout-main>section,.nx-checkout-main>aside,.nx-checkout-main>aside>section{
   min-width:0!important;width:100%!important;max-width:100%!important;height:auto!important;
   max-height:none!important;overflow:visible!important;margin:0!important;
 }
 .nx-checkout-main>section,.nx-checkout-main>aside>section{padding:16px!important;border-radius:16px!important}
 .nx-checkout-main .field :is(input,select,textarea){min-width:0!important;font-size:16px!important;min-height:44px!important}
 .nx-checkout-main :is(h1,h2,p,.notice){overflow-wrap:anywhere!important}
 .nx-checkout-main :is(button,[role="button"]){min-height:44px!important}
 .nx-checkout-main .summary{gap:10px!important;flex-wrap:wrap!important}
 /* Agenda: mantener accesibles días, horarios, datos y confirmar. */
 .nx-compact-agenda{min-width:0!important;max-width:100%!important;overflow:hidden!important}
 .nx-compact-agenda .layout{display:block!important;max-width:100%!important;min-height:0!important}
 .nx-compact-agenda .nx-agenda-main{
   width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;
   padding:12px!important;overflow-y:auto!important;overflow-x:hidden!important;
   overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important;
 }
 .nx-compact-agenda .nx-agenda-scene{
   display:flex!important;flex-direction:column!important;
   min-height:min-content!important;height:auto!important;gap:12px!important;
   padding:0 0 calc(12px + env(safe-area-inset-bottom))!important;
 }
 .nx-compact-agenda .nx-step{flex:none!important;min-height:0!important}
 .nx-compact-agenda .nx-step h2{font-size:13px!important;line-height:1.3!important;margin:0 0 8px!important}
 .nx-compact-agenda .choice,.nx-compact-agenda .method-chips{gap:6px!important}
 .nx-compact-agenda .choice button,.nx-compact-agenda .method-chips button{
   min-height:44px!important;height:auto!important;padding:8px 5px!important;
   font-size:12px!important;line-height:1.24!important;white-space:normal!important;
 }
 .nx-compact-agenda .calendar{gap:5px!important}
 .nx-compact-agenda .calendar button{height:51px!important;min-height:51px!important;font-size:11px!important}
 .nx-compact-agenda .calendar button .daynum{font-size:17px!important}
 .nx-compact-agenda .calendar button .monthname{font-size:9px!important}
 .nx-compact-agenda .slots,.nx-compact-agenda body[data-mode="visita"] .slots{gap:6px!important;grid-auto-rows:38px!important}
 .nx-compact-agenda .slots button{min-height:38px!important;height:38px!important;font-size:12px!important}
 .nx-compact-agenda #bookingForm{flex:none!important;gap:9px!important}
 .nx-compact-agenda #bookingForm .form-row{gap:8px!important}
 .nx-compact-agenda #bookingForm label{font-size:12px!important;line-height:1.25!important;gap:5px!important}
 .nx-compact-agenda #bookingForm :is(input,select){min-height:43px!important;height:43px!important;font-size:16px!important;padding:7px 10px!important}
 .nx-compact-agenda #bookingForm textarea{font-size:16px!important;min-height:78px!important}
 .nx-compact-agenda #bookingForm .submit{min-height:48px!important;height:auto!important;font-size:13px!important}
 .nx-compact-agenda #bookingForm .safety{font-size:11px!important}
 .nx-compact-agenda :is(.visit-info,.slots-status){font-size:11px!important;line-height:1.35!important}
 /* Ficha de planes: precio y detalles en una sola columna. */
 .page,.shell,.panel,.panel.hero{max-width:100%!important;min-width:0!important}
 .page{padding:12px!important}
 .shell{width:100%!important}
 .panel.hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:17px!important}
 .panel.hero .hero-copy{padding-right:0!important}
 .panel.hero h1{font-size:clamp(27px,7.6vw,36px)!important;line-height:1.08!important;overflow-wrap:anywhere}
 .panel.hero .price-card{padding:12px!important;margin:0!important;border:1px solid #dad5ef!important;border-radius:14px}
 .page .panel{padding:19px 0!important}
 .page :is(.actions,.product-grid,.custom-grid,.nx-info-grid){max-width:100%!important;min-width:0!important}
 .page .actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
 .page .actions button,.page .actions a{min-height:44px!important}
 .page .product-grid,.page .custom-grid{grid-template-columns:minmax(0,1fr)!important}
 .page :is(input,select,textarea){font-size:16px!important;max-width:100%!important}
 /* Demo: tarjeta central con campos accesibles, sin bordes fuera de pantalla. */
 .demo-stage,.demo-stage .access-overlay{width:100%!important;max-width:100vw!important}
 .demo-stage .access-overlay{overflow-x:hidden!important;overflow-y:auto!important;
   padding:calc(60px + env(safe-area-inset-top)) 12px calc(16px + env(safe-area-inset-bottom))!important;
   align-items:flex-start!important;justify-content:center!important}
 .demo-stage .access-card{width:min(100%,520px)!important;max-width:100%!important;
   height:auto!important;max-height:none!important;min-width:0!important;
   overflow:visible!important;padding:clamp(15px,4vw,22px)!important;border-radius:18px!important}
 .demo-stage :is(input,select){font-size:16px!important;min-height:44px!important;max-width:100%!important}
 .demo-stage :is(.choose-btn,.login-form button){min-height:45px!important}
 .demo-stage .choice-grid{grid-template-columns:minmax(0,1fr)!important}
 .demo-stage .back-control,.demo-stage .logout-control{z-index:25!important}
}
@media (max-width:390px){
  .nx-compact-agenda #bookingForm .form-row{grid-template-columns:minmax(0,1fr)!important}
  .nx-compact-agenda .calendar button{height:46px!important;min-height:46px!important}
  .nx-checkout-main>section,.nx-checkout-main>aside>section{padding:13px!important}
}
