/* ==========================================================================
   SISTEMA DE DISEÑO - FARMACIA EL PUEBLO
   Paleta Médica Profesional, Accesible y Moderna
   ========================================================================== */
:root {
  --azul-marca: #0077b6;
  --celeste: #00b4d8;
  --azul-hover: #005f92;
  --verde-salud: #10b981;
  --verde-hover: #059669;
  --rojo-alerta: #ef4444;
  --naranja-aviso: #f59e0b;
  --oscuro: #0f172a;
  --oscuro-suave: #1e293b;
  --gris-texto: #64748b;
  --gris-fondo: #f8fafc;
  --gris-borde: #e2e8f0;
  --blanco: #ffffff;
  --sombra-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --sombra-md: 0 4px 14px -1px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --sombra-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 6px 12px -2px rgba(15, 23, 42, 0.05);
  --sombra-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.14);
  --radio-sm: 8px;
  --radio-md: 14px;
  --radio-lg: 20px;
}

html {
  /* Scroll nativo instantáneo para eliminar la resistencia y lag (stutter) de la rueda del ratón en PC */
  scroll-behavior: auto;
}

@media (prefers-reduced-motion: no-preference) {
  :root:focus-within {
    scroll-behavior: smooth;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@font-face {
  font-family: "bootstrap-icons";
  src: url("../fonts/bootstrap-icons.woff2") format("woff2"),
    url("../fonts/bootstrap-icons.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--oscuro);
  background-color: var(--blanco);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: subpixel-antialiased;
  -moz-osx-font-smoothing: auto;
  text-rendering: auto;
}

/* Tipografías */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--oscuro);
}

.linea {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--azul-marca);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.linea::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: var(--celeste);
  border-radius: 2px;
}

/* ==========================================================================
   TOPBAR INFORMATIVA SUPERIOR
   ========================================================================== */
.topbar-info {
  background: #0a1f33;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-info a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-info a:hover {
  color: var(--celeste);
}

.topbar-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.navbar-custom,
.navbar-modern {
  background-color: #ffffff !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.navbar-custom.navbar-scrolled,
.navbar-modern.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
  border-bottom-color: #cbd5e1;
}

.logo-cruz {
  color: var(--celeste);
  font-size: 2.1rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 180, 216, 0.3));
}

.logo-navbar-img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 160px;
  aspect-ratio: 1567 / 412;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  transition: height 0.2s ease, max-width 0.2s ease;
}

.logo-navbar-img-drawer {
  width: auto;
  height: 38px;
  max-height: 40px;
  max-width: 155px;
  aspect-ratio: 1567 / 412;
  object-fit: contain;
  object-position: left center;
}

.logo-footer-img {
  display: block;
  width: auto;
  height: 38px;
  max-width: 150px;
  aspect-ratio: 1567 / 412;
  object-fit: contain;
  object-position: left center;
}

.neurix-logo-marco {
  width: min(320px, 100%);
  overflow: hidden;
  padding: 0.5rem;
  border: 1px solid rgba(13, 202, 240, 0.5);
  border-radius: 1rem;
  background: #071522;
  box-shadow: 0 0 15px rgba(13, 202, 240, 0.4), 0 1rem 2rem rgba(0, 0, 0, 0.35);
}

.neurix-logo-grafico {
  display: block;
  width: 100%;
  height: auto;
  transform: translateX(7%);
}

.perfil-desarrollador-rol {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  border: 1px solid rgba(73, 215, 232, 0.5);
  background: rgba(7, 89, 133, 0.38);
  color: #fff;
  font-weight: 700;
}

.sitio-footer .row.g-4 {
  align-items: flex-start;
}

button.btn.btn-outline-primary.btn-sm.rounded-circle,
button.btn.btn-outline-danger.btn-sm.rounded-circle,
a.btn.btn-outline-primary.btn-sm.rounded-circle,
a.btn.btn-outline-danger.btn-sm.rounded-circle {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

button.btn.btn-outline-primary.btn-sm.rounded-circle i,
button.btn.btn-outline-danger.btn-sm.rounded-circle i,
a.btn.btn-outline-primary.btn-sm.rounded-circle i,
a.btn.btn-outline-danger.btn-sm.rounded-circle i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.horario-footer {
  display: grid;
  gap: 0.65rem;
}

.horario-footer-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 0.2rem 0.55rem;
  min-height: 68px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #e2e8f0;
  font-size: 0.88rem;
  line-height: 1.35;
}

.horario-footer-item strong {
  grid-column: 2;
  color: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}

.horario-footer-item>span {
  grid-column: 2;
  color: #cbd5e1;
  white-space: nowrap;
}

.horario-footer-icono {
  color: #49d7e8;
  font-size: 1.1rem;
}

.sitio-footer a.text-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sitio-footer a.text-secondary:hover {
  color: #fff !important;
  transform: translateX(3px);
}

@media (max-width: 575.98px) {
  .logo-footer-img {
    width: auto;
    height: 32px;
    max-width: 125px;
    object-fit: contain;
    object-position: left center;
  }

  .horario-footer-item>span {
    white-space: nowrap;
  }
}

.logo-login-img {
  display: block;
  width: 200px;
  height: 55px;
  object-fit: contain;
  object-position: center;
}

