/* CoachPanel V20.0.3.130 · Corrección final de iconos 3D en iPad.
   Se carga la última para neutralizar reglas históricas de Inicio. */
@media (min-width:700px) and (max-width:1366px){
  html.cp-ipad-device body #inicio,
  html.cp-ipad-device body #inicio .inicio-app-launcher{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    align-content:start!important;
    overflow:visible!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid>.launcher-card{
    position:relative!important;
    display:grid!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    align-items:center!important;
    justify-items:center!important;
    align-content:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    flex:none!important;
  }
  html.cp-ipad-device body #inicio .cp-home-3d-media{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    align-self:center!important;
    justify-self:center!important;
    flex:0 0 auto!important;
    min-width:0!important;
    min-height:0!important;
    margin:auto!important;
    visibility:visible!important;
    opacity:1!important;
    overflow:visible!important;
  }
  html.cp-ipad-device body #inicio .cp-home-3d-image,
  html.cp-ipad-device body #inicio .cp-home-3d-image.is-loaded{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    min-height:0!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
  }
  html.cp-ipad-device body #inicio .cp-home-3d-image.is-error{
    display:none!important;
  }
  html.cp-ipad-device body #inicio .launcher-card-label{
    display:block!important;
    position:relative!important;
    width:100%!important;
    margin:0!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
  }
}

/* iPad vertical: dos columnas y botones amplios. */
@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
  html.cp-ipad-device body main{
    width:100%!important;
    max-width:none!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  html.cp-ipad-device body #inicio .inicio-app-launcher{
    width:calc(100vw - 20px)!important;
    padding:20px!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
    margin:16px auto 12px!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid>.launcher-card{
    height:238px!important;
    min-height:238px!important;
    max-height:none!important;
    padding:14px 16px 16px!important;
    row-gap:4px!important;
    border-radius:22px!important;
  }
  html.cp-ipad-device body #inicio .cp-home-3d-media{
    width:174px!important;
    height:174px!important;
    min-width:174px!important;
    min-height:174px!important;
  }
  html.cp-ipad-device body #inicio .launcher-card-label{
    font-size:26px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }
}

/* iPad horizontal: cuatro columnas sin reducir los iconos. */
@media (min-width:900px) and (max-width:1366px) and (orientation:landscape){
  html.cp-ipad-device body main{
    width:100%!important;
    max-width:none!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  html.cp-ipad-device body #inicio .inicio-app-launcher{
    width:calc(100vw - 24px)!important;
    padding:20px 22px!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:15px!important;
    margin:14px auto 10px!important;
  }
  html.cp-ipad-device body #inicio .inicio-main-grid>.launcher-card{
    height:214px!important;
    min-height:214px!important;
    max-height:none!important;
    padding:12px 12px 15px!important;
    row-gap:3px!important;
    border-radius:20px!important;
  }
  html.cp-ipad-device body #inicio .cp-home-3d-media{
    width:158px!important;
    height:158px!important;
    min-width:158px!important;
    min-height:158px!important;
  }
  html.cp-ipad-device body #inicio .launcher-card-label{
    font-size:22px!important;
    line-height:1.05!important;
    font-weight:900!important;
  }
}
