
/* MEDSOFTGT 1.0 - Fase 30
   Ajustes de compatibilidad entre el diseño histórico y el layout unificado. */

body{overflow-x:hidden}
img,video,iframe{max-width:100%}

/* Evita que estilos antiguos del .header/.menu afecten el nuevo layout */
.m-header .m-container{max-width:none}
.m-header .m-menu{box-sizing:border-box}
.m-header .m-brand img{width:auto}

/* Secciones existentes */
#demostracion .demo-box video,
#demostracion .demo-box iframe{
  width:100%!important;
  max-width:100%;
  aspect-ratio:16/9;
  height:auto;
  min-height:0!important;
  object-fit:contain;
}
.pricing,.specialties,.features,.testimonials,.contact-grid,.news-grid,.kb-grid,.course-grid{
  min-width:0;
}
.price-card,.card,.feature,.quote,.news-card,.kb-card,.course-card{
  min-width:0;
  overflow-wrap:anywhere;
}
.price{overflow-wrap:anywhere}

/* Menú móvil */
@media(max-width:980px){
  html.m-menu-open{overflow:hidden}
  html.m-menu-open .m-header{
    max-height:100vh;
    overflow:auto;
  }
  .m-menu a.active:after{display:none}
}

/* Teléfonos pequeños */
@media(max-width:600px){
  .container{width:min(100% - 24px,1180px)}
  .hero-actions,.card-actions{display:flex;flex-wrap:wrap;gap:8px}
  .hero-actions .btn,.card-actions .btn{max-width:100%}
  #demostracion .demo-wrap{min-width:0}
}

/* Impresión básica */
@media print{
  .m-topbar,.m-header,.m-footer,.nav-actions,.hero-actions{display:none!important}
}