/* Adaptabilidad responsive del logotipo de la barra de navegación */
/* Proporción real del PNG: 1567 x 412 (~3.8:1). max-width = height * 3.8 */
@media (min-width: 1200px) {
  .navbar .logo-navbar-img {
    height: 44px;
    max-width: 168px;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  .navbar .logo-navbar-img {
    height: 40px;
    max-width: 152px;
  }
}

@media (min-width: 376px) and (max-width: 575.98px) {
  .navbar .logo-navbar-img {
    height: 36px;
    max-width: 137px;
  }
}

@media (max-width: 375.98px) {
  .navbar .logo-navbar-img {
    height: 32px;
    max-width: 122px;
  }
}

/* Navbar compacto: controles más bajos para no ocupar tanto alto */
.navbar .icon-action {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  font-size: 1.25rem;
}

.navbar .navbar-nav .nav-link-custom {
  min-height: 40px;
  display: flex;
  align-items: center;
}

.logo-texto-principal {
  color: var(--oscuro);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-texto-secundario {
  color: var(--azul-marca);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.nav-link-custom {
  color: var(--gris-texto);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-custom:hover {
  color: var(--azul-marca);
  background-color: rgba(241, 245, 249, 0.85);
  transform: translateY(-1px);
}

.navbar .nav-link-custom.active,
.navbar .nav-link-custom.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
  font-weight: 700 !important;
}

.navbar .nav-link-custom.active:hover,
.navbar .nav-link-custom.is-active:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  transform: translateY(-1px);
}

.navbar .nav-link-custom:active {
  transform: scale(0.97);
}

#mobileDrawer [data-nav-key].is-active {
  background-color: #eef2f7;
  box-shadow: inset 3px 0 0 #111827;
  color: #111827;
}

.navbar .nav-link-custom,
#mobileDrawer [data-nav-key] {
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar .navbar-brand {
  flex-shrink: 0;
  min-width: 0;
}

.navbar .navbar-nav {
  flex-shrink: 1;
  min-width: 0;
}

.navbar>.container-fluid>.d-flex:last-child,
.navbar .navbar-acciones {
  flex-shrink: 0;
}

.navbar .nav-link-custom {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar .navbar-brand svg {
    width: 34px;
    height: 34px;
  }

  .navbar .navbar-brand span:first-child {
    font-size: 1.1rem !important;
  }

  .navbar .navbar-brand span:last-child {
    font-size: 0.78rem !important;
  }

  .navbar .nav-link-custom {
    font-size: 0.75rem !important;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
  }

  .navbar .nav-link-custom i {
    margin-right: 0.15rem !important;
  }

  .navbar>.container-fluid>.d-flex:last-child {
    gap: 0.6rem !important;
  }
}

.icon-action {
  color: var(--oscuro);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--gris-fondo);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.icon-action:hover {
  background-color: #f1f5f9;
  color: var(--azul-marca);
  border-color: #cbd5e1;
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.icon-action:active {
  transform: scale(0.96);
}

.cart-wrapper {
  position: relative;
}

.cart-badge {
  background: linear-gradient(135deg, var(--azul-marca), var(--celeste));
  color: var(--blanco);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2em 0.55em;
  position: absolute;
  top: -4px;
  right: -4px;
  border: 2px solid var(--blanco);
  box-shadow: 0 2px 6px rgba(0, 119, 182, 0.35);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cartBadgeBounce {
  0% { transform: scale(1); }
  35% { transform: scale(1.45) rotate(-10deg); }
  70% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.cart-badge.bounce {
  animation: cartBadgeBounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-azul {
  background: linear-gradient(135deg, var(--azul-marca) 0%, var(--celeste) 100%);
  color: var(--blanco) !important;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-azul:hover {
  background: linear-gradient(135deg, var(--azul-hover) 0%, var(--azul-marca) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.35);
}

.btn-azul:active,
.btn-borde:active,
.btn-verde:active,
.btn-negro:active {
  transform: scale(0.97) !important;
}

.btn-azul i,
.btn-borde i,
.btn-verde i,
.btn-negro i {
  transition: transform 0.2s ease;
}

.btn-azul:hover i,
.btn-borde:hover i,
.btn-verde:hover i,
.btn-negro:hover i {
  transform: translateX(3px);
}

.btn-azul:hover {
  background: linear-gradient(135deg, var(--azul-hover) 0%, var(--azul-marca) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 119, 182, 0.35);
}

.btn-borde {
  background-color: transparent;
  color: var(--oscuro);
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--gris-borde);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-borde:hover {
  border-color: var(--azul-marca);
  color: var(--azul-marca);
  background-color: rgba(0, 180, 216, 0.05);
}

.btn-verde {
  background: linear-gradient(135deg, var(--verde-salud) 0%, #34d399 100%);
  color: var(--blanco) !important;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-verde:hover {
  background: var(--verde-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-negro {
  background-color: var(--oscuro);
  color: var(--blanco) !important;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-negro:hover {
  background-color: #000;
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */
.hero {
  padding: 1rem 0 3rem 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  padding-top: 0.5rem !important;
}

.hero-copy {
  align-self: flex-start;
}

.hero-img {
  margin-top: 0.75rem;
}

.hero-insignia {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 0.6rem !important;
  border-radius: 999px !important;
  max-width: 100%;
  border-color: rgba(3, 105, 161, 0.12) !important;
}

.hero .confianza-item>div {
  min-width: 0;
}

.hero .confianza-item>div>b {
  white-space: nowrap;
}

.hero-estado {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.hero-estado-abierto {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1) !important;
  color: #065f46 !important;
}

.hero-estado-abierto::before,
.hero-estado-cerrado::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
}

.hero-estado-abierto::before {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.hero-estado-cerrado {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.1) !important;
  color: #991b1b !important;
}

.hero-estado-cerrado::before {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.hero-horario-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.hero-horario-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.48) !important;
}

.hero-copy .border-top > div {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-copy .border-top > div:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   BANDA DE BENEFICIOS Y COMPROMISOS (CINTA OSCURA)
   ========================================================================== */
.banda-beneficios-oscura {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.banda-beneficios-oscura .d-flex {
  padding: 0.5rem 0.6rem;
  border-radius: 14px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.banda-beneficios-oscura .d-flex:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.banda-beneficios-oscura .d-flex:hover .beneficio-ico-dark {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: rgba(0, 180, 216, 0.55) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 16px rgba(0, 180, 216, 0.35);
  transform: scale(1.08);
}

.beneficio-ico-dark {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS
   ========================================================================== */
.nosotros-img-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.nosotros-img-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
}

@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); }
  70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nosotros-video-overlay .rounded-circle {
  animation: playPulse 2.2s infinite;
  transition: transform 0.2s ease;
}

.nosotros-video-overlay:hover .rounded-circle {
  transform: scale(1.08);
}

.seccion-nosotros a.btn[href*="#contacto"] {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.seccion-nosotros a.btn[href*="#contacto"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28) !important;
  background-color: #0284c7 !important;
}

.seccion-nosotros a.btn[href*="#contacto"]:hover i {
  transform: translateX(4px);
}

.seccion-nosotros a.btn[href*="#contacto"] i {
  transition: transform 0.2s ease;
}

.seccion-nosotros .col-lg-3 .d-flex {
  padding: 0.6rem 0.75rem;
  border-radius: 14px;
  transition: all 0.22s ease;
}

.seccion-nosotros .col-lg-3 .d-flex:hover {
  background: rgba(241, 245, 249, 0.7);
  transform: translateX(4px);
}

.hero h1 {
  font-size: 3.6rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  font-weight: 900;
}

.hero h1 span {
  color: var(--azul-marca);
  background: linear-gradient(120deg, var(--azul-marca), var(--celeste));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--gris-texto);
  line-height: 1.6;
  max-width: 520px;
}

.hero-img {
  position: relative;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  overflow: visible;
}

.hero-img img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: var(--radio-lg);
  display: block;
  padding: 0.5rem;
  background: #f0f9ff;
}

.horario {
  position: relative;
  width: fit-content;
  max-width: min(320px, 100%);
  margin: 1rem 0 0 auto;
  background-color: var(--oscuro);
  color: var(--blanco);
  padding: 0.7rem 1rem;
  border-radius: var(--radio-md);
  font-size: 0.85rem !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--celeste);
}

.horario i {
  color: var(--celeste);
  margin-right: 6px;
}

.horario hr {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}

.confianza-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--oscuro);
}

.confianza-item i {
  font-size: 1.8rem;
  color: var(--azul-marca);
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-insignia {
    border-radius: 1.25rem !important;
  }

  .hero-copy {
    align-self: auto;
  }

  .hero-img img {
    height: 320px;
  }

  .hero-img {
    margin-top: 0.5rem;
  }

  .horario {
    position: static;
    margin: 0.75rem 0 0 auto;
  }
}

@media (max-width: 575.98px) {
  .hero-insignia {
    width: fit-content;
    padding: 0.4rem 0.55rem !important;
  }

}

/* ==========================================================================
   CARDS DE PRODUCTOS DESTACADOS & CATÁLOGO
   ========================================================================== */
.card-producto {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-md);
  padding: 1.2rem;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--sombra-sm);
}

.card-producto:hover {
  border-color: var(--celeste);
  box-shadow: var(--sombra-lg);
  transform: translateY(-4px);
}

.card-producto .badge-categoria {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--azul-marca);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-producto .badge-receta {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}

.card-producto .img-container {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  background: radial-gradient(circle, #ffffff 0%, var(--gris-fondo) 100%);
  border-radius: var(--radio-sm);
  padding: 15px;
  margin-top: 18px;
  position: relative;
}

.card-producto .img-container img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card-producto:hover .img-container img {
  transform: scale(1.06);
}

.card-producto .info-producto {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-producto h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.card-producto h3 a {
  color: var(--oscuro);
  text-decoration: none;
  transition: color 0.2s;
}

.card-producto h3 a:hover {
  color: var(--azul-marca);
}

.card-producto .desc {
  font-size: 0.82rem;
  color: var(--gris-texto);
  line-height: 1.4;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-producto .precio {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--azul-marca);
}

.card-producto .btn-add {
  background-color: var(--gris-fondo);
  color: var(--oscuro);
  border: 1px solid var(--gris-borde);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-producto .btn-add:hover {
  background-color: var(--azul-marca);
  border-color: var(--azul-marca);
  color: var(--blanco);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.card-producto .btn-add:active {
  transform: scale(0.95);
}

.card-producto .btn-add.btn-agregado-exito {
  background-color: var(--verde-salud) !important;
  border-color: var(--verde-salud) !important;
  color: var(--blanco) !important;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

/* ==========================================================================
   CATEGORÍAS VISUALES
   ========================================================================== */
.card-cat {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 18px;
  padding: 1.3rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--oscuro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--sombra-sm);
  position: relative;
  overflow: hidden;
}

.card-cat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card-cat:hover {
  border-color: var(--celeste);
  transform: translateY(-5px);
  box-shadow: 0 12px 28px -4px rgba(0, 119, 182, 0.15), 0 4px 10px -2px rgba(0, 119, 182, 0.05);
  color: var(--azul-marca);
}

.card-cat:hover::before {
  opacity: 1;
}

.card-cat .cat-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.14), rgba(0, 119, 182, 0.08));
  color: var(--azul-marca);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.card-cat:hover .cat-ico {
  background: linear-gradient(135deg, var(--azul-marca), var(--celeste));
  color: var(--blanco);
  transform: rotate(6deg) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 119, 182, 0.3);
}

.card-cat span {
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.card-cat small {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SERVICIOS FARMACÉUTICOS
   ========================================================================== */
.card-servicio {
  background: var(--blanco);
  border: 1px solid var(--gris-borde);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  box-shadow: var(--sombra-sm);
}

.card-servicio:hover {
  border-color: var(--celeste);
  box-shadow: 0 14px 30px -4px rgba(0, 119, 182, 0.12);
  transform: translateY(-5px);
}

.card-servicio .ico-serv {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* Banner de Receta Médica por WhatsApp */
.banner-receta {
  background: linear-gradient(135deg, #0a2540 0%, #0077b6 100%);
  border-radius: var(--radio-lg);
  color: var(--blanco);
  padding: 3rem 2.5rem;
  box-shadow: var(--sombra-lg);
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS & BENEFICIOS
   ========================================================================== */
#nosotros {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.video-box {
  position: relative;
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-md);
  background: #1e293b;
  min-height: 340px;
}

.video-box img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.video-box .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: var(--blanco);
}

.beneficio {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.beneficio .ico.claro {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background-color: rgba(0, 180, 216, 0.12);
  color: var(--azul-marca);
  border-radius: 50%;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.beneficio b {
  font-size: 0.95rem;
  color: var(--oscuro);
  display: block;
  margin-bottom: 2px;
}

.beneficio small {
  color: var(--gris-texto);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ==========================================================================
   CONTACTO Y MAPA
   ========================================================================== */
.ico-contacto {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 180, 216, 0.12);
  color: var(--azul-marca);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.mapa-contenedor {
  border-radius: var(--radio-md);
  overflow: hidden;
  border: 1px solid var(--gris-borde);
  background-color: var(--gris-fondo);
}

.mapa-contenedor iframe {
  display: block;
}

.tarjeta-contacto {
  background-color: var(--blanco);
  border-radius: var(--radio-lg);
  border: 1px solid var(--gris-borde);
  box-shadow: var(--sombra-md);
}

.tarjeta-contacto .form-control {
  border-radius: 10px;
  border: 1px solid var(--gris-borde);
  padding: 0.75rem 1rem;
}

.tarjeta-contacto .form-control:focus {
  border-color: var(--celeste);
  box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.18);
}

#inicio,
#categorias,
#productos,
#servicios,
#promociones,
#receta,
#ubicacion,
#contacto,
#nosotros,
.seccion-ubicacion,
.seccion-contacto {
  scroll-margin-top: 85px;
}

.contacto-acciones {
  display: grid;
  gap: 10px;
}

.contacto-accion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-md);
  color: var(--oscuro);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-accion:hover,
.contacto-ubicacion:hover {
  transform: translateY(-1px);
  border-color: var(--celeste);
  box-shadow: var(--sombra-md);
}

.contacto-icono,
.contacto-ubicacion-icono,
.contacto-formulario-icono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 119, 182, 0.1);
  color: var(--azul-marca);
  font-size: 1.15rem;
}

.contacto-icono-whatsapp {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.contacto-accion>span:nth-child(2),
.contacto-horario>span {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contacto-accion small,
.contacto-ubicacion-texto small {
  color: var(--gris-texto);
  font-size: 0.75rem;
}

.contacto-accion strong,
.contacto-ubicacion-texto strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.contacto-flecha {
  color: var(--gris-texto);
}

.contacto-ubicacion {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--gris-borde);
  border-radius: var(--radio-md);
  background: linear-gradient(115deg, #f0f9ff 0%, #f0fdfa 100%);
  color: var(--oscuro);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contacto-ubicacion-icono {
  background: #fff;
  color: var(--azul-marca);
}

.contacto-ubicacion-texto {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contacto-ubicacion-texto>span {
  color: var(--gris-texto);
  font-size: 0.76rem;
}

.contacto-indicaciones {
  flex: 0 0 auto;
  color: var(--azul-marca);
  font-size: 0.77rem;
  font-weight: 700;
}

.contacto-horario {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 3px;
  color: var(--azul-marca);
}

.contacto-horario>span {
  color: var(--oscuro);
}

.contacto-horario small {
  margin-top: 2px;
  color: var(--gris-texto);
  font-size: 0.75rem;
  line-height: 1.45;
}

.contacto-formulario {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.contacto-formulario-cabecera {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 1.5rem;
}

.contacto-formulario-icono {
  width: 48px;
  height: 48px;
  background: var(--azul-marca);
  color: #fff;
}

.contacto-formulario .form-label {
  margin-bottom: 0.45rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.contacto-formulario .form-control {
  min-height: 48px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.contacto-formulario .form-control::placeholder {
  color: #64748b;
  opacity: 1;
  font-weight: 500;
  font-size: 0.92rem;
}

.contacto-formulario .form-control:hover {
  border-color: #94a3b8;
}

.contacto-formulario .form-control:focus {
  border-color: #0077b6;
  box-shadow: 0 0 0 3.5px rgba(0, 119, 182, 0.18);
  color: #0f172a;
}

.contacto-formulario textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contacto-enviar {
  min-height: 48px;
  padding-inline: 1.5rem;
  border-radius: 10px;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .contacto-ubicacion {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .contacto-indicaciones {
    margin-left: 54px;
  }
}

/* ==========================================================================
   CARRITO Y CHECKOUT (PEDIDO)
   ========================================================================== */
.tarjeta {
  background-color: var(--blanco);
  border-radius: var(--radio-md);
  border: 1px solid var(--gris-borde);
  box-shadow: var(--sombra-sm);
  padding: 1.5rem;
}

.tabla-carrito th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gris-texto);
  border-top: none;
}

.tabla-carrito td {
  vertical-align: middle;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gris-borde);
  border-radius: 30px;
  overflow: hidden;
}

.qty-control form {
  display: flex;
  margin: 0;
}

.qty-control button,
.qty-control a {
  background: var(--gris-fondo);
  border: none;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oscuro);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-control button:hover,
.qty-control a:hover {
  background: #e2e8f0;
}

.qty-control button:disabled {
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.65;
}

.qty-control span {
  padding: 0 10px;
  font-weight: 700;
  font-size: 1rem;
}

/* Toast flotante para notificaciones */
#toast-notif {
  position: fixed;
  bottom: 96px;
  right: 28px;
  background: #0f172a;
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transform: translateY(140%) scale(0.95);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 380px;
}

#toast-notif.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 575.98px) {
  #toast-notif {
    bottom: 84px;
    right: 16px;
    left: 16px;
    max-width: none;
    padding: 0.85rem 1.15rem;
  }
}

/* ==========================================================================
   PANEL ADMINISTRATIVO (SIGF) - SISTEMA DE DISEÑO MODERNO & RESPONSIVO
   ========================================================================== */
body.admin {
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  display: block;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modo oscuro integral para todo el panel administrativo */
html.admin-dark body.admin,
[data-bs-theme="dark"] body.admin {
  --bs-body-color: #f1f5f9;
  --bs-body-bg: #0b1117;
  --bs-border-color: #273449;
  background-color: #0b1117;
  color: #f1f5f9;
}

body.admin.admin-dark {
  background-color: #0b1117;
}

/* Tipografía y jerarquía en modo oscuro */
html.admin-dark body.admin .text-dark:not(.badge):not(.alert-warning *):not(.btn-warning *):not(.btn-light *) {
  color: #f8fafc !important;
}

html.admin-dark body.admin h1,
html.admin-dark body.admin h2,
html.admin-dark body.admin h3,
html.admin-dark body.admin h4,
html.admin-dark body.admin h5,
html.admin-dark body.admin h6 {
  color: #f8fafc !important;
}

html.admin-dark body.admin .text-muted {
  color: #94a3b8 !important;
}

html.admin-dark body.admin .text-secondary {
  color: #cbd5e1 !important;
}

/* Tarjetas y superficies */
.panel .card {
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html.admin-dark body.admin .card,
html.admin-dark body.admin .bg-white,
html.admin-dark body.admin .kpi {
  background-color: #162032 !important;
  border-color: #273449 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.45) !important;
}

html.admin-dark body.admin .bg-light,
html.admin-dark body.admin .list-group-item,
html.admin-dark body.admin .dropdown-item {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #273449 !important;
}

html.admin-dark body.admin .hover-card:hover {
  background-color: #1e293b !important;
  border-color: #00b4d8 !important;
  transform: translateY(-2px);
}

/* Bordes generales en modo oscuro */
html.admin-dark body.admin .border,
html.admin-dark body.admin .border-top,
html.admin-dark body.admin .border-bottom,
html.admin-dark body.admin .border-start,
html.admin-dark body.admin .border-end {
  border-color: #273449 !important;
}

html.admin-dark body.admin .card-header,
html.admin-dark body.admin .card-footer,
html.admin-dark body.admin .modal-header,
html.admin-dark body.admin .modal-footer {
  border-color: #273449 !important;
}

/* Tablas de alta legibilidad en modo oscuro */
html.admin-dark body.admin .table {
  --bs-table-bg: transparent;
  --bs-table-color: #e2e8f0;
  --bs-table-border-color: #273449;
  color: #e2e8f0;
}

html.admin-dark body.admin thead.table-light th,
html.admin-dark body.admin .table-light {
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #273449 !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

html.admin-dark body.admin .table td,
html.admin-dark body.admin .table th {
  border-color: #273449 !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

html.admin-dark body.admin .table-hover > tbody > tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #f8fafc !important;
}

/* Solución de contraste en insignias (Badges) */
.badge {
  letter-spacing: 0.3px;
  font-weight: 600;
}

html.admin-dark body.admin .badge.bg-warning,
html.admin-dark body.admin .badge.bg-warning.text-dark {
  background-color: #f59e0b !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.admin-dark body.admin .badge.bg-light.text-dark {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

html.admin-dark body.admin .badge.bg-light.text-primary {
  background-color: rgba(0, 180, 216, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(0, 180, 216, 0.3) !important;
}

html.admin-dark body.admin .badge.bg-light.text-muted {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

/* Controles de formulario e inputs */
html.admin-dark body.admin .form-control,
html.admin-dark body.admin .form-select,
html.admin-dark body.admin .input-group-text {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html.admin-dark body.admin .form-control:focus,
html.admin-dark body.admin .form-select:focus {
  background-color: #0f172a !important;
  color: #fff !important;
  border-color: #00b4d8 !important;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25) !important;
}

html.admin-dark body.admin input[type="date"],
html.admin-dark body.admin input[type="time"],
html.admin-dark body.admin input[type="datetime-local"] {
  color-scheme: dark !important;
}

html.admin-dark body.admin .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

html.admin-dark body.admin .form-control::placeholder {
  color: #64748b !important;
}

html.admin-dark body.admin .form-check-input {
  background-color: #0f172a;
  border-color: #475569;
}

html.admin-dark body.admin .form-check-input:checked {
  background-color: #0077b6;
  border-color: #0077b6;
}

html.admin-dark body.admin .form-label {
  color: #cbd5e1 !important;
}

/* Modales en modo oscuro */
html.admin-dark body.admin .modal-content {
  background-color: #162032 !important;
  border: 1px solid #273449 !important;
  color: #f1f5f9 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

html.admin-dark body.admin .modal-header,
html.admin-dark body.admin .modal-footer {
  background-color: #162032 !important;
  border-color: #273449 !important;
}

html.admin-dark body.admin .modal-footer.bg-light {
  background-color: #0f172a !important;
}

html.admin-dark body.admin .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 0.85;
}

html.admin-dark body.admin .btn-close:hover {
  opacity: 1;
}

/* Acordeón y menús desplegables */
html.admin-dark body.admin .accordion-item,
html.admin-dark body.admin .accordion-button,
html.admin-dark body.admin .dropdown-menu {
  background-color: #162032 !important;
  color: #f1f5f9 !important;
  border-color: #273449 !important;
}

html.admin-dark body.admin .accordion-button:not(.collapsed) {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}

/* Gráfico de Dona corregido para modo oscuro */
html.admin-dark .dona::before {
  background: #162032 !important;
}

html.admin-dark .dona span {
  color: #f8fafc !important;
}

html.admin-dark .dona span small {
  color: #94a3b8 !important;
}

/* ==========================================================================
   CABECERA SUPERIOR MÓVIL (< 992px)
   ========================================================================== */
.admin-topbar-movil {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  z-index: 1010;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

html.admin-dark .admin-topbar-movil {
  background: #0b1117;
  border-bottom-color: #1e293b;
}

.btn-theme-movil,
.btn-menu-movil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-theme-movil:hover,
.btn-menu-movil:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Telón / Backdrop para oscurecer la pantalla en móvil */
.lateral-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1015;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lateral-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-abierta-movil {
  overflow: hidden;
}

/* ==========================================================================
   CABECERA SUPERIOR ESCRITORIO (>= 992px)
   ========================================================================== */
.admin-topbar-desktop {
  position: sticky;
  top: 0;
  margin-left: 260px;
  height: 62px;
  padding: 0.75rem 2.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 990;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

html.admin-dark .admin-topbar-desktop {
  background: rgba(11, 17, 23, 0.85);
  border-bottom-color: #1e293b;
  color: #f1f5f9;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

html.admin-dark .topbar-status-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.topbar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme-topbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d5dde7;
  background: #fff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-theme-topbar:hover {
  border-color: #00b4d8;
  color: #0077b6;
  transform: translateY(-1px);
}

html.admin-dark .btn-theme-topbar {
  border-color: #273449;
  background: #162032;
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

html.admin-dark .btn-theme-topbar:hover {
  border-color: #fbbf24;
  color: #fde68a;
}

.btn-topbar-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-topbar-link:hover {
  background: rgba(0, 119, 182, 0.08);
  border-color: #00b4d8;
  color: #0077b6;
}

html.admin-dark .btn-topbar-link {
  border-color: #273449;
  color: #cbd5e1;
}

html.admin-dark .btn-topbar-link:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
}

.topbar-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

html.admin-dark .topbar-user-pill {
  background: #162032;
  border-color: #273449;
}

.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-user-config {
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.topbar-user-config:hover {
  color: #0077b6;
}

html.admin-dark .topbar-user-config:hover {
  color: #38bdf8;
}

/* ==========================================================================
   BARRA LATERAL (SIDEBAR SIGF)
   ========================================================================== */
.lateral {
  width: 260px;
  background-color: #0f172a;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1020;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

html.admin-dark .lateral {
  background-color: #0b1117;
  border-right-color: #1e293b;
}

.sidebar-header {
  padding: 1.25rem 1.15rem 0.65rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo-enlace {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.admin-logo-img {
  display: block;
  width: auto;
  max-width: 180px;
  height: 46px;
  aspect-ratio: 1567 / 412;
  object-fit: contain;
  object-position: left center;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s;
}

.sidebar-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Tarjeta del Administrador en la barra lateral */
.sidebar-user-card {
  margin: 0.5rem 0.85rem 0.85rem 0.85rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.admin-dark .sidebar-user-card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-user-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sidebar-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.35);
  flex-shrink: 0;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.sidebar-user-name {
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.sidebar-user-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.badge-rol-admin {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 180, 216, 0.15);
  color: #38bdf8;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
}

.badge-rol-admin.is-superadmin {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.sidebar-status-online {
  font-size: 0.68rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  line-height: 1.4;
  flex-shrink: 0;
}

.sidebar-status-online .status-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: sidebarPulsoOnline 2s ease-in-out infinite;
}

@keyframes sidebarPulsoOnline {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.05); }
}

/* Botón rápido de cerrar sesión en la tarjeta del administrador */
.sidebar-user-logout-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  margin-left: auto;
}

.sidebar-user-logout-btn:hover,
.sidebar-user-logout-btn:focus-visible {
  color: #fff;
  background: #dc2626;
  border-color: #ef4444;
  transform: scale(1.05);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar-status-online .status-dot { animation: none; }
}

/* Enlaces del menú del sidebar */
.sidebar-nav {
  padding: 0.25rem 0.65rem;
  flex-grow: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-section-title {
  padding: 0.65rem 0.85rem 0.25rem 0.85rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-weight: 700;
  color: #64748b;
}

.sidebar-links-group {
  margin-bottom: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.52rem 0.85rem;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 3px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-link i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateX(3px);
}

.sidebar-link:hover i {
  color: #38bdf8;
}

.sidebar-link.on {
  background: linear-gradient(135deg, var(--azul-marca, #0077b6), var(--celeste, #00b4d8));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.sidebar-link.on i {
  color: #fff;
}

/* Pie del sidebar */
.sidebar-footer {
  padding: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-theme-switch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-theme-switch:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 180, 216, 0.4);
  color: #fff;
}

.theme-switch-indicator {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #334155;
  transition: background-color 0.25s ease;
}

.theme-switch-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-switch-indicator.is-dark {
  background: #0077b6;
}

.theme-switch-indicator.is-dark::after {
  transform: translateX(16px);
  background: #fbbf24;
}

.sidebar-btn-publico {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.sidebar-btn-publico:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.sidebar-btn-salir {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.45rem 0.85rem;
  color: #f87171;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sidebar-btn-salir:hover {
  color: #ef4444;
}

/* ==========================================================================
   ÁREA DE CONTENIDO PRINCIPAL (PANEL)
   ========================================================================== */
.panel {
  margin-left: 260px;
  flex-grow: 1;
  padding: 2rem 2.25rem 3rem 2.25rem;
  min-width: 0;
  transition: padding 0.2s ease, opacity 0.16s ease, transform 0.16s ease;
}

@media (max-width: 991.98px) {
  body.admin {
    display: block;
  }

  .admin-topbar-desktop {
    display: none !important;
  }

  .lateral {
    transform: translateX(-100%);
  }

  .lateral.show {
    transform: translateX(0);
  }

  .panel {
    margin-left: 0;
    padding: 1.85rem 1rem 2.5rem 1rem;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .panel {
    padding-top: 2.15rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .panel h1.h3 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}

/* Indicadores KPI */
.dashboard-kpi-row > [class*="col-"] {
  display: flex;
}

.kpi {
  background: var(--blanco);
  border-radius: var(--radio-md);
  padding: 1.25rem;
  border: 1px solid var(--gris-borde);
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 140px;
  gap: 16px;
  box-shadow: var(--sombra-sm);
  transition: transform 0.2s;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.kpi-contenido {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 100%;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.kpi-contenido > strong {
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.kpi-contenido > small {
  color: var(--gris-texto);
  line-height: 1.4;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
  .kpi {
    padding: 1rem 1.15rem;
    min-height: auto;
    gap: 14px;
  }
  .kpi .ico {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
  .kpi-contenido strong {
    font-size: 0.88rem;
  }
  .kpi-contenido small {
    font-size: 0.8rem;
    line-height: 1.35;
  }
}

/* Tablas con scroll horizontal fluido en móvil */
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .table-responsive > .table {
    min-width: 680px;
  }
}

@media (max-width: 576px) {
  input[name="q"]::placeholder {
    font-size: 0.82rem;
  }
}

.kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-md);
}

.kpi .ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kpi.c1 .ico {
  background: rgba(0, 119, 182, 0.12);
  color: var(--azul-marca);
}

.kpi.c2 .ico {
  background: rgba(16, 185, 129, 0.12);
  color: var(--verde-salud);
}

.kpi.c3 .ico {
  background: rgba(245, 158, 11, 0.12);
  color: var(--naranja-aviso);
}

.kpi.c4 .ico {
  background: rgba(239, 68, 68, 0.12);
  color: var(--rojo-alerta);
}

html.admin-dark .kpi.c1 .ico,
[data-bs-theme="dark"] .kpi.c1 .ico {
  background: rgba(0, 180, 216, 0.18) !important;
  color: #38bdf8 !important;
}

html.admin-dark .kpi.c2 .ico,
[data-bs-theme="dark"] .kpi.c2 .ico {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #34d399 !important;
}

html.admin-dark .kpi.c3 .ico,
[data-bs-theme="dark"] .kpi.c3 .ico {
  background: rgba(129, 140, 248, 0.18) !important;
  color: #a5b4fc !important;
}

html.admin-dark .kpi.c4 .ico,
[data-bs-theme="dark"] .kpi.c4 .ico {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #f87171 !important;
}

/* Gráfico circular de dona */
.dona {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.dona::before {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blanco);
  transition: background-color 0.25s ease;
}

html.admin-dark .dona::before,
[data-bs-theme="dark"] .dona::before {
  background: #162032 !important;
}

.dona span {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.1;
}

html.admin-dark .dona span,
[data-bs-theme="dark"] .dona span {
  color: #f8fafc !important;
}

.dona span small {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--gris-texto);
}

html.admin-dark .dona span small,
[data-bs-theme="dark"] .dona span small {
  color: #94a3b8 !important;
}

/* ==========================================================================
   DISEÑO EXACTO CATÁLOGO FARMACIA EL PUEBLO (COMO LA IMAGEN)
   ========================================================================== */
.catalogo-hero {
  position: relative;
  background: #ffffff;
  padding: 3.5rem 0 2.5rem 0;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

.catalogo-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../../img/hero_catalogo_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.88;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.95) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.95) 100%);
  pointer-events: none;
}

.catalogo-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #64748b;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.6rem;
}

.catalogo-tag::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  background-color: #00b4d8;
  border-radius: 2px;
}

.catalogo-titulo {
  font-size: 3.2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.catalogo-subtitulo {
  font-size: 1rem;
  color: #64748b;
  max-width: 480px;
  line-height: 1.5;
}

/* Sidebar Filtros */
.filtro-search-box {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filtro-search-box:focus-within {
  border-color: #00b4d8;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
  background: #ffffff;
}

.filtro-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 0.88rem;
  color: #0f172a;
}

.filtro-search-box input::placeholder {
  color: #94a3b8;
}

.filtro-search-box .btn-clear-search {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.filtro-search-box .btn-clear-search:hover {
  color: #475569;
}

.filtro-search-box .btn-clear-search.visible {
  display: inline-flex;
}

/* ==========================================================================
   DROPDOWN DE SUGERENCIAS PREDICTIVAS DE BÚSQUEDA (AUTOCOMPLETE)
   ========================================================================== */
.sugerencias-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1055;
  overflow: hidden;
  max-height: 420px;
  display: flex;
  flex-direction: column;
  animation: sugerenciasEntrada 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sugerenciasEntrada {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sugerencias-lista {
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.sugerencia-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}

.sugerencia-item:last-child {
  border-bottom: none;
}

.sugerencia-item:hover,
.sugerencia-item.sugerencia-item-activo {
  background-color: #f0fdfa;
  color: #0369a1;
}

.sugerencia-item:hover .sugerencia-nombre,
.sugerencia-item.sugerencia-item-activo .sugerencia-nombre {
  color: #0284c7;
}

.sugerencia-img-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sugerencia-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.sugerencia-img-box i {
  font-size: 1.25rem;
  color: #0284c7;
}

.sugerencia-info {
  flex-grow: 1;
  min-width: 0;
}

.sugerencia-nombre {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sugerencia-resaltado {
  background-color: #cffafe;
  color: #0891b2;
  font-weight: 800;
  border-radius: 3px;
  padding: 0 2px;
}

.sugerencia-meta {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sugerencia-categoria {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.sugerencia-receta-badge {
  color: #b45309;
  background: #fef3c7;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.sugerencia-precio-box {
  text-align: right;
  flex-shrink: 0;
  margin-left: 8px;
}

.sugerencia-precio {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0284c7;
  display: block;
  line-height: 1.1;
}

.sugerencia-stock {
  font-size: 0.68rem;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.sugerencia-stock.disponible {
  color: #059669;
}

.sugerencia-stock.agotado {
  color: #dc2626;
}

.sugerencias-pie {
  padding: 9px 14px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0284c7;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.sugerencias-pie:hover {
  background-color: #f1f5f9;
  color: #0369a1;
}

.sugerencias-vacio {
  padding: 18px 14px;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
}

.sugerencias-cargando {
  padding: 14px;
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filtro-seccion {
  margin-bottom: 1.85rem;
}

.filtro-header {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.filtro-header i {
  font-size: 0.78rem;
  color: #64748b;
}

/* Radio button Categorías exactamente como en la imagen */
.item-radio-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.35rem;
  cursor: pointer;
  user-select: none;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  transition: background-color 0.18s ease;
}

.item-radio-cat:hover {
  background-color: #f1f5f9;
}

.item-radio-cat input {
  display: none;
}

.item-radio-cat .circulo-radio {
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.item-radio-cat input:checked+.circulo-radio {
  border-color: #00b4d8;
}

.item-radio-cat input:checked+.circulo-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  background-color: #00b4d8;
  border-radius: 50%;
}

.item-radio-cat .texto-cat {
  font-size: 0.88rem;
  color: #4b5563;
  transition: color 0.2s;
}

.item-radio-cat:hover .texto-cat,
.item-radio-cat input:checked~.texto-cat {
  color: #0284c7;
  font-weight: 700;
}

.item-radio-cat .badge-cat-count {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: all 0.18s ease;
}

.item-radio-cat input:checked~.badge-cat-count {
  background-color: #e0f2fe;
  color: #0284c7;
}

/* Checkbox Marcas */
.item-check-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.55rem;
  cursor: pointer;
  user-select: none;
}

.item-check-marca input {
  display: none;
}

.item-check-marca .cuadro-check {
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.item-check-marca input:checked+.cuadro-check {
  background-color: #00b4d8;
  border-color: #00b4d8;
}

.item-check-marca input:checked+.cuadro-check::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}

.item-check-marca .texto-marca {
  font-size: 0.88rem;
  color: #4b5563;
}

/* ==========================================================================
   SLIDER DE PRECIO BIDIRECCIONAL (PREMIUM DOUBLE RANGE SLIDER)
   ========================================================================== */
.precio-badges-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.9rem;
}

.precio-badge-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  flex: 1;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.precio-badge-box:hover {
  background: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.16);
}

.precio-badge-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.precio-badge-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.precio-badge-sep {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Contenedor del slider */
.precio-slider-wrapper {
  position: relative;
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  margin: 0.6rem 0 0.85rem 0;
  user-select: none;
}

/* Pista base (fondo gris suave redondeado) */
.precio-slider-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  pointer-events: none;
}

/* Pista de rango activo (relleno en gradiente cian a azul vibrante) */
.precio-slider-track-fill {
  position: absolute;
  height: 6px;
  left: 0%;
  width: 100%;
  background: linear-gradient(90deg, #00b4d8 0%, #0077b6 100%);
  border-radius: 9999px;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 180, 216, 0.4);
  z-index: 1;
}

/* Inputs tipo range sobrepuestos */
.precio-slider-wrapper input[type="range"] {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  pointer-events: none; /* Los clicks pasan directo a los thumbs */
  -webkit-appearance: none;
  appearance: none;
  z-index: 2;
  outline: none;
  border: none;
}

/* Eliminar pistas nativas en navegadores WebKit y Firefox */
.precio-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
  background: transparent;
  border: none;
  height: 6px;
}

.precio-slider-wrapper input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
  height: 6px;
}

/* Pulgares WebKit (Chrome, Edge, Safari, Opera) */
.precio-slider-wrapper input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #00b4d8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 180, 216, 0.25);
  cursor: grab;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, border-color 0.15s ease;
  margin-top: -7px;
}

.precio-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  border-color: #0077b6;
  box-shadow: 0 0 0 6px rgba(0, 180, 216, 0.2), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.precio-slider-wrapper input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #023e8a;
  box-shadow: 0 0 0 8px rgba(0, 180, 216, 0.28), 0 2px 5px rgba(0, 0, 0, 0.22);
}

/* Pulgares Mozilla Firefox */
.precio-slider-wrapper input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #00b4d8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 180, 216, 0.25);
  cursor: grab;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.precio-slider-wrapper input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.18);
  border-color: #0077b6;
  box-shadow: 0 0 0 6px rgba(0, 180, 216, 0.2), 0 3px 8px rgba(0, 0, 0, 0.18);
}

.precio-slider-wrapper input[type="range"]::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #023e8a;
  box-shadow: 0 0 0 8px rgba(0, 180, 216, 0.28), 0 2px 5px rgba(0, 0, 0, 0.22);
}

/* Botones de Presets Rápidos */
.precio-presets-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.65rem;
}

.btn-precio-preset {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-precio-preset:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.btn-precio-preset.active {
  background: #00b4d8;
  color: #ffffff;
  border-color: #00b4d8;
  box-shadow: 0 2px 6px rgba(0, 180, 216, 0.35);
}

/* Barra Superior de Productos */
.productos-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.productos-topbar h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.productos-topbar small {
  font-size: 0.85rem;
  color: #334155;
  font-weight: 600;
}

.select-ordenar {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  cursor: pointer;
}

.btn-vista {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-vista.activo {
  background-color: #00b4d8;
  color: #ffffff;
}

.btn-vista:not(.activo) {
  background-color: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   BARRA HORIZONTAL DESLIZANTE DE CATEGORÍAS (PILLS CAROUSEL)
   ========================================================================== */
.catalogo-category-pills-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.catalogo-category-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 180, 216, 0.35) transparent;
}

.catalogo-category-pills::-webkit-scrollbar {
  height: 5px;
}

.catalogo-category-pills::-webkit-scrollbar-track {
  background: transparent;
}

.catalogo-category-pills::-webkit-scrollbar-thumb {
  background: rgba(203, 213, 225, 0.7);
  border-radius: 10px;
}

.catalogo-category-pills::-webkit-scrollbar-thumb:hover {
  background: #00b4d8;
}

.pill-categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.52rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  user-select: none;
  flex-shrink: 0;
}

.pill-categoria i {
  font-size: 1rem;
  color: #0284c7;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pill-categoria .pill-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.pill-categoria:hover {
  border-color: #00b4d8;
  color: #0284c7;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
}

.pill-categoria:hover i {
  transform: scale(1.1);
}

.pill-categoria.activo {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.35);
  transform: translateY(-2px);
}

.pill-categoria.activo i {
  color: #ffffff;
}

.pill-categoria.activo .pill-cat-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* ==========================================================================
   CHIPS DE FILTROS ACTIVOS
   ========================================================================== */
.filtros-activos-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.65rem 1rem;
  margin-bottom: 1.25rem;
  animation: fadeInDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filtros-activos-label {
  color: #475569;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.chip-filtro {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  padding: 0.3rem 0.55rem 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.18s ease;
}

.chip-filtro:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.chip-filtro .chip-remove {
  background: transparent;
  border: none;
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.chip-filtro .chip-remove:hover {
  background: #ef4444;
  color: #ffffff;
}

.btn-limpiar-filtros {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.18s ease;
}

.btn-limpiar-filtros:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Contenedor de Cuadrícula de Productos */
#productosGrid {
  min-height: 520px;
  position: relative;
  transition: opacity 0.18s ease;
}

/* ==========================================================================
   TARJETA DE PRODUCTO MODERNA (CARD EXACTA)
   ========================================================================== */
.card-exacta {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 1.15rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-exacta:hover {
  border-color: rgba(0, 180, 216, 0.5);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(0, 180, 216, 0.12);
  transform: translateY(-4px);
}

/* Badge flotante de receta médica */
.card-exacta .badge-card-receta {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Botón flotante de favoritos */
.card-exacta .btn-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.card-exacta .btn-fav:hover {
  color: #ef4444;
  background: #ffffff;
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.card-exacta .btn-fav.activo {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
  animation: heartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Caja de Imagen */
.card-exacta .img-mockup-box {
  height: 145px;
  background: radial-gradient(circle, #ffffff 40%, #f8fafc 100%);
  border: 1px solid rgba(241, 245, 249, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 0.85rem;
  margin-top: 6px;
  transition: background-color 0.25s ease;
  text-decoration: none;
}

.card-exacta .img-mockup-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-exacta:hover .img-mockup-box img {
  transform: scale(1.08);
}

/* Columna de info */
.card-exacta .card-info-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.card-exacta .card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.card-exacta .categoria-tag {
  font-size: 0.74rem;
  color: #0284c7;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-exacta .marca-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.card-exacta .nombre-prod {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-exacta .nombre-prod a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-exacta .nombre-prod a:hover {
  color: #0077b6;
}

.card-exacta .presentacion-tag {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-exacta .card-desc-snippet {
  display: none;
}

/* Badges de Stock */
.badge-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.badge-stock-pill.in-stock {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.badge-stock-pill.low-stock {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-stock-pill.out-of-stock {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Footer de la tarjeta con precio y botón */
.card-exacta-footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.card-exacta .precio-wrap {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-bottom: 0.15rem;
}

.card-exacta .precio-cyan {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0077b6;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0;
}

.card-exacta .btn-agregar-cyan {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
  text-decoration: none;
}

.card-exacta .btn-agregar-cyan:hover:not(:disabled) {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.35);
}

.card-exacta .btn-agregar-cyan:active:not(:disabled) {
  transform: scale(0.97);
}

.card-exacta .btn-agregar-cyan:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.card-exacta .btn-agregar-cyan.btn-agregado-exito {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
  transform: scale(1.02);
}

/* ==========================================================================
   VISTA EN LISTA (CATALOGO-LISTA)
   ========================================================================== */
.catalogo-lista .producto-card-col {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.catalogo-lista .card-exacta {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.4rem;
  min-height: auto;
}

.catalogo-lista .card-exacta .img-mockup-box {
  width: 130px;
  min-width: 130px;
  height: 125px;
  margin: 0;
  flex-shrink: 0;
}

.catalogo-lista .card-exacta .card-info-col {
  flex: 1 1 auto;
  min-width: 0;
}

.catalogo-lista .card-exacta .nombre-prod {
  font-size: 1.08rem;
  min-height: auto;
  margin-bottom: 0.35rem;
  white-space: normal;
}

.catalogo-lista .card-exacta .presentacion-tag {
  margin-bottom: 0.35rem;
}

.catalogo-lista .card-exacta .card-desc-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}

.catalogo-lista .card-exacta-footer {
  width: 180px;
  min-width: 180px;
  border-top: none;
  border-left: 1px solid #f1f5f9;
  padding-top: 0;
  padding-left: 1.25rem;
  margin-top: 0;
  justify-content: center;
  align-items: stretch;
}

.catalogo-lista .card-exacta .precio-cyan {
  font-size: 1.45rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.catalogo-lista .card-exacta .precio-wrap {
  justify-content: center;
}

@media (max-width: 767.98px) {
  .catalogo-lista .card-exacta {
    flex-direction: column;
    padding: 1rem;
    gap: 0.85rem;
  }
  .catalogo-lista .card-exacta .img-mockup-box {
    width: 100%;
    height: 130px;
  }
  .catalogo-lista .card-exacta-footer {
    width: 100%;
    min-width: 0;
    border-left: none;
    border-top: 1px solid #f1f5f9;
    padding-left: 0;
    padding-top: 0.65rem;
  }
  .catalogo-lista .card-exacta .precio-cyan {
    text-align: left;
  }
  .catalogo-lista .card-exacta .precio-wrap {
    justify-content: flex-start;
  }
}

#clienteAuthModal .cliente-auth-dialog {
  max-width: 560px;
}

#clienteAuthModal .cliente-auth-card {
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
}

#clienteAuthModal .cliente-auth-body {
  position: relative;
  padding: 28px 32px 22px;
}

#clienteAuthModal .cliente-auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
}

#clienteAuthModal .cliente-auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 14px;
  line-height: 1;
}

#clienteAuthModal .cliente-auth-logo {
  display: block;
  width: 200px;
  max-width: 70%;
  height: auto;
}

#clienteAuthModal .cliente-auth-title {
  margin: 0;
  color: #111827;
  font-size: 1.75rem;
  font-weight: 850;
  text-align: center;
}

#clienteAuthModal .cliente-auth-title span {
  color: var(--azul-marca);
}

#clienteAuthModal .cliente-auth-subtitle {
  max-width: 330px;
  margin: 4px auto 18px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

#clienteAuthModal .cliente-auth-label {
  display: block;
  margin-bottom: 4px;
  color: #1f2937;
  font-size: 0.7rem;
  font-weight: 700;
}

#clienteAuthModal .cliente-auth-label>span {
  color: #dc2626;
}

#clienteAuthModal .cliente-auth-label small {
  color: #64748b;
  font-weight: 500;
}

#clienteAuthModal .cliente-auth-input {
  flex-wrap: nowrap;
}

#clienteAuthModal .cliente-auth-input .input-group-text,
#clienteAuthModal .cliente-auth-input .form-control {
  min-width: 0;
  min-height: 38px;
  border-color: #dfe3e8;
  background: #fff;
  color: #475569;
  font-size: 0.74rem;
}

#clienteAuthModal .cliente-auth-input .input-group-text {
  padding: 0 9px;
}

#clienteAuthModal .cliente-auth-input .input-group-text:first-child {
  border-right: 0;
  border-radius: 9px 0 0 9px;
}

#clienteAuthModal .cliente-auth-input .form-control {
  border-left: 0;
  padding: 7px 8px;
}

#clienteAuthModal .cliente-auth-input .form-control:focus {
  border-color: #00b4d8;
  box-shadow: none;
}

#clienteAuthModal .cliente-auth-input:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
  border-radius: 9px;
}

#clienteAuthModal .cliente-auth-input:focus-within .input-group-text,
#clienteAuthModal .cliente-auth-input:focus-within .form-control {
  border-color: #00b4d8 !important;
}

#clienteAuthModal .cliente-auth-input .input-group-text:last-child {
  border-left: 0;
  border-radius: 0 9px 9px 0;
}

#clienteAuthModal .cliente-auth-input .form-control:last-child {
  border-radius: 0 9px 9px 0;
}

#clienteAuthModal .cliente-password-toggle {
  cursor: pointer;
}

#clienteAuthModal .cliente-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #64748b;
  font-size: 0.69rem;
  line-height: 1.35;
}

#clienteAuthModal .cliente-auth-consent .form-check-input {
  flex: 0 0 auto;
  margin: 1px 0 0;
}

#clienteAuthModal .cliente-auth-consent .form-check-label {
  margin: 0;
}

