/*
Theme Name: Mascota QR Mobile
Description: Capa de adaptación mobile-first para Mascota QR. Conserva el diseño original del plugin y solo aporta estructura responsive.
Version: 1.0.7
Author: Mascota QR
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mascota-qr-mobile
*/

/* El diseño visual pertenece al plugin. El tema no redefine colores,
   tarjetas, botones, iconos ni dashboards. */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
img { max-width: 100%; height: auto; }
body { margin: 0; overflow-x: hidden; }

/* Solo adaptación de contenedores en pantallas pequeñas. */
@media (max-width: 768px) {
  body { width: 100%; }
  input, select, textarea, button { max-width: 100%; }
  table { max-width: 100%; overflow-x: auto; }
}


/* Menú inferior: capa independiente que no altera el diseño original del plugin. */
@media (max-width: 768px) {
.mcqm-mobile-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  width: 100%;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mcqm-mobile-bottom__scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
}
.mcqm-mobile-bottom__scroll::-webkit-scrollbar { display: none; }
.mcqm-mobile-bottom__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0 8px;
  list-style: none;
  gap: 4px;
}
.mcqm-mobile-bottom__list > li { flex: 0 0 auto; margin: 0; padding: 0; list-style: none; }
.mcqm-mobile-bottom__list > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 48px;
  padding: 8px 12px;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
body.mcqm-has-mobile-bottom { padding-bottom: 72px; }
}


/* Iconos SVG del menú inferior: visual limpio, nítido y consistente en móviles. */
@media (max-width: 768px) {
  .mcqm-mobile-bottom__link {
    flex-direction: column;
    gap: 3px;
    min-width: 78px;
    min-height: 58px;
    padding: 6px 10px;
  }
  .mcqm-menu-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mcqm-mobile-bottom__label {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }
}
