/* ==========================================================================
   JONKUB — ESTILOS DEL CATÁLOGO DE ALTO RENDIMIENTO (EstiloProductos.css)
   Precisión • Rendimiento • Confianza
   ========================================================================== */

.productos-main {
  padding-bottom: 40px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   HERO EDITORIAL DE ALTO IMPACTO
-------------------------------------------------------------------------- */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 24px;
  padding: 36px 32px;
  margin-bottom: 36px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.hero-editorial::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #0B3DFF;
  opacity: 0.08;
  pointer-events: none;
}

.hero-editorial-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(11, 61, 255, 0.1);
  border: 1px solid rgba(11, 61, 255, 0.3);
  color: #0B3DFF;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-editorial h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: #000000;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtext {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: #666666;
  line-height: 1.6;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Botón Carrito Destacado */
.btn-carrito {
  border: 1.5px solid #CCCCCC;
  background: #FFFFFF;
  color: #000000;
  border-radius: 14px;
  padding: 11px 18px;
  min-height: 48px;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-carrito:hover {
  transform: translateY(-2px);
  border-color: #0B3DFF;
  box-shadow: 0 8px 22px rgba(11, 61, 255, 0.22);
}

.btn-carrito:focus-visible {
  outline: 2px solid #0B3DFF;
  outline-offset: 2px;
}

.btn-carrito strong {
  min-width: 26px;
  height: 26px;
  padding-inline: 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0B3DFF;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Botones Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primario {
  background: #0B3DFF;
  color: #ffffff;
}

.btn-primario:hover {
  background: #C40510;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 61, 255, 0.28);
}

.btn-secundario {
  background: #F5F5F5;
  color: #000000;
  border-color: #CCCCCC;
}

.btn-secundario:hover {
  background: #FFFFFF;
  border-color: #0B3DFF;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #000000;
  border: 1.5px solid #CCCCCC;
}

.btn-outline:hover {
  background: #FFFFFF;
  border-color: #000000;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #0B3DFF;
  color: #ffffff;
  font-weight: 800;
}

.btn-whatsapp:hover {
  background: #C40510;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 61, 255, 0.3);
}

.btn-full {
  width: 100%;
}

/* CARDS DE BENEFICIOS CUALITATIVOS EN EL HERO */
.hero-qualities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.quality-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quality-card:hover {
  transform: translateX(4px);
  border-color: rgba(11, 61, 255, 0.4);
}

.quality-number {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #0B3DFF;
  background: rgba(11, 61, 255, 0.12);
  padding: 4px 8px;
  border-radius: 8px;
}

.quality-info h3 {
  font-size: 0.95rem;
  color: #000000;
  margin-bottom: 2px;
}

.quality-info p {
  font-size: 0.84rem;
  color: #666666;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   SECCIÓN EDITORIAL DE PROPUESTA DE VALOR (3 PILARES)
-------------------------------------------------------------------------- */
.editorial-pillars {
  margin-bottom: 44px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #0B3DFF;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title-wrap h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: #000000;
  margin-bottom: 6px;
}

.section-title-wrap p {
  font-size: 0.95rem;
  color: #666666;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 61, 255, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 61, 255, 0.12);
  color: #0B3DFF;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.pillar-card h3 {
  font-size: 1.08rem;
  color: #000000;
}

.pillar-card p {
  font-size: 0.88rem;
  color: #666666;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   SECCIÓN DE CATÁLOGO: BÚSQUEDA Y CATEGORÍAS
-------------------------------------------------------------------------- */
.catalogo-section {
  margin-bottom: 44px;
}

.tools-row {
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #CCCCCC;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #F5F5F5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrap:focus-within {
  border-color: #0B3DFF;
  box-shadow: 0 0 0 3px rgba(11, 61, 255, 0.18);
}

.search-wrap i {
  color: #666666;
  font-size: 1.15rem;
}

.search-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #000000;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  min-width: 0;
}

.search-wrap input::placeholder {
  color: #666666;
}

.categoria-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.categoria-btn {
  border: 1px solid #CCCCCC;
  background: #F5F5F5;
  color: #000000;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}

.categoria-btn:hover {
  background: #FFFFFF;
  border-color: #0B3DFF;
  color: #0B3DFF;
  transform: translateY(-1px);
}

.categoria-btn.activo {
  background: #0B3DFF;
  border-color: #0B3DFF;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 61, 255, 0.28);
}

.categoria-btn:focus-visible {
  outline: 2px solid #0B3DFF;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   CUADRÍCULA DE PRODUCTOS (CARDS PREMIUM)
-------------------------------------------------------------------------- */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   CATÁLOGO FULL-WIDTH: aprovechar todo el ancho disponible de la página.
   El contenedor del catálogo no se limita a 1440px; el área de productos
   ocupa todo el ancho restante después del sidebar.
-------------------------------------------------------------------------- */
.catalogo-section > .container {
  width: 100%;
  max-width: none;
  padding-inline: 20px;
}

/* El <main> global esta limitado a 1180px (EstiloInicio.css). En la pagina
   del catalogo se libera para aprovechar todo el ancho disponible. */
body:not(.admin-shell) main.main-catalogo {
  width: 100%;
  max-width: none;
  padding: 28px 20px 24px;
}

@media (max-width: 600px) {
  .catalogo-section > .container {
    padding-inline: 12px;
  }
}

@media (max-width: 360px) {
  .catalogo-section > .container {
    padding-inline: 8px;
  }
}

/* --------------------------------------------------------------------------
   VISTA EN LISTA
-------------------------------------------------------------------------- */
.productos-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.producto-row {
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.producto-row:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 61, 255, 0.4);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.producto-row-image {
  width: 100px;
  height: 75px;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.producto-row-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.2s ease;
}

.producto-row:hover .producto-row-image img {
  transform: scale(1.05);
}

.producto-row-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.producto-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.producto-row-header h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: #000000;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
}

.producto-row-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.producto-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #666666;
}

.producto-row-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.producto-row-meta strong {
  color: #000000;
}

.producto-row-compat {
  font-size: 0.75rem;
  color: #666666;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-row-compat strong {
  color: #000000;
}

.producto-row-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.producto-row-precio-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.producto-row-precio {
  font-size: 1.1rem;
  font-weight: 800;
  color: #000000;
  font-family: "Sora", sans-serif;
  white-space: nowrap;
}

.producto-row-precio-antiguo {
  font-size: 0.78rem;
  color: #666666;
  text-decoration: line-through;
  white-space: nowrap;
}

.producto-row .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 38px;
  white-space: nowrap;
}

/* Respaldo cuando una imagen remota falla (nunca broken image). */
.producto-image-wrap .placeholder-icon,
.producto-row-image .placeholder-icon {
  font-size: 2rem;
  color: #999999;
}

.thumb-btn .placeholder-icon {
  font-size: 1.1rem;
  color: #999999;
}

/* --------------------------------------------------------------------------
   SELECTOR DE VISTA (TARJETAS / LISTA)
-------------------------------------------------------------------------- */
.catalog-view-toggle .btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.catalog-view-toggle .btn i {
  font-size: 1.1rem;
}

.catalog-view-toggle .btn[aria-pressed="true"] {
  background: #0B3DFF;
  border-color: #0B3DFF;
  color: #ffffff;
}

.catalog-view-toggle .btn[aria-pressed="true"]:hover {
  background: #C40510;
  border-color: #C40510;
}

.catalog-view-toggle .btn:focus-visible {
  outline: 2px solid #0B3DFF;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE - VISTA LISTA
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .producto-row {
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    padding: 10px 12px;
  }
  .producto-row-image {
    width: 80px;
    height: 60px;
  }
  .producto-row-header h3 {
    font-size: 0.95rem;
  }
  .producto-row-precio {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .producto-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }
  .producto-row-image {
    width: 100%;
    height: 120px;
    max-width: 200px;
    margin: 0 auto;
  }
  .producto-row-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .producto-row-meta {
    flex-direction: column;
    gap: 4px;
  }
  .producto-row-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .producto-row-precio-wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
  }
  .producto-row .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .catalog-view-toggle .btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .catalog-view-toggle .btn i {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE AUDITADOS (PROGRESIÓN MONÓTONA)
-------------------------------------------------------------------------- */
.producto-card {
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  min-width: 0;
}

.producto-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 61, 255, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.producto-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #F5F5F5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #CCCCCC;
}

.producto-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.producto-card:hover .producto-main-image {
  transform: scale(1.04);
}

.producto-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-oferta {
  background: rgba(11, 61, 255, 0.15);
  border-color: rgba(11, 61, 255, 0.4);
  color: #0B3DFF;
}

.tag-agotado {
  background: rgba(11, 61, 255, 0.12);
  border-color: rgba(11, 61, 255, 0.3);
  color: var(--red);
}

.producto-body h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  color: #000000;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-brand {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0B3DFF;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-seller {
  font-size: 0.78rem;
  color: #666666;
  font-style: italic;
}

.producto-meta {
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 12px;
  padding: 8px 10px;
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: #666666;
}

.producto-meta p {
  margin: 0;
  line-height: 1.35;
}

.producto-meta strong {
  color: #000000;
}

.producto-compat {
  font-size: 0.78rem;
  color: #666666;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-compat strong {
  color: #000000;
}

.producto-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.thumb-btn {
  border: 1.5px solid #CCCCCC;
  border-radius: 8px;
  background: #FFFFFF;
  padding: 2px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.thumb-btn:hover,
.thumb-btn:focus-visible {
  border-color: #0B3DFF;
  transform: scale(1.05);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Pie de Tarjeta con Alineación Estricta */
.producto-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.producto-precio-wrap {
  display: flex;
  flex-direction: column;
}

.producto-precio {
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  font-family: "Sora", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.producto-precio-antiguo {
  font-size: 0.84rem;
  color: #666666;
  text-decoration: line-through;
}

.producto-foot .btn {
  padding: 9px 15px;
  font-size: 0.88rem;
  min-height: 40px;
}

/* --------------------------------------------------------------------------
   ESTADOS DE CARGA Y VACÍO
-------------------------------------------------------------------------- */
.productos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 20px;
  color: #666666;
  display: grid;
  gap: 12px;
  place-items: center;
}

.productos-empty i {
  font-size: 2.2rem;
  color: #0B3DFF;
}

.productos-empty p {
  font-size: 1rem;
  font-weight: 600;
}

.spinner {
  width: 38px;
  height: 38px;
  border: 3.5px solid rgba(11, 61, 255, 0.25);
  border-top-color: #0B3DFF;
  border-radius: 50%;
  animation: spinRefa 0.75s linear infinite;
  margin: 0 auto;
}

@keyframes spinRefa {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
    PAGINACIÓN
-------------------------------------------------------------------------- */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.pagination-info {
  font-size: 0.85rem;
  color: #666666;
}

.pagination-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-nav .btn {
  min-height: 38px;
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.pagination-nav .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
    BANNER CTA (ASESORÍA TÉCNICA)
-------------------------------------------------------------------------- */
.cta-banner {
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner-content {
  max-width: 68ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0B3DFF;
  background: rgba(11, 61, 255, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.cta-banner h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  color: #000000;
}

.cta-banner p {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   DRAWER DEL CARRITO
-------------------------------------------------------------------------- */
body.cart-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #FFFFFF;
  border-left: 1px solid #CCCCCC;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.28);
  z-index: 3100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.abierto {
  transform: translateX(0);
}

.cart-head {
  padding: 18px 22px;
  border-bottom: 1px solid #CCCCCC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-head-title i {
  font-size: 1.3rem;
  color: #0B3DFF;
}

.cart-head h3 {
  font-size: 1.2rem;
  color: #000000;
}

.icon-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  border: 1px solid #CCCCCC;
  background: #FFFFFF;
  color: #000000;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: #F5F5F5;
  border-color: #0B3DFF;
}

.icon-btn:focus-visible {
  outline: 2px solid #0B3DFF;
  outline-offset: 2px;
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: grid;
  gap: 12px;
  align-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

.cart-item {
  background: #F5F5F5;
  border: 1px solid #CCCCCC;
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-header h4 {
  font-size: 0.95rem;
  color: #000000;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #666666;
}

.qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #CCCCCC;
  border-radius: 10px;
  background: #FFFFFF;
  padding: 2px 4px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #000000;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #F5F5F5;
}

.qty-num {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #000000;
}

.btn-remove-item {
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  font-size: 1.15rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.btn-remove-item:hover {
  background: rgba(11, 61, 255, 0.12);
}

.cart-footer {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #CCCCCC;
  display: grid;
  gap: 10px;
  background: #FFFFFF;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  color: #000000;
}

.cart-total-row strong {
  font-size: 1.35rem;
  color: #0B3DFF;
  font-family: "Sora", sans-serif;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   FOOTER MEJORAS
-------------------------------------------------------------------------- */
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 6px;
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0B3DFF;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 4px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(204, 204, 204, 0.6);
  text-align: center;
  font-size: 0.82rem;
  color: #666666;
}

/* --------------------------------------------------------------------------
   BREAKPOINTS RESPONSIVE AUDITADOS (PROGRESIÓN MONÓTONA)
-------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }

  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .productos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .productos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 680px) {
  .categoria-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 2px 6px;
  }

  .categoria-menu::-webkit-scrollbar {
    display: none;
  }

  .categoria-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

@media (max-width: 560px) {
  .hero-editorial {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-carrito {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tools-row {
    padding: 14px;
    border-radius: 16px;
  }

  .productos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .producto-card {
    border-radius: 16px;
  }

  .producto-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .producto-foot .btn {
    width: 100%;
  }

  .cta-banner {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-editorial h1 {
    font-size: 1.35rem;
  }

  .categoria-btn {
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .cart-head {
    padding: 12px 14px;
  }

  .cart-footer {
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

/* --------------------------------------------------------------------------
   OPTIMIZACIÓN PARA SMARTPHONES EN LANDSCAPE (ALTURA CORTA)
-------------------------------------------------------------------------- */
@media (max-height: 520px) {
  .cart-head {
    padding: 10px 16px;
  }

  .cart-head h3 {
    font-size: 1.1rem;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .cart-items {
    padding: 8px 12px;
    gap: 8px;
  }

  .cart-item {
    padding: 8px 10px;
    gap: 4px;
  }

  .cart-footer {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }

  .cart-footer .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .cart-total-row {
    font-size: 0.95rem;
  }

  .cart-total-row strong {
    font-size: 1.15rem;
  }
}

/* --------------------------------------------------------------------------
   PREFERS-REDUCED-MOTION
-------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