#clienteAuthModal .cliente-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: #101315;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#clienteAuthModal .cliente-auth-submit:hover {
  background: #0284c7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3);
}

#clienteAuthModal .cliente-auth-submit:active {
  transform: scale(0.98);
}

#clienteAuthModal .cliente-auth-google-box,
.pedido-google-login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-google-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-google-custom:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.btn-google-custom:active {
  transform: scale(0.98);
}

#clienteAuthModal .cliente-auth-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
  color: #94a3b8;
  font-size: 0.7rem;
}

#clienteAuthModal .cliente-auth-switch::before,
#clienteAuthModal .cliente-auth-switch::after {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

#clienteAuthModal .cliente-auth-footer {
  margin: 0;
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
}

#clienteAuthModal .cliente-auth-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--azul-marca);
  font-weight: 600;
}

@media (max-width: 420px) {
  #clienteAuthModal .cliente-auth-body {
    padding: 26px 20px 20px;
  }

  #clienteAuthModal .cliente-auth-password-field {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #clienteAuthModal .cliente-auth-label {
    font-size: 0.66rem;
  }

  #clienteAuthModal .cliente-auth-input .form-control {
    font-size: 0.68rem;
  }
}

html {
  font-size: 18px;
}

:root {
  --celeste: #007b9a;
  --verde-salud: #047857;
  --verde-hover: #065f46;
  --rojo-alerta: #b91c1c;
}

small,
.small,
.badge,
.btn,
.btn-sm,
.nav-link,
.nav-link-custom,
.list-group-item,
.linea,
.topbar-info,
.topbar-badge,
.logo-texto-secundario,
.horario,
.cart-badge,
.hero-estado,
.horario-footer-item,
.ubicacion-etiqueta,
.ubicacion-boton-texto small,
.ubicacion-mapa-cabecera small,
.ubicacion-mapa-etiqueta,
.promo-vigencia,
.card-producto .badge-categoria,
.card-producto .badge-receta,
.card-producto .desc,
.contacto-accion small,
.contacto-accion strong,
.contacto-ubicacion-texto small,
.contacto-ubicacion-texto strong,
.contacto-ubicacion-texto > span,
.contacto-horario small,
.contacto-indicaciones,
.contacto-formulario .form-label,
.contacto-formulario .form-control,
.tabla-carrito th,
.catalogo-tag,
.filtro-search-box input,
.item-radio-cat .texto-cat,
.item-check-marca .texto-marca,
.select-ordenar,
.card-exacta .categoria-tag,
.card-exacta .presentacion-tag,
.card-exacta .btn-agregar-cyan,
.cliente-auth-subtitle,
.cliente-auth-label,
.cliente-auth-consent,
.cliente-auth-submit,
.cliente-auth-switch,
.cliente-auth-footer,
.dashboard-contacto-horarios,
#clienteAuthModal .cliente-auth-input .form-control {
  font-size: 0.95rem !important;
}

.btn,
button,
.btn-borde,
.btn-azul,
.btn-verde,
.btn-negro,
.navbar .nav-link-custom,
#mobileDrawer [data-nav-key] {
  min-height: 48px;
}

.icon-action {
  min-width: 48px;
  min-height: 48px;
}

.btn-vista {
  width: 48px;
  min-height: 48px;
}

.card-exacta .btn-fav {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
}

.promo-admin-toggle {
  min-height: 48px;
}

.promo-admin-delete {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
}

.bg-dark .text-secondary,
.bg-black .text-secondary {
  color: #adb5bd !important;
}

.btn-azul {
  background: linear-gradient(135deg, #00649a 0%, #005276 100%);
}

.btn-azul:hover {
  background: linear-gradient(135deg, #004f79 0%, #003f61 100%);
}

.btn-verde {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.btn-verde:hover {
  background: #064e3b;
}

.btn-info,
.btn-outline-info {
  color: #073b4c;
}

.btn-info:hover,
.btn-outline-info:hover {
  color: #073b4c;
}

.publico .text-info {
  color: #006b80 !important;
}

.publico .bg-dark .text-info,
.publico .bg-black .text-info {
  color: #49d7e8 !important;
}

.publico .text-success {
  color: #146c43 !important;
}

.publico .bg-dark .text-success,
.publico .bg-black .text-success {
  color: #35c98a !important;
}

.publico .text-danger {
  color: #b02a37 !important;
}

.publico .bg-dark .text-danger,
.publico .bg-black .text-danger {
  color: #ff6b78 !important;
}

.publico .badge.bg-info.text-white {
  color: #073b4c !important;
}

:focus-visible {
  outline: 3px solid #b45309 !important;
  outline-offset: 3px;
  box-shadow: none;
}

.horario {
  max-width: min(290px, calc(100% - 24px));
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.horario>div:first-child {
  margin-bottom: 0.35rem !important;
}

.horario hr {
  margin: 0.35rem 0;
}

.buscador-inicio {
  max-width: 640px;
}

.mapa-google {
  min-height: 300px;
}

.mapa-google iframe {
  border: 0;
  pointer-events: none;
}

.mapa-google:hover iframe,
.mapa-google:focus-within iframe {
  pointer-events: auto;
}

.seccion-ubicacion {
  scroll-margin-top: 90px;
}

.ubicacion-panel {
  height: 100%;
  padding: clamp(1.15rem, 2vw, 1.7rem);
  border: 1px solid #dcecf4;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #f0f9ff 0%, #fff 68%);
  box-shadow: 0 16px 40px rgba(15, 54, 78, 0.09);
}

.ubicacion-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cce7f5;
  border-radius: 999px;
  background: #fff;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.ubicacion-descripcion {
  margin-bottom: 0.9rem;
  color: #526477;
  line-height: 1.65;
}

.ubicacion-dato,
.ubicacion-horario {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-top: 1px solid #dcecf4;
  color: #15263a;
}

.ubicacion-icono,
.ubicacion-mapa-pin {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 1.25rem;
}

.ubicacion-dato strong,
.ubicacion-horario-contenido>strong {
  display: block;
  margin: 0.1rem 0 0.35rem;
  font-size: 1rem;
}

.ubicacion-dato address {
  margin: 0;
  color: #526477;
  font-style: normal;
  line-height: 1.55;
}

.ubicacion-horario-contenido {
  flex: 1;
  min-width: 0;
}

.ubicacion-horario-fila {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.3rem;
  color: #526477;
  line-height: 1.5;
}

.ubicacion-horario-fila span:last-child {
  text-align: right;
}

.ubicacion-boton {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 0.65rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(115deg, #0b83ad 0%, #08739c 48%, #075985 100%);
  box-shadow: 0 10px 24px rgba(3, 105, 161, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 750;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ubicacion-boton-icono,
.ubicacion-boton-flecha {
  display: inline-flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ubicacion-boton-texto {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.2;
}

.ubicacion-boton-texto small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 500;
}

.ubicacion-boton-flecha {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
}

.ubicacion-boton:hover {
  transform: translateY(-2px);
  background: linear-gradient(115deg, #08739c 0%, #06476a 100%);
  box-shadow: 0 14px 28px rgba(3, 105, 161, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ubicacion-boton:hover .ubicacion-boton-icono {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.23);
}

.ubicacion-mapa-panel {
  overflow: hidden;
  padding: 0.65rem;
  border: 1px solid #dcecf4;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 54, 78, 0.12);
}

.ubicacion-mapa-cabecera {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.25rem 0.25rem 0.6rem;
}

.ubicacion-mapa-pin {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.ubicacion-mapa-cabecera>span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.ubicacion-mapa-cabecera strong {
  color: #15263a;
  font-size: 0.95rem;
}

.ubicacion-mapa-cabecera small {
  color: #526477;
}

.ubicacion-mapa-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
}

.ubicacion-mapa {
  aspect-ratio: 2 / 1;
  min-height: 300px;
  overflow: hidden;
  border-radius: 1rem;
  background: #eaf2f6;
}

.ubicacion-mapa iframe {
  border: 0;
}

.promociones-cabecera>.badge {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.tarjeta-promocion {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-left: 5px solid var(--promo-color) !important;
  border-radius: 1.25rem;
  background: linear-gradient(155deg, #fff 0%, #f7fafc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta-promocion:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

.promo-promocion-cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.promo-vigencia {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--promo-color) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--promo-color) 8%, #fff);
  color: var(--promo-color);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.promo-vigencia i {
  font-size: 1rem;
}

.promo-promocion-titulo {
  margin: 0;
  color: #172033;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.35;
}

.promo-promocion-descripcion {
  flex-grow: 1;
  margin: 0 0 0.25rem;
  color: #526174;
  line-height: 1.6;
}

.promo-consulta-disponibilidad {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: auto;
  padding: 0.75rem 2.75rem;
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
}

.promo-consulta-disponibilidad i {
  position: absolute;
  left: 1.1rem;
  font-size: 1.15rem;
}

.promo-consulta-disponibilidad span {
  display: block;
  width: 100%;
  text-align: center;
}

@media (max-width: 575.98px) {
  .ubicacion-mapa-cabecera {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    padding: 0.4rem 0.5rem 0.6rem !important;
    flex-wrap: nowrap !important;
  }

  .ubicacion-mapa-pin {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex-basis: 36px !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
  }

  .ubicacion-mapa-cabecera > span:nth-child(2) {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .ubicacion-mapa-cabecera strong {
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    display: block !important;
  }

  .ubicacion-mapa-cabecera small {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.25 !important;
    color: #64748b !important;
    display: block !important;
  }

  .ubicacion-mapa-etiqueta {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.55rem !important;
    margin-left: 0 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .ubicacion-horario-fila {
    flex-direction: column;
    gap: 0;
  }

  .ubicacion-horario-fila span:last-child {
    text-align: left;
  }

  .tarjeta-promocion {
    padding: 1.25rem;
  }

  .promo-promocion-cabecera {
    justify-content: flex-start;
    gap: 0.5rem 0.75rem;
  }
}

.contacto-horario small {
  display: block;
  margin-top: 0.25rem;
}

.boton-whatsapp-flotante {
  bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
  right: calc(24px + env(safe-area-inset-right, 0px)) !important;
  width: 56px;
  height: 56px;
  font-size: 1.6rem !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45) !important;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
  z-index: 1050 !important;
}

.boton-whatsapp-flotante:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.55) !important;
}

.boton-whatsapp-flotante:active {
  transform: scale(0.95) !important;
}

.dashboard-contacto {
  text-align: center !important;
}

.dashboard-contacto>.bi-hospital {
  display: block;
  margin: 0 auto 0.5rem;
}

.dashboard-contacto-texto,
.dashboard-contacto-texto strong,
.dashboard-contacto-texto span {
  display: block;
  width: 100%;
  text-align: center !important;
}

.dashboard-inventory-card>h5 {
  text-align: center;
}

.dashboard-inventory-card .dona span {
  display: block;
  text-align: center;
  line-height: 1.15;
}

.dashboard-inventory-card .dona span small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem !important;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-inventory-list {
  display: grid;
  gap: 0.65rem;
  line-height: 1.35;
}

.dashboard-inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
}

.dashboard-inventory-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
}

.dashboard-inventory-label .bi {
  flex: 0 0 auto;
  margin-top: 0.4rem;
  font-size: 0.6rem;
}

.dashboard-inventory-item>strong {
  white-space: nowrap;
  text-align: right;
}

.pedido-accion-circular {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  flex: 0 0 48px;
  border-radius: 50% !important;
}

.promo-admin-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.promo-admin-details {
  flex: 1 1 16rem;
  min-width: 0;
}

.promo-admin-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.promo-admin-actions form {
  margin: 0;
}

.promo-admin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-admin-delete {
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

@media (max-width: 575.98px) {
  .promo-admin-item {
    flex-direction: column;
  }

  .promo-admin-actions {
    align-self: flex-end;
  }

  .dashboard-inventory-card {
    padding: 1.25rem !important;
  }

  .dashboard-inventory-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
  }

  .dashboard-inventory-item>strong {
    white-space: normal;
  }
}

/* ==========================================================================
   AJUSTES RESPONSIVOS DEL NAVBAR Y CABECERA (SIN OCULTAR BOTONES ESENCIALES)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .navbar .icon-action {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05) !important;
  }

  .navbar .logo-navbar-img {
    width: auto !important;
    max-width: 137px !important;
    height: 36px !important;
    object-fit: contain !important;
  }

  .navbar .container-fluid {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    gap: 0.35rem !important;
  }

  .navbar .icon-action,
  .navbar .navbar-toggler-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    font-size: 1.15rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .navbar .icon-action:active,
  .navbar .navbar-toggler-btn:active {
    transform: scale(0.92) !important;
    background: #e0f2fe !important;
    color: #0284c7 !important;
    border-color: #bae6fd !important;
  }

  .navbar .navbar-toggler-btn i {
    font-size: 1.35rem !important;
    line-height: 1 !important;
  }

  .navbar .cart-badge {
    top: -3px !important;
    right: -3px !important;
    font-size: 0.65rem !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45) !important;
    border: 2px solid #ffffff !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 375.98px) {
  .navbar .logo-navbar-img {
    max-width: 122px !important;
    height: 32px !important;
  }

  .navbar .container-fluid {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    gap: 0.25rem !important;
  }

  .navbar .navbar-acciones {
    gap: 0.25rem !important;
  }

  .navbar .icon-action,
  .navbar .navbar-toggler-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 1.05rem !important;
    border-radius: 10px !important;
  }

  .navbar .navbar-toggler-btn i {
    font-size: 1.25rem !important;
  }
}

@media (min-width: 1200px) {
  .navbar .navbar-brand {
    flex-shrink: 0;
  }
}

.dashboard-contacto-texto>strong {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.dashboard-contacto-horarios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  color: #334155;
}

.dashboard-contacto-horarios>strong {
  flex-basis: 100%;
}

.dashboard-contacto-horarios>span {
  display: inline-block;
}

.dashboard-contacto a.btn {
  min-height: 48px;
}

.btn-descargar-excel {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid #047857;
  border-radius: 14px;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 7px 18px rgba(4, 120, 87, 0.2);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-descargar-excel:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
  box-shadow: 0 10px 22px rgba(4, 120, 87, 0.28);
  color: #fff !important;
}

.btn-descargar-excel > .bi-file-earmark-spreadsheet {
  font-size: 1.3rem;
}

.btn-descargar-excel .excel-descarga-indicador {
  margin-left: 0.15rem;
  opacity: 0.85;
  font-size: 1.05rem;
}

.btn-descargar-excel:focus-visible {
  outline-color: #b45309 !important;
}

@media (max-width: 575.98px) {
  .btn-descargar-excel {
    flex: 1 1 100%;
  }
}

body.bg-black {
  background-color: #000000 !important;
}

body.bg-black .sitio-footer {
  margin-top: 0 !important;
}

/* ==========================================================================
   SISTEMA DE DISEÑO RESPONSIVO AVANZADO (TABLETS, TELÉFONOS Y COMPUTADORAS)
   FARMACIA EL PUEBLO - PRESERVA DISEÑO DESKTOP Y ELEVA EXPERIENCIA MÓVIL
   ========================================================================== */

/* 1. Base Global y Fijación Permanente del Navbar */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

.navbar.sticky-top {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
}

/* 2. Menú Lateral Móvil (Offcanvas Moderno y Experiencia Enriquecida) */
.mobile-drawer-modern {
  max-width: 330px !important;
  width: 86vw !important;
  border-top-right-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 16px 0 45px rgba(15, 23, 42, 0.16);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  overflow-x: hidden !important;
}

.drawer-header-styled {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 1rem 1.15rem;
}

.drawer-btn-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  opacity: 0.8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-btn-close:hover {
  background-color: #e2e8f0;
  opacity: 1;
  transform: rotate(90deg);
}

.drawer-user-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.drawer-user-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.drawer-guest-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}

.drawer-status-bar {
  background-color: #ffffff;
}

.status-indicator-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-indicator-dot.dot-open {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot-green 2s infinite;
}

.status-indicator-dot.dot-closed {
  background-color: #ef4444;
}

@keyframes pulse-dot-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Lista de navegación interactiva */
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-nav-link {
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  color: #1e293b;
  font-size: 0.93rem;
  font-weight: 600;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav-link:hover {
  background-color: #f8fafc;
  color: #0284c7;
  border-color: #f1f5f9;
}

.drawer-nav-link:active {
  transform: scale(0.98);
  background-color: #f0f9ff;
}

.drawer-nav-link.is-active {
  background-color: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.08);
}

.drawer-nav-link.is-active .drawer-chevron {
  color: #0284c7 !important;
  opacity: 1 !important;
  transform: translateX(3px);
}

.drawer-nav-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-right: 0.85rem;
  transition: transform 0.2s ease;
}

.drawer-nav-link:hover .drawer-nav-icon,
.drawer-nav-link.is-active .drawer-nav-icon {
  transform: scale(1.08);
}

.drawer-nav-icon.icon-blue {
  background-color: #e0f2fe;
  color: #0284c7;
}

.drawer-nav-icon.icon-cyan {
  background-color: #cffafe;
  color: #0891b2;
}

.drawer-nav-icon.icon-amber {
  background-color: #fef3c7;
  color: #d97706;
}

.drawer-nav-icon.icon-rose {
  background-color: #ffe4e6;
  color: #e11d48;
}

.drawer-nav-icon.icon-emerald {
  background-color: #dcfce7;
  color: #16a34a;
}

.drawer-nav-icon.icon-purple {
  background-color: #f3e8ff;
  color: #7c3aed;
}

.drawer-chevron {
  color: #94a3b8;
  font-size: 0.82rem;
  margin-left: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.55;
}

.drawer-nav-link:hover .drawer-chevron {
  opacity: 1;
  transform: translateX(3px);
}

.drawer-footer-styled {
  background-color: #f8fafc;
  border-color: #e2e8f0 !important;
}

/* 3. Botón de Filtros para Móvil / Tablet en Catálogo */
.btn-filtros-mobile {
  border-radius: 10px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-color: #cbd5e1;
  color: #1e293b;
  background-color: #ffffff;
}

.btn-filtros-mobile:hover,
.btn-filtros-mobile:active {
  background-color: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Sidebar de Filtros Fija y Ergonómica en Desktop (>= 992px) */
@media (min-width: 992px) {
  .catalogo-filtros-sidebar {
    position: sticky;
    top: 85px;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 180, 216, 0.35) transparent;
    padding-right: 0.65rem;
  }

  .catalogo-filtros-sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .catalogo-filtros-sidebar::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.7);
    border-radius: 6px;
  }
}

/* Drawer de Filtros en Móvil y Tablet */
@media (max-width: 991.98px) {
  .catalogo-filtros-sidebar.offcanvas-lg {
    max-width: 320px;
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.18);
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .catalogo-filtros-sidebar.offcanvas-lg .offcanvas-body {
    overflow-y: auto;
  }
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.producto-card-col {
  animation: cardFadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.producto-card-col:nth-child(1) { animation-delay: 0.02s; }
.producto-card-col:nth-child(2) { animation-delay: 0.04s; }
.producto-card-col:nth-child(3) { animation-delay: 0.06s; }
.producto-card-col:nth-child(4) { animation-delay: 0.08s; }
.producto-card-col:nth-child(5) { animation-delay: 0.10s; }
.producto-card-col:nth-child(6) { animation-delay: 0.12s; }
.producto-card-col:nth-child(7) { animation-delay: 0.14s; }
.producto-card-col:nth-child(8) { animation-delay: 0.16s; }

/* 4. Vista en Lista del Catálogo (.catalogo-lista) */
.catalogo-lista .producto-card-col {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.catalogo-lista .card-exacta {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem;
}

.catalogo-lista .card-exacta .img-mockup-box {
  width: 120px;
  min-width: 120px;
  height: 110px;
  margin: 0;
  flex-shrink: 0;
}

.catalogo-lista .card-exacta .nombre-prod {
  font-size: 1.05rem;
  min-height: auto;
  margin-bottom: 0.35rem;
  white-space: normal;
}

.catalogo-lista .card-exacta .presentacion-tag {
  margin-bottom: 0.5rem;
}

.catalogo-lista .card-exacta .precio-cyan {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.catalogo-lista .card-exacta .btn-agregar-cyan {
  width: auto;
  padding: 0.55rem 1.5rem;
  margin-top: 0;
}

/* 5. Reglas para Tablets y Teléfonos (< 992px) */
@media (max-width: 991.98px) {
  /* Hero principal en tablets y móviles */
  .hero-modern {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-modern .hero-img-wrapper {
    min-height: 320px !important;
    max-height: 400px !important;
    border-radius: 24px !important;
  }

  .hero-modern .hero-img-wrapper img {
    min-height: 320px !important;
    max-height: 400px !important;
  }

  /* Catálogo hero */
  .catalogo-hero {
    padding: 2.5rem 0 2rem 0;
  }

  .catalogo-titulo {
    font-size: 2.4rem;
  }

  .catalogo-hero-bg {
    width: 70%;
    opacity: 0.3;
  }

  /* Catálogo topbar controles */
  .catalogo-controls {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* 6. Reglas Específicas para Teléfonos y Pantallas Pequeñas (< 768px) */
@media (max-width: 767.98px) {
  /* Inputs y selectores: prevenir zoom automático en iOS/Android */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Hero Moderno en Teléfonos */
  #inicioTitulo {
    font-size: clamp(1.85rem, 6.8vw, 2.4rem) !important;
    line-height: 1.15 !important;
  }

  .hero-copy p {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }

  .hero-modern .hero-img-wrapper {
    min-height: 270px !important;
    max-height: 330px !important;
    border-radius: 20px !important;
  }

  .hero-modern .hero-img-wrapper img {
    min-height: 270px !important;
    max-height: 330px !important;
  }

  /* Tarjeta flotante de horario en móvil */
  .hero-horario-card {
    position: absolute !important;
    bottom: 8px !important;
    right: 8px !important;
    left: 8px !important;
    max-width: calc(100% - 16px) !important;
    margin: 0 !important;
    padding: 0.75rem 0.95rem !important;
    border-radius: 14px !important;
    background: #0f172a !important;
  }

  .hero-horario-card .d-flex.align-items-center.gap-2.mb-3 {
    margin-bottom: 0.35rem !important;
  }

  .hero-horario-card .small.lh-sm {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: space-between !important;
  }

  .hero-horario-card .small.lh-sm .mb-2,
  .hero-horario-card .small.lh-sm .pt-2 {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  /* Banda oscura de compromisos / beneficios */
  .beneficio-ico-dark {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }

  .beneficio-ico-dark i {
    font-size: 1.2rem !important;
  }

  .banda-beneficios-oscura strong {
    font-size: 0.88rem !important;
  }

  .banda-beneficios-oscura span {
    font-size: 0.76rem !important;
  }

  /* Sobre nosotros */
  .seccion-nosotros {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .nosotros-img-card img {
    min-height: 200px !important;
    max-height: 250px !important;
  }

  .nosotros-video-overlay {
    margin: 0.65rem !important;
    padding: 0.65rem 0.85rem !important;
    max-width: calc(100% - 1.3rem) !important;
    border-radius: 14px !important;
  }

  .nosotros-video-overlay .rounded-circle {
    width: 36px !important;
    height: 36px !important;
  }

  .nosotros-video-overlay strong {
    font-size: 0.85rem !important;
  }

  .nosotros-video-overlay span {
    font-size: 0.72rem !important;
  }

  /* Categorías */
  .card-cat {
    padding: 0.95rem 0.5rem;
    border-radius: 14px;
    height: 100%;
  }

  .card-cat .cat-ico {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    border-radius: 12px;
    margin-bottom: 0.45rem;
  }

  .card-cat span {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-cat small {
    font-size: 0.72rem !important;
  }

  /* Tarjetas de productos destacados (grid en móvil) */
  .card-producto {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .card-producto .img-container {
    height: 125px;
    margin-top: 24px;
    margin-bottom: 0.5rem;
    padding: 6px;
  }

  .card-producto .badge-categoria {
    top: 8px;
    left: 8px;
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    max-width: calc(100% - 16px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .card-producto .badge-receta {
    top: 28px;
    left: 8px;
    right: auto;
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .card-producto h3 {
    font-size: 0.88rem;
    line-height: 1.25;
    margin-bottom: 0.25rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-producto .desc {
    display: none;
  }

  .card-producto .precio {
    font-size: 1.15rem;
  }

  .card-producto .btn-add {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 1rem;
  }

  /* Tarjetas del catálogo exacto (.card-exacta en grid móvil) */
  .card-exacta {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .card-exacta .badge-card-receta {
    top: 8px;
    left: 8px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }

  .card-exacta .img-mockup-box {
    height: 115px;
    padding: 6px;
    margin-top: 4px;
    margin-bottom: 0.6rem;
  }

  .card-exacta .categoria-tag {
    font-size: 0.7rem !important;
  }

  .card-exacta .nombre-prod {
    font-size: 0.86rem;
    line-height: 1.25;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
  }

  .card-exacta .presentacion-tag {
    font-size: 0.74rem !important;
    margin-bottom: 0.35rem;
  }

  .card-exacta .badge-stock-pill {
    font-size: 0.68rem;
    padding: 2px 6px;
    margin-bottom: 0.4rem;
  }

  .card-exacta-footer {
    gap: 0.45rem;
    padding-top: 0.35rem;
  }

  .card-exacta .precio-cyan {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .card-exacta .btn-agregar-cyan {
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem !important;
    border-radius: 8px;
  }

  .card-exacta .btn-fav {
    top: 8px;
    right: 8px;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 1rem;
  }

  /* Vista de lista en pantallas pequeñas */
  .catalogo-lista .card-exacta {
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .catalogo-lista .card-exacta .img-mockup-box {
    width: 85px;
    min-width: 85px;
    height: 85px;
  }

  .catalogo-lista .card-exacta .nombre-prod {
    font-size: 0.88rem;
  }

  .catalogo-lista .card-exacta .precio-cyan {
    font-size: 1.15rem;
  }

  .catalogo-lista .card-exacta .btn-agregar-cyan {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem !important;
  }

  /* Banner de receta médica */
  .banner-receta {
    padding: 1.5rem 1.25rem !important;
    border-radius: 18px !important;
    text-align: center;
  }

  .banner-receta h3 {
    font-size: 1.5rem !important;
  }

  .banner-receta p {
    font-size: 0.88rem !important;
  }

  .banner-receta .btn-verde {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem !important;
    font-size: 1rem !important;
  }

  /* Sección de ubicación y contacto */
  .ubicacion-panel,
  .ubicacion-mapa-panel,
  .tarjeta-contacto {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  .ubicacion-boton {
    width: 100%;
    justify-content: center;
  }

  .contacto-acciones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .contacto-accion {
    padding: 0.85rem 1rem !important;
    border-radius: 14px !important;
  }

  .contacto-enviar {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  .mapa-google {
    border-radius: 14px;
    overflow: hidden;
  }

  /* Detalle de producto en móvil */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 6px;
    font-size: 0.8rem;
  }

  .detalle-acciones-compra {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem !important;
  }

  .detalle-acciones-compra .qty-stepper-box {
    flex-shrink: 0;
  }

  .detalle-acciones-compra .btn-detalle-agregar {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detalle-whatsapp-box {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
    text-align: center;
  }

  .detalle-whatsapp-box .btn {
    width: 100%;
  }

  /* TABLA DEL CARRITO RESPONSIVA: Conversión elegante a tarjetas móviles */
  .tabla-carrito thead {
    display: none;
  }

  .tabla-carrito,
  .tabla-carrito tbody,
  .tabla-carrito tr,
  .tabla-carrito td {
    display: block;
    width: 100%;
  }

  .tabla-carrito tr {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    position: relative;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  }

  .tabla-carrito td {
    padding: 0.35rem 0;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .tabla-carrito td.col-cart-producto {
    display: block;
    padding-right: 2.75rem;
    margin-bottom: 0.35rem;
  }

  .tabla-carrito td.col-cart-producto strong {
    font-size: 0.98rem;
  }

  .tabla-carrito td.col-cart-eliminar {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: auto;
    padding: 0;
  }

  .tabla-carrito td.col-cart-cantidad {
    justify-content: space-between;
    margin: 0.35rem 0;
  }

  .tabla-carrito td.col-cart-cantidad::before {
    content: "Cantidad:";
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
  }

  .tabla-carrito td.col-cart-subtotal {
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.6rem;
    margin-top: 0.35rem;
  }

  .tabla-carrito .qty-control button,
  .tabla-carrito .qty-control a {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .tabla-carrito .qty-control span {
    padding: 0 8px;
    font-size: 0.95rem;
  }

  /* Botón WhatsApp flotante en móvil */
  .boton-whatsapp-flotante {
    width: 48px !important;
    height: 48px !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(12px + env(safe-area-inset-right, 0px)) !important;
    font-size: 1.25rem !important;
  }
}

/* 7. Reglas para Teléfonos Estrechos (< 576px) */
@media (max-width: 575.98px) {
  /* Hero botones y confianza */
  .hero-modern .hero-copy .d-flex.align-items-center.gap-3.flex-wrap {
    gap: 0.65rem !important;
  }

  .hero-modern .hero-copy .d-flex.align-items-center.gap-3.flex-wrap .btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1.25rem !important;
  }

  .hero-modern .hero-copy .border-top {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    text-align: center;
  }

  .hero-modern .hero-copy .border-top > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-modern .hero-copy .border-top small,
  .hero-modern .hero-copy .border-top span {
    font-size: 0.72rem !important;
    max-width: 100% !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  .hero-modern .hero-copy .border-top .rounded-circle {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 4px;
  }

  /* Detalle de compra apilado */
  .detalle-acciones-compra {
    flex-direction: column !important;
  }

  .detalle-acciones-compra .qty-stepper-box {
    justify-content: center;
    width: 100%;
  }

  .detalle-acciones-compra .btn-detalle-agregar {
    width: 100%;
  }

  /* Footer en una columna limpia */
  .sitio-footer .col-lg-3 {
    margin-bottom: 1.75rem;
  }

  .sitio-footer .col-lg-3:last-child {
    margin-bottom: 0;
  }

  .footer-logo-contenedor img {
    width: auto;
    max-width: 125px;
    height: 32px;
    object-fit: contain;
    object-position: left center;
  }

  /* Modal de autenticación adaptado a teléfonos */
  #clienteAuthModal .cliente-auth-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #clienteAuthModal .cliente-auth-body {
    padding: 22px 18px 18px;
  }

  #clienteAuthModal .cliente-auth-title {
    font-size: 1.35rem;
  }

  #clienteAuthModal .cliente-auth-subtitle {
    font-size: 0.85rem !important;
  }

  /* Topbar de catálogo en móvil */
  .productos-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    padding: 0.85rem !important;
  }

  .catalogo-topbar-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .catalogo-controls {
    justify-content: space-between !important;
    width: 100%;
    gap: 0.5rem !important;
  }

  .select-ordenar {
    flex: 1 1 auto;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.6rem !important;
  }

  .btn-filtros-mobile {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.75rem !important;
  }

  /* Píldoras de categoría con scroll fluido y padding seguro en móvil */
  .catalogo-category-pills {
    padding: 0.25rem 0.5rem 0.75rem 0.5rem !important;
    scroll-padding: 0.5rem;
    gap: 0.5rem !important;
  }

  .pill-categoria {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.8rem !important;
  }

  /* Tarjetas de catálogo (.card-exacta) en teléfonos estrechos */
  .card-exacta {
    padding: 0.65rem 0.55rem !important;
    border-radius: 14px !important;
  }

  .card-exacta .img-mockup-box {
    height: 105px !important;
    padding: 4px !important;
    margin-top: 2px !important;
    margin-bottom: 0.45rem !important;
  }

  .card-exacta .badge-card-receta {
    top: 6px !important;
    left: 6px !important;
    font-size: 0.58rem !important;
    padding: 1px 5px !important;
  }

  .card-exacta .btn-fav {
    top: 6px !important;
    right: 6px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    font-size: 0.9rem !important;
  }

  .card-exacta .categoria-tag {
    font-size: 0.66rem !important;
  }

  .card-exacta .marca-tag {
    font-size: 0.62rem !important;
    padding: 1px 4px !important;
  }

  .card-exacta .nombre-prod {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    min-height: 2.3em !important;
    margin-bottom: 2px !important;
  }

  .card-exacta .presentacion-tag {
    font-size: 0.68rem !important;
    margin-bottom: 0.25rem !important;
  }

  .card-exacta .badge-stock-pill {
    font-size: 0.62rem !important;
    padding: 1px 5px !important;
    margin-bottom: 0.35rem !important;
  }

  .card-exacta-footer {
    gap: 0.4rem !important;
    padding-top: 0.35rem !important;
  }

  .card-exacta .precio-cyan {
    font-size: 1.05rem !important;
  }

  .card-exacta .btn-agregar-cyan {
    padding: 0.42rem 0.4rem !important;
    font-size: 0.76rem !important;
    gap: 4px !important;
    white-space: nowrap !important;
    border-radius: 9px !important;
  }

  /* Carrito resumen en móvil */
  .col-lg-5 .position-sticky {
    position: static !important;
  }
}

/* Tablas administrativas con acciones compactas */
body.admin .table td.text-end,
body.admin .table th.text-end {
  white-space: nowrap !important;
}

/* ==========================================================================
   BARRA DE PROGRESO SUPERIOR
   ========================================================================== */
#app-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #00b4d8, #38bdf8);
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
  z-index: 999999;
  width: 0%;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.15s ease;
  pointer-events: none;
}

#app-progress-bar.activo {
  opacity: 1;
}