@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ===============================
   Súperate Jugando - Base
   =============================== */

:root {
  --sj-blue: #0b4f9c;
  --sj-blue-2: #18aee2;
  --sj-yellow: #ffd94a;
  --sj-text: #172033;
  --sj-muted: #475569;
  --sj-border: #e5e7eb;
  --sj-soft: #f8fafc;
  --sj-font-title: 'Fredoka', system-ui, sans-serif;
  --sj-font-body: 'Nunito', system-ui, sans-serif;
}

body {
  font-family: var(--sj-font-body);
  font-size: 16px;
  color: var(--sj-text);
}

h1, h2, h3 {
  color: var(--sj-text);
}

h1,
.sj-section-title h2,
.sj-help-box h2,
.sj-btn {
  font-family: var(--sj-font-title);
}

/* ===============================
   Header SúperateJugando
   Logo de alto completo + search arriba
   =============================== */

.container-header {
  position: relative;
  min-height: 150px;
  background: linear-gradient(110deg, #0b4f9c 0%, #0f8ec6 55%, #22b8df 100%);
}

/* Topbar: buscador al centro, divisa + banderas a la derecha */
.container-header .container-topbar {
  max-width: 1360px;
  height: 48px;
  margin: 0 auto;
  padding: 0.65rem 1rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 30;
}

.container-header .container-topbar .moduletable,
.container-header .container-topbar .moduletable_menu {
  margin: 0;
}

/* Divisa */
.container-header .container-topbar select,
.container-header .container-topbar .form-select {
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  font-family: var(--sj-font-body);
  font-size: 0.9rem;
  padding: 0.25rem 2rem 0.25rem 0.8rem;
}

/* Banderas */
.container-header .mod-languages {
  padding: 0;
  margin: 0;
}

.container-header .mod-languages ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.container-header .mod-languages li {
  padding: 0;
  margin: 0;
  background: transparent !important;
}

.container-header .mod-languages a,
.container-header .mod-languages span {
  width: 32px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18) !important;
  border: 1px solid rgba(255,255,255,0.22);
}

.container-header .mod-languages img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 2px;
}

/* Fila original donde Cassiopeia imprime el logo: no ocupa espacio */
.container-header > .grid-child:not(.container-nav) {
  height: 0;
  min-height: 0;
  padding: 0;
  overflow: visible;
  max-width: 1500px;
  margin: 0 auto;
  position: static;
}

/* Logo: abarca TODO el alto del banner azul */
.container-header .navbar-brand {
  position: absolute;
  left: 2rem;
  top: 0.8rem;
  margin: 0;
  padding: 0;
  z-index: 25;
}

.container-header .navbar-brand img {
  max-height: 130px;
  width: auto;
  display: block;
}

/* Fila inferior: menú a la izquierda, acciones a la derecha */
.container-header .container-nav {
  max-width: 1500px;
  margin: 0 auto;
  min-height: 96px;
  padding: 52px 40px 16px 290px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
}

/* Menú inferior */
.container-header .navbar,
.container-header nav {
  margin: 0;
  padding: 0 0 0.85rem 0;
  flex: 1 1 auto;
  min-width: 0;
}

.container-header .mod-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.10rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.container-header .mod-menu > li {
  margin: 0;
  padding: 0;
}

.container-header .mod-menu > li > a {
  color: #ffffff;
  font-family: var(--sj-font-body);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li > a:hover {
  color: var(--sj-yellow);
  text-decoration: none;
}

/* La posición search contiene buscador + módulo de acciones + carrito */
.container-header .container-search {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
  margin: 0;
}

.container-header .container-search > *,
.container-header .container-search .moduletable {
  margin: 0 !important;
}

.container-header .container-search .moduletable,
.container-header .container-search .moduletable_menu {
  margin: 0;
}

/* Buscador: arriba al centro, junto visualmente a la divisa */
.container-header .container-search form {
  position: absolute;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
  max-width: 360px;
  margin: 0;
  z-index: 35;
}

.container-header .container-search input[type="text"],
.container-header .container-search input[type="search"] {
  width: 100%;
  height: 38px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 0 1.05rem;
  font-family: var(--sj-font-body);
  font-size: 0.95rem;
  background: #ffffff;
}

.container-header .container-search button,
.container-header .container-search input[type="submit"] {
  display: none;
}

/* Acciones: abajo, misma línea del menú */
.sj-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 !important;
}

.sj-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-family: var(--sj-font-body);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.sj-header-action:hover {
  background: rgba(255,255,255,0.28);
  color: #ffffff;
  text-decoration: none;
}

.sj-header-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* Carrito abajo, junto a Mi cuenta/Ayuda */
.container-header .vmCartModule {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-family: var(--sj-font-body);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  margin: 0 !important;
}

.container-header .vmCartModule::before {
  content: "🛒";
  font-size: 1rem;
  line-height: 1;
}

.container-header .vmCartModule a {
  color: #ffffff;
  text-decoration: none;
}

/* ===============================
   Header responsive móvil
   =============================== */

@media (max-width: 900px) {
/* Tablet / móvil grande: centrar contenido */

  .sj-home-page .site-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sj-home-page .container-component {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
    margin: 0 auto !important;
  }

  .sj-home-store {
    width: 100%;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .sj-store-hero,
  .sj-home-section,
  .sj-help-box {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .sj-home-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.8rem;
    width: 100%;
  }

  .sj-home-categories a {
    min-height: 40px;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
  }

  .sj-cat-icon {
    flex: 0 0 20px;
    width: 20px;
    font-size: 0.95rem;
  }

  .sj-cat-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .sj-featured-grid,
  .sj-collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .container-header {
    min-height: auto;
    overflow: hidden;
  }

  /* Divisa + banderas arriba */
  .container-header .container-topbar {
    max-width: 100%;
    padding: 0.45rem 0.75rem 0.25rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
  }

  .container-header .container-topbar select,
  .container-header .container-topbar .form-select {
    width: 170px;
    min-height: 34px;
    font-size: 0.78rem;
  }

  .container-header .mod-languages a,
  .container-header .mod-languages span {
    width: 28px;
    height: 22px;
  }

  .container-header .mod-languages img {
    width: 19px;
    height: 13px;
  }

  /* Logo normal en móvil */
  .container-header > .grid-child {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    max-width: 100%;
  }

  .container-header .navbar-brand {
    position: static !important;
    display: block;
    padding: 0.2rem 0.75rem 0.1rem;
  }

  .container-header .navbar-brand img {
    max-height: 62px;
    width: auto;
    display: block;
  }

  /* Contenedor del menú + search + botones */
  .container-header .container-nav {
    max-width: 100%;
    min-height: 0 !important;
    padding: 0.15rem 0.75rem 1rem !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  /* Menú horizontal deslizable */
  .container-header .navbar,
  .container-header nav {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .container-header .navbar::-webkit-scrollbar,
  .container-header nav::-webkit-scrollbar {
    display: none;
  }

  .container-header .mod-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .container-header .mod-menu > li > a {
    font-size: 0.92rem;
  }

  /* Search y botones ya NO son absolutos en móvil */
  .container-header .container-search {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.6rem;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container-header .container-search form {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .container-header .container-search input[type="text"],
  .container-header .container-search input[type="search"] {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    font-size: 0.95rem;
  }

  .container-header .container-search button,
  .container-header .container-search input[type="submit"] {
    display: none;
  }

  /* Mi cuenta + ayuda en dos columnas */
  .sj-header-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0 !important;
  }

  .sj-header-action {
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
  }

  /* Carrito debajo, centrado */
  .container-header .vmCartModule {
    width: 100%;
    max-width: none;
    min-height: 38px;
    justify-content: center;
    margin: 0 !important;
    font-size: 0.9rem;
  }
}

/* ===============================
   Sidebar y botones globales
   =============================== */

.sidebar-right .card,
.sidebar-left .card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sj-border);
}

.sidebar-right .card-header,
.sidebar-left .card-header {
  background: var(--sj-soft);
}

.btn-primary,
button.btn-primary,
input.btn-primary {
  background-color: var(--sj-blue);
  border-color: var(--sj-blue);
  border-radius: 10px;
}

.btn-primary:hover,
button.btn-primary:hover,
input.btn-primary:hover {
  background-color: #244b92;
  border-color: #244b92;
}

/* ===============================
   Home sin sidebar
   =============================== */

.sj-home-page .container-sidebar-right,
.sj-home-page .container-sidebar-left {
  display: none !important;
}

.sj-home-page .site-grid {
  grid-template-columns:
    [full-start] minmax(1rem, 1fr)
    [main-start] minmax(0, 1200px)
    [main-end] minmax(1rem, 1fr)
    [full-end];
}

.sj-home-page .container-component {
  grid-column: main;
  width: 100%;
  padding-top: 1rem;
}

.sj-home-store {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ===============================
   Home - Hero tienda
   =============================== */

.sj-store-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1480fr) minmax(0, 440fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

/* Categorías */
.sj-home-categories {
  background: #ffffff;
  border: 1px solid var(--sj-border);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sj-home-categories a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
  color: var(--sj-text);
  font-family: var(--sj-font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  border-radius: 12px;
}

.sj-home-categories a:hover {
  background: #eef4ff;
  color: var(--sj-blue);
  transform: translateX(3px);
}

.sj-cat-icon {
  flex: 0 0 22px;
  width: 22px;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

.sj-cat-text {
  flex: 1;
  white-space: normal;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.35;
}

/* Banners */
.sj-main-banner,
.sj-home-promo {
  background: transparent;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}

.sj-main-banner a,
.sj-home-promo a {
  display: block;
  width: 100%;
  height: 100%;
}

.sj-main-banner img,
.sj-home-promo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* ===============================
   Home - Secciones
   =============================== */

.sj-home-section {
  margin-bottom: 2rem;
}

.sj-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  border-bottom: 2px dotted #d7dce5;
  padding-bottom: 0.5rem;
}

.sj-section-title h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sj-text);
}

.sj-section-title a {
  color: var(--sj-blue);
  font-weight: 700;
  text-decoration: none;
}

/* Destacados del mes */
.sj-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sj-product-card {
  display: block;
  background: #ffffff;
  border: 1px solid #d9dee8;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sj-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
  text-decoration: none;
}

.sj-product-thumb {
  background: #f8fafc;
}

.sj-product-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sj-product-body {
  padding: 1rem;
}

.sj-product-body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--sj-font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sj-text);
}

.sj-product-body p {
  margin: 0;
  color: var(--sj-muted);
  line-height: 1.45;
}

/* Colecciones principales */
.sj-collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sj-collection-box {
  display: block;
  background: #ffffff;
  border: 1px solid #d9dee8;
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sj-collection-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10);
  text-decoration: none;
}

.sj-collection-box h3 {
  margin: 0 0 0.6rem;
  font-family: var(--sj-font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--sj-text);
}

.sj-collection-box p {
  margin: 0;
  color: var(--sj-muted);
  line-height: 1.45;
}

/* ===============================
   Home - Bloque mis pedidos
   =============================== */

.sj-help-box {
  background: var(--sj-blue);
  color: #ffffff;
  border-radius: 22px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.sj-help-box h2 {
  margin-top: 0;
  color: #ffffff;
}

.sj-help-box p {
  color: #e5edff;
}

/* Botones personalizados */
.sj-btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.sj-btn-primary {
  background: var(--sj-blue);
  color: #ffffff;
}

.sj-btn-primary:hover {
  background: #244b92;
  color: #ffffff;
}

.sj-help-box .sj-btn-primary {
  background: #ffffff;
  color: var(--sj-blue);
}

.sj-help-box .sj-btn-primary:hover {
  background: #fff3b0;
  color: var(--sj-blue);
}

/* ===============================
   Responsive
   =============================== */

/* ===============================
   Responsive Home
   =============================== */

/* Laptop mediana */
@media (max-width: 1200px) {
  .sj-home-page .site-grid {
    grid-template-columns:
      [full-start] minmax(1rem, 1fr)
      [main-start] minmax(0, 1180px)
      [main-end] minmax(1rem, 1fr)
      [full-end];
  }

  .sj-home-store {
    max-width: 1180px;
  }

  .sj-store-hero {
    grid-template-columns: 210px minmax(0, 1fr) 210px;
    gap: 0.85rem;
  }

  .sj-home-categories a {
    font-size: 0.95rem;
    min-height: 38px;
    padding: 0.42rem 0.55rem;
  }

  .sj-cat-text {
    font-size: 1.1rem;
  }

  .sj-featured-grid,
  .sj-collections-grid {
    gap: 0.85rem;
  }

  .sj-product-body,
  .sj-collection-box {
    padding: 0.9rem;
  }
}

/* Tablet horizontal / laptop chica */
@media (max-width: 980px) {
  .sj-home-page .container-component {
    padding-top: 0.75rem;
  }

  .sj-store-hero {
    display: block;
    margin-bottom: 1.25rem;
  }

  /* Categorías arriba en forma de botones */
/* Categorías en móvil: chips compactos */
  .sj-home-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 18px;
  }

  .sj-home-categories a {
    min-height: 42px;
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .sj-home-categories a:hover {
    background: #eef8ff;
    transform: none;
  }

  .sj-cat-icon {
    flex: 0 0 20px;
    width: 20px;
    font-size: 0.95rem;
  }

  .sj-cat-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .sj-main-banner,
  .sj-home-promo {
    display: none;
  }

  .sj-home-promo {
    max-width: 360px;
    justify-self: center;
  }

  .sj-featured-grid,
  .sj-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sj-section-title h2 {
    font-size: 1.75rem;
  }
}

/* Tablet vertical */
@media (max-width: 760px) {
  .sj-home-page .site-grid {
    grid-template-columns:
      [full-start] minmax(0.75rem, 1fr)
      [main-start] minmax(0, 100%)
      [main-end] minmax(0.75rem, 1fr)
      [full-end];
  }

  .sj-home-categories {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }

  .sj-home-categories a {
    justify-content: flex-start;
    text-align: left;
  }

  .sj-main-banner img,
  .sj-home-promo img {
    border-radius: 10px;
  }

  .sj-section-title {
    align-items: flex-end;
    margin-bottom: 0.75rem;
  }

  .sj-section-title h2 {
    font-size: 1.55rem;
    line-height: 1.1;
  }

  .sj-section-title a {
    font-size: 0.95rem;
  }

  .sj-product-body h3,
  .sj-collection-box h3 {
    font-size: 1.1rem;
  }

  .sj-product-body p,
  .sj-collection-box p {
    font-size: 0.95rem;
  }

  .sj-help-box {
    padding: 1.5rem;
    border-radius: 18px;
  }
}

/* Celular */
@media (max-width: 560px) {
  /* Centrar home en móvil y quitar sensación de columnas a la derecha */
  .sj-home-page .site-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sj-home-page .container-component {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .sj-home-store {
    max-width: 430px;
  }

  .sj-store-hero,
  .sj-home-section,
  .sj-help-box {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mantener categorías en 2 columnas en móvil */
  .sj-home-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.65rem;
    width: 100%;
  }

  /* Destacados en una columna, centrados */
  .sj-featured-grid,
  .sj-collections-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .sj-store-hero {
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  /* En celular ocultamos la promo lateral para no saturar */
  .sj-home-promo {
    display: none;
  }

  .sj-main-banner,
  .sj-home-promo {
    display: none;
  }


  .sj-home-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.75rem;
  }

  .sj-home-categories a {
    min-height: 38px;
    padding: 0.38rem 0.55rem;
  }

  .sj-cat-icon {
    flex: 0 0 20px;
    width: 20px;
    font-size: 0.95rem;
  }

  .sj-cat-text {
    font-size: 1.1rem;
  }


  .sj-featured-grid,
  .sj-collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

    .sj-product-body {
    padding: 0.75rem;
  }

  .sj-product-body h3 {
    font-size: 0.95rem;
  }

  .sj-product-body p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .sj-product-thumb img {
    aspect-ratio: 16 / 10;
  }

  .sj-section-title {
    gap: 0.5rem;
  }

  .sj-section-title h2 {
    font-size: 1.4rem;
  }

  .sj-home-section {
    margin-bottom: 1.5rem;
  }

  .sj-help-box {
    padding: 1.25rem;
  }

  .sj-help-box h2 {
    font-size: 1.45rem;
  }

  .sj-btn {
    width: 100%;
    text-align: center;
  }
}

/* Celular muy angosto */
@media (max-width: 380px) {
  .sj-section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .sj-section-title h2 {
    font-size: 1.25rem;
  }

  .sj-home-categories,
  .sj-featured-grid,
  .sj-collections-grid {
    grid-template-columns: 1fr;
  }

  .sj-cat-text {
    font-size: 0.95rem;
  }

  .sj-home-categories a {
    font-size: 0.95rem;
  }
}


/*
OCULTAR ENVIO EN CARRITO
*/

/* Ocultar edición de dirección de entrega en checkout digital */
.vm-checkout-shipping-userfields .output-shipto,
.vm-checkout-shipping-userfields a.details {
  display: none !important;
}

/* Ocultar bloque de datos de entrega en checkout digital */
.vm-checkout-shipping-userfields {
  display: none !important;
}

/* Reducir espacio después del registro en checkout */
.vm-checkout-register-userfields.mb-4 {
  margin-bottom: 0.75rem !important;
}

.vm-checkout-register-userfields fieldset.pb-3 {
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* Reducir separación antes del método de entrega */
.vm-checkout-shipment.mb-4 {
  margin-top: 0.75rem !important;
  margin-bottom: 1rem !important;
}

.vm-checkout-shipment h2 {
  margin-top: 0 !important;
}

/* Ocultar filas vacías de Entrega y Pago en el resumen del checkout */
#checkoutForm .row.mb-2:has(> .col.text-end:empty) {
  display: none !important;
}


/* ===============================
   Página final: Gracias por su pedido
   =============================== */

.vm-order-done {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.vm-order-done > h1,
.vm-order-done > .h3 {
  margin: 1.25rem 0 1.75rem !important;
  text-align: center;
  font-size: 1.9rem;
  line-height: 1.15;
  color: #172033;
}

/* Ocultar línea redundante de VirtueMart */
.vm-order-done .post_payment_payment_name_title,
.vm-order-done .vmCartPaymentLogo,
.vm-order-done .vmpayment_name {
  display: none !important;
}

/* Contenedor principal que imprime VirtueMart */
.vm-order-done .post_payment_payment_name {
  width: auto !important;
  max-width: 860px;
  margin: 0 auto 1.5rem !important;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Tarjeta profesional */
.sj-pay-box {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.sj-pay-top {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.sj-pay-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0b4f9c;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sj-pay-box h2 {
  margin: 0 0 0.65rem;
  color: #172033;
  font-size: 1.9rem;
  line-height: 1.15;
}

.sj-pay-box h3 {
  margin: 0 0 0.75rem;
  color: #172033;
  font-size: 1.35rem;
}

.sj-pay-box p {
  margin: 0;
  color: #334155;
  line-height: 1.55;
}

.sj-pay-section {
  margin-top: 1.5rem;
}

.sj-pay-data,
.sj-pay-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.sj-pay-data div,
.sj-pay-contact div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.sj-pay-data span,
.sj-pay-contact span {
  display: block;
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
}

.sj-pay-data strong,
.sj-pay-contact strong {
  display: block;
  color: #172033;
  font-size: 1.05rem;
}

.sj-pay-alert {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: #fff8d8;
  border: 1px solid #facc15;
  color: #3b2f00;
  line-height: 1.5;
}

.sj-pay-final {
  margin-top: 1.25rem !important;
}

/* Resumen de pedido */
.vm-order-done .post_payment_order_number,
.vm-order-done .post_payment_order_total {
  max-width: 860px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.9rem 1.25rem;
  background: #f8fafc;
  border-left: 1px solid #dbe3f0;
  border-right: 1px solid #dbe3f0;
  color: #172033;
  font-weight: 800;
}

.vm-order-done .post_payment_order_number {
  border-top: 1px solid #dbe3f0;
  border-radius: 16px 16px 0 0;
}

.vm-order-done .post_payment_order_total {
  border-bottom: 1px solid #dbe3f0;
  border-radius: 0 0 16px 16px;
  margin-bottom: 1.25rem !important;
}

/* Botón Ver pedido */
.vm-order-done > a.btn,
.vm-order-done a.btn-primary {
  display: block;
  width: fit-content;
  min-width: 170px;
  margin: 1.25rem auto 2rem !important;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

/* Usuario / salir */
.vm-order-done form.bg-light {
  max-width: 860px;
  margin: 1rem auto 1.5rem !important;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

/* Mis descargas */
.vm-order-done .card,
.vm-order-done table {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 700px) {
  .vm-order-done {
    padding: 1rem 0.75rem 2rem;
  }

  .vm-order-done > h1,
  .vm-order-done > .h3 {
    font-size: 1.55rem;
  }

  .sj-pay-box {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .sj-pay-box h2 {
    font-size: 1.45rem;
  }

  .sj-pay-box h3 {
    font-size: 1.18rem;
  }

  .sj-pay-data strong,
  .sj-pay-contact strong {
    font-size: 0.95rem;
    word-break: break-word;
  }
}

/* ===============================
   Mi cuenta / Panel de cliente
   =============================== */
/*
.sj-account-dashboard {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.sj-account-hero {
  background: linear-gradient(135deg, #eef8ff 0%, #fff8d8 100%);
  border: 1px solid #dbe3f0;
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.sj-account-label {
  margin: 0 0 0.5rem;
  color: #0b4f9c;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.sj-account-hero h1 {
  margin: 0 0 0.65rem;
  color: #172033;
  font-size: 2.2rem;
}

.sj-account-hero p {
  margin: 0;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.5;
}

.sj-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.sj-account-card {
  display: block;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  padding: 1.25rem;
  text-decoration: none;
  color: #172033;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sj-account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

.sj-account-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.65rem;
}

.sj-account-card strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: #0b4f9c;
}

.sj-account-card span:last-child {
  display: block;
  color: #475569;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .sj-account-dashboard {
    padding: 0.75rem;
  }

  .sj-account-hero {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .sj-account-hero h1 {
    font-size: 1.65rem;
  }

  .sj-account-grid {
    grid-template-columns: 1fr;
  }
}
*/
/* ===============================
   Acordeón en detalle de pedido VM
   =============================== */

.sj-order-details-accordion {
  max-width: 1180px;
  margin: 1rem auto 1.5rem;
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sj-order-details-accordion > summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  color: #0b4f9c;
  font-weight: 900;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sj-order-details-accordion > summary::-webkit-details-marker {
  display: none;
}

.sj-order-details-accordion > summary span {
  font-size: 1rem;
}

.sj-order-details-accordion > summary small {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
}

.sj-order-details-accordion > summary::after {
  content: "＋";
  color: #0b4f9c;
  font-size: 1.2rem;
  font-weight: 900;
}

.sj-order-details-accordion[open] > summary::after {
  content: "−";
}

.sj-order-details-accordion .spaceStyle.vm-orders-order {
  padding: 1rem 1.25rem;
}

/* Compactar un poco las tablas dentro del acordeón */
.sj-order-details-accordion table {
  margin-bottom: 0.75rem;
}

/* Evitar que la caja de pago ocupe exageradamente dentro del acordeón */
.sj-order-details-accordion .sj-pay-box {
  box-shadow: none;
  margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 700px) {
  .sj-order-details-accordion {
    margin: 0.75rem 0 1rem;
    border-radius: 14px;
  }

  .sj-order-details-accordion > summary {
    padding: 0.9rem 1rem;
    align-items: flex-start;
  }

  .sj-order-details-accordion > summary {
    flex-wrap: wrap;
  }

  .sj-order-details-accordion .spaceStyle.vm-orders-order {
    padding: 0.75rem;
  }
}

/* ===============================
   Menú lateral de categorías tienda
   =============================== */

.sj-shop-cats {
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sj-shop-cats .card-header,
.sj-shop-cats h3,
.sj-shop-cats .module-title {
  margin: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #006aff 0%, #43b6f4 25%, #fff8d8 100%);   
  color: #172033;
  font-size: 1.35rem;
  font-weight: 900;
  border-bottom: 1px solid #dbe3f0;
}

.sj-shop-cats ul,
.sj-shop-cats .mod-list {
  list-style: none;
  margin: 0;
  padding: 0.8rem;
}

.sj-shop-cats li {
  margin: 0;
}

.sj-shop-cats a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

.sj-shop-cats a:hover,
.sj-shop-cats a:focus {
  background: #eef8ff;
  color: #0b5ca8;
  text-decoration: none;
}

.sj-shop-cats a::before {
  content: "📘";
  margin-right: 0.45rem;
}

.sj-shop-cats a[href*="idiomas"]::before {
  content: "🎲";
}

.sj-shop-cats a[href*="matematicas"]::before,
.sj-shop-cats a[href*="matem"]::before {
  content: "🧩";
}

.sj-shop-cats a[href*="logica"]::before {
  content: "💡";
}

.sj-shop-cats a[href*="historia"]::before {
  content: "📜";
}

.sj-shop-cats a[href*="valores"]::before {
  content: "💛";
}

.sj-shop-cats a[href*="ciencias"]::before {
  content: "🔬";
}

.sj-shop-cats a[href*="varios"]::before {
  content: "🧸";
}

/* En móvil, que no estorbe */
@media (max-width: 900px) {
  .sidebar-left .sj-shop-cats,
  .container-sidebar-left .sj-shop-cats {
    margin-bottom: 1rem;
  }

  .sj-shop-cats ul,
  .sj-shop-cats .mod-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .sj-shop-cats a {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .sj-shop-cats ul,
  .sj-shop-cats .mod-list {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Módulos laterales tienda
   =============================== */

.sj-side-card {
  margin-top: 1.25rem;
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sj-side-card .card-header,
.sj-side-card h3,
.sj-side-card .module-title {
  margin: 0;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, #006aff 0%, #43b6f4 25%, #fff8d8 100%);
  color: #172033;
  font-size: 1.35rem;
  font-weight: 900;
  border-bottom: 1px solid #dbe3f0;
}

/* Contenido general */
.sj-side-card .card-body,
.sj-side-card > div:not(.card-header) {
  padding: 1rem;
}

/* Quitar viñetas raras */
.sj-side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sj-side-card li {
  margin: 0 0 0.85rem;
}

/* Preguntas frecuentes */
.sj-side-faq img {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  margin: 0.5rem auto 0.75rem;
}

.sj-side-faq a {
  display: block;
  text-align: center;
  font-weight: 800;
  color: #0b5ca8;
  text-decoration: none;
}

.sj-side-faq a:hover {
  text-decoration: underline;
}

/* Productos laterales */
.sj-side-products img {
  display: block;
  max-width: 210px;
  width: 100%;
  height: auto;
  margin: 0.5rem auto 0.75rem;
  border-radius: 12px;
}

.sj-side-products a {
  color: #172033;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.25;
}
.sj-side-products img {
  max-width: 210px;
}

.sj-side-products img:not(:first-of-type) {
  border-top: 1px solid #dbe3f0;
  padding-top: .35rem;
}

.sj-side-products a {
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.sj-side-products a:hover {
  color: #0b5ca8;
  text-decoration: underline;
}

.sj-side-products .product-price,
.sj-side-products .PricesalesPrice,
.sj-side-products .vm-price-value {
  margin-top: 0.35rem;
  color: #0b5ca8;
  font-weight: 900;
}

/* Móvil */
@media (max-width: 900px) {
  .sj-side-card {
    margin-bottom: 1rem;
  }

  .sj-side-products img,
  .sj-side-faq img {
    max-width: 180px;
  }
}

/* Ajuste módulo lateral: Nuestros Productos */
.sj-side-products .card-header,
.sj-side-products h3,
.sj-side-products .module-title {
  text-align: center;
  background: linear-gradient(135deg, #006aff 0%, #43b6f4 25%, #fff8d8 100%);
}

/* Centrar contenido de cada producto */
.sj-side-products li,
.sj-side-products .vmproduct li,
.sj-side-products .product-container,
.sj-side-products .spacer {
  text-align: center;
}

/* Separador entre productos */
.sj-side-products li + li,
.sj-side-products .vmproduct li + li,
.sj-side-products .product-container + .product-container,
.sj-side-products .spacer + .spacer {
  border-top: 1px solid #dbe3f0;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

/* Título del producto centrado */
.sj-side-products a {
  display: block;
  text-align: center;
}

/* Separador real entre productos del módulo Nuestros Productos */
.sj-side-products .vmproduct > div,
.sj-side-products .vmproduct > li,
.sj-side-products .productdetails,
.sj-side-products .spacer {
  text-align: center;
  padding-bottom: .5rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid #dbe3f0;
}

/* Quitar línea al último producto */
.sj-side-products .vmproduct > div:last-child,
.sj-side-products .vmproduct > li:last-child,
.sj-side-products .productdetails:last-child,
.sj-side-products .spacer:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===============================
   Vista de productos VirtueMart
   Clase real: .vm-product-grid
   =============================== */

.browse-view .vm-product-grid .row {
  row-gap: 2rem;
}

/* Tarjeta completa */
.browse-view .vm-product-grid .product-container {
  width: 100%;
  height: 100%;
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.browse-view .vm-product-grid .product-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

/* Imagen */
.browse-view .vm-product-grid .vm-product-media-container {
  min-height: 0 !important;
  height: 210px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.browse-view .vm-product-grid .vm-product-media-container img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
}

/* Quitar línea vacía de rating */
.browse-view .vm-product-grid .vm-product-rating-container {
  display: none !important;
}

/* Título */
.browse-view .vm-product-grid .vm-product-title {
  min-height: 58px;
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 900;
  color: #172033;
}

.browse-view .vm-product-grid .vm-product-title a {
  color: #172033;
  text-decoration: none;
}

.browse-view .vm-product-grid .vm-product-title a:hover {
  color: #0b5ca8;
  text-decoration: none;
}

/* Descripción */
.browse-view .vm-product-grid .vm-product-s-desc {
  min-height: 66px;
  margin: 0 0 0.9rem !important;
  color: #64748b !important;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Precio */
.browse-view .vm-product-grid .product-price {
  margin: 0.5rem 0 1rem !important;
  color: #172033;
  font-size: 0.95rem;
}

.browse-view .vm-product-grid .vm-price-desc {
  display: block;
  margin-bottom: 0.15rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.browse-view .vm-product-grid .PricesalesPrice .PricesalesPrice {
  display: block;
  color: #0b5ca8;
  font-size: 1.15rem;
  font-weight: 900;
}

/* Área de compra */
.browse-view .vm-product-grid .addtocart-area,
.browse-view .vm-product-grid .addtocart-area form,
.browse-view .vm-product-grid .addtocart-bar,
.browse-view .vm-product-grid .vm-addtocart-button-col,
.browse-view .vm-product-grid .vm-addtocart-button-wrapper {
  width: 100%;
}

.browse-view .vm-product-grid .addtocart-bar .row {
  width: 100%;
  justify-content: center;
  align-items: center;
  row-gap: 0.7rem;
}

/* Cantidad */
.browse-view .vm-product-grid .quantity-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.browse-view .vm-product-grid .quantity-input {
  width: 48px;
  height: 42px;
  text-align: center;
  border: 1px solid #ccd8e8;
  border-radius: 10px;
  font-weight: 700;
  color: #172033;
}

.browse-view .vm-product-grid .quantity-plus,
.browse-view .vm-product-grid .quantity-minus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #172033;
  text-decoration: none;
}

/* Botón Añadir al carro */
.browse-view .vm-product-grid .addtocart-button.btn.btn-primary {
  display: block;
  width: 100% !important;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border: 0 !important;
  border-radius: 14px;
  background: #0b5ca8 !important;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 8px 18px rgba(11, 92, 168, 0.18);
}

.browse-view .vm-product-grid .addtocart-button.btn.btn-primary:hover,
.browse-view .vm-product-grid .addtocart-button.btn.btn-primary:focus {
  background: #084985 !important;
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 900px) {
  .browse-view .vm-product-grid .vm-product-media-container {
    height: 180px;
  }

  .browse-view .vm-product-grid .vm-product-media-container img {
    max-height: 170px;
  }
}

@media (max-width: 560px) {
  .browse-view .vm-product-grid .product-container {
    padding: 1rem;
    border-radius: 18px;
  }

  .browse-view .vm-product-grid .vm-product-title {
    min-height: auto;
    font-size: 1rem;
  }

  .browse-view .vm-product-grid .vm-product-s-desc {
    min-height: auto;
  }
}

/* ===============================
   Ajuste productos digitales:
   ocultar cantidad y compactar cards
   =============================== */

/* Reducir separación horizontal y vertical entre tarjetas */
.browse-view .vm-product-grid .row,
.browse-view .vm-product-grid .row.gy-4,
.browse-view .vm-product-grid .row.g-xxl-5 {
  --bs-gutter-x: 1.15rem !important;
  --bs-gutter-y: 1.15rem !important;
}

/* Compactar un poco la tarjeta */
.browse-view .vm-product-grid .product-container {
  padding: 1rem 0.9rem 1rem !important;
}

/* Imagen un poco más compacta */
.browse-view .vm-product-grid .vm-product-media-container {
  height: 185px !important;
  margin-bottom: 0.65rem !important;
}

.browse-view .vm-product-grid .vm-product-media-container img {
  max-height: 180px !important;
}

/* Título más parejo */
.browse-view .vm-product-grid .vm-product-title {
  min-height: 66px !important;
  margin-bottom: 0.45rem !important;
  font-size: 1rem !important;
  line-height: 1.25 !important;
}

/* Descripción más compacta */
.browse-view .vm-product-grid .vm-product-s-desc {
  min-height: 58px !important;
  margin-bottom: 0.55rem !important;
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
}

/* Precio más cerca del botón */
.browse-view .vm-product-grid .product-price {
  margin: 0.35rem 0 0.65rem !important;
  padding-bottom: 0 !important;
}

/* Ocultar cantidad: -, input y + */
.browse-view .vm-product-grid .addtocart-bar .col-auto,
.browse-view .vm-product-grid .quantity-box,
.browse-view .vm-product-grid .quantity-controls,
.browse-view .vm-product-grid .quantity-input {
  display: none !important;
}

/* El botón ocupa todo el ancho disponible */
.browse-view .vm-product-grid .vm-addtocart-button-col {
  width: 100% !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

.browse-view .vm-product-grid .vm-addtocart-button-wrapper {
  width: 100% !important;
}

/* Quitar espacio arriba del botón */
.browse-view .vm-product-grid .addtocart-area,
.browse-view .vm-product-grid .addtocart-bar {
  margin-top: 0 !important;
}

.browse-view .vm-product-grid .addtocart-button.btn.btn-primary {
  margin-top: 0 !important;
  padding: 0.78rem 0.9rem !important;
  border-radius: 14px !important;
}

/* Títulos de productos fijos a 3 líneas */
.browse-view .vm-product-grid .vm-product-title {
  height: 3.9rem !important;
  min-height: 3.9rem !important;
  max-height: 3.9rem !important;
  margin-bottom: 0.45rem !important;
  padding: 0 !important;
  overflow: hidden;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.browse-view .vm-product-grid .vm-product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   Reducir espacio real entre columnas de productos
   =============================== */

.browse-view .vm-product-grid .product {
  padding-left: 5px !important;
  padding-right: 5px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Quitar el exceso de separación del row de Bootstrap */
.browse-view .vm-product-grid .row {
  margin-left: -5px !important;
  margin-right: -5px !important;
  --bs-gutter-x: 10px !important;
  --bs-gutter-y: 12px !important;
}

/* Reducir aire general del bloque */
.browse-view .vm-product-grid.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Tarjeta más compacta */
.browse-view .vm-product-grid .product-container {
  padding: 0.75rem !important;
}

/* ===============================
   Reducir espacio entre filas de productos
   =============================== */

.browse-view .vm-product-grid > .row,
.browse-view .vm-product-grid > .row.gy-4,
.browse-view .vm-product-grid > .row.g-xxl-5,
.browse-view .vm-product-grid > .row.gy-4.g-xxl-5 {
  --bs-gutter-y: 12px !important;
  row-gap: 0 !important;
}

/* Evitar que cada producto agregue margen vertical extra */
.browse-view .vm-product-grid .product {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Control fino del espacio entre filas */
.browse-view .vm-product-grid .row > .product {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* ===============================
   Detalle de producto digital
   Ocultar archivo y cantidad
   =============================== */

/* Ocultar nombre del archivo mostrado como campo personalizado */
body.view-productdetails .productdetails-view .cf-position-normal {
  display: none !important;
}

/* Ocultar cantidad: label, -, input, + */
body.view-productdetails .productdetails-view .addtocart-area .addtocart-bar .row > .col-auto,
body.view-productdetails .productdetails-view .addtocart-area .quantity-box,
body.view-productdetails .productdetails-view .addtocart-area .quantity-controls,
body.view-productdetails .productdetails-view .addtocart-area .quantity-input,
body.view-productdetails .productdetails-view .addtocart-area .quantity_box {
  display: none !important;
}

/* El botón queda solo */
body.view-productdetails .productdetails-view .addtocart-area .addtocart-bar .row {
  justify-content: flex-start !important;
}

body.view-productdetails .productdetails-view .vm-addtocart-button-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.view-productdetails .productdetails-view .vm-addtocart-button-wrapper {
  width: 100% !important;
}

body.view-productdetails .productdetails-view .addtocart-button.btn.btn-primary {
  display: block;
  width: 100% !important;
  max-width: 320px;
  margin: 0 !important;
  padding: 0.9rem 1.25rem !important;
  border: 0 !important;
  border-radius: 14px;
  background: #0b5ca8 !important;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
}

/* ===============================
   Página Preguntas Frecuentes / Ayuda
   itemid-128
   =============================== */

/* Contenedor general */
body.itemid-128 .com-content-category-blog {
  max-width: 1100px;
  margin: 0 auto;
}

/* Título principal */
body.itemid-128 .com-content-category-blog > h1 {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: #172033;
  margin: 1.5rem 0 0.5rem;
}

/* Texto introductorio visual usando pseudo-elemento */
body.itemid-128 .com-content-category-blog > h1::after {
  content: "Encuentre respuestas rápidas sobre compras, pagos, descargas y uso de nuestros materiales.";
  display: block;
  max-width: 720px;
  margin: 0.65rem auto 1.8rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #64748b;
}

/* Convertir lista de artículos en grid de tarjetas */
body.itemid-128 .com-content-category-blog__items {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Cada pregunta como tarjeta */
body.itemid-128 .com-content-category-blog__item {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.itemid-128 .com-content-category-blog__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

/* Ocultar el contenido completo de cada artículo en la página de ayuda */
body.itemid-128 .com-content-category-blog__item .item-content > *:not(.page-header) {
  display: none !important;
}

/* Quitar estilo feo del header de Joomla */
body.itemid-128 .com-content-category-blog__item .page-header {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Título de pregunta */
body.itemid-128 .com-content-category-blog__item .page-header h2 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Link completo como botón/tarjeta */
body.itemid-128 .com-content-category-blog__item .page-header h2 a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 96px;
  padding: 1.25rem 1.35rem;
  color: #172033;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

body.itemid-128 .com-content-category-blog__item .page-header h2 a:hover {
  color: #0b5ca8;
  background: linear-gradient(135deg, #e8f8ff 0%, #ffffff 100%);
  text-decoration: none;
}

/* Icono general */
body.itemid-128 .com-content-category-blog__item .page-header h2 a::before {
  content: "❔";
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #e8f8ff;
  color: #0b5ca8;
  font-size: 1.35rem;
}

/* Iconos por pregunta */
body.itemid-128 .com-content-category-blog__item:nth-child(1) .page-header h2 a::before {
  content: "🃏";
}

body.itemid-128 .com-content-category-blog__item:nth-child(2) .page-header h2 a::before {
  content: "🎲";
}

body.itemid-128 .com-content-category-blog__item:nth-child(3) .page-header h2 a::before {
  content: "🧮";
}

body.itemid-128 .com-content-category-blog__item:nth-child(4) .page-header h2 a::before {
  content: "⬇️";
}

body.itemid-128 .com-content-category-blog__item:nth-child(5) .page-header h2 a::before {
  content: "🛒";
}

body.itemid-128 .com-content-category-blog__item:nth-child(6) .page-header h2 a::before {
  content: "👤";
}

/* Responsive */
@media (max-width: 760px) {
  body.itemid-128 .com-content-category-blog__items {
    grid-template-columns: 1fr;
  }

  body.itemid-128 .com-content-category-blog > h1 {
    font-size: 2rem;
  }

  body.itemid-128 .com-content-category-blog__item .page-header h2 a {
    min-height: 82px;
    padding: 1rem;
  }
}

/* ===============================
   Footer SuperateJugando
   =============================== */

.sj-site-footer {
  margin-top: 3rem;
  background: linear-gradient(135deg, #092f63 0%, #0b5ca8 55%, #13a9c7 100%);
  color: #ffffff;
  font-family: Nunito, system-ui, sans-serif;
}

/* Contenido principal */
.sj-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.7rem;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr 1.15fr;
  gap: 2.3rem;
}

/* Marca */
.sj-footer-logo-text {
  margin-bottom: 0.75rem;
  color: #ffffff;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.1;
}

.sj-footer-brand p {
  max-width: 340px;
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.sj-footer-small {
  font-size: 0.95rem;
}

/* Columnas */
.sj-footer-col h3 {
  margin: 0 0 0.7rem;
  color: #fff8d8;
  font-size: 1.05rem;
  font-weight: 900;
}

.sj-footer-col a {
  display: block;
  margin-bottom: 0.48rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 750;
  line-height: 1.35;
}

.sj-footer-col a:hover {
  color: #fff8d8;
  text-decoration: underline;
}

/* Redes sociales */
.sj-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.2rem;
  margin-bottom: 0.95rem;
}

.sj-footer-social a {
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sj-footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.sj-footer-social a:hover {
  background: #ffffff;
  color: #0b5ca8;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Tiendas externas */
.sj-footer-store-links {
  margin-top: 0.95rem;
}

.sj-footer-store-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  text-decoration: none;
}

.sj-footer-store-links a:hover {
  color: #fff8d8;
  text-decoration: underline;
}

/* Parte inferior */
.sj-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1100px) {
  .sj-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .sj-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .sj-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .sj-site-footer {
    margin-top: 2rem;
  }

  .sj-footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.6rem;
  }
}

/* ===============================
   Inicio: Short destacado + artículos
   =============================== */

.sj-home-dynamic-zone {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

/* Columna video */
.sj-home-video-column {
  min-width: 0;
}

.sj-home-video-card {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.sj-video-badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0b5ca8;
  font-size: 0.82rem;
  font-weight: 900;
}

.sj-home-video-card h2 {
  margin: 0 0 0.55rem;
  color: #172033;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.18;
}

.sj-home-video-card p {
  margin: 0 0 0.9rem;
  color: #64748b;
  line-height: 1.45;
  font-size: 0.95rem;
}

.sj-short-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #e8f8ff;
}

.sj-short-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sj-video-link {
  display: block;
  margin-top: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #0b5ca8;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.sj-video-link:hover {
  background: #084985;
  color: #ffffff;
  text-decoration: none;
}

/* Columna artículos */
.sj-home-blog-column {
  min-width: 0;
}

.sj-home-blog-column h3 {
  margin: 0 0 0.85rem;
  color: #172033;
  font-size: 1.65rem;
  font-weight: 900;
}

/* Limpiar envoltorios del módulo */
.sj-home-blog-column .moduletable,
.sj-home-blog-column .mod-articles,
.sj-home-blog-column .newsflash,
.sj-home-blog-column .card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Grid de artículos en escritorio */
.sj-home-blog-column ul,
.sj-home-blog-column .mod-articles-items,
.sj-home-blog-column .newsflash {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Tarjeta */
.sj-home-blog-column li,
.sj-home-blog-column .mod-articles-item,
.sj-home-blog-column .newsflash-item {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Título del artículo */
.sj-home-blog-column li a,
.sj-home-blog-column .mod-articles-item a,
.sj-home-blog-column .newsflash-title a,
.sj-home-blog-column .newsflash-item a {
  display: block;
  margin-bottom: 0.85rem;
  color: #0b5ca8;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1.25;
}

.sj-home-blog-column li a:hover,
.sj-home-blog-column .mod-articles-item a:hover,
.sj-home-blog-column .newsflash-title a:hover,
.sj-home-blog-column .newsflash-item a:hover {
  color: #084985;
  text-decoration: underline;
}

/* Imagen: NO recortar */
.sj-home-blog-column img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 18px;
  margin: 0 auto;
}

/* Tablet */
@media (max-width: 900px) {
  .sj-home-dynamic-zone {
    grid-template-columns: 1fr;
  }

  .sj-home-video-column {
    max-width: 360px;
    margin: 0 auto 1.4rem;
  }

  .sj-home-blog-column ul,
  .sj-home-blog-column .mod-articles-items,
  .sj-home-blog-column .newsflash {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celular */
@media (max-width: 560px) {
  .sj-home-dynamic-zone {
    display: block;
  }

  .sj-home-video-column {
    max-width: 100%;
    margin: 0 0 1.4rem;
  }

  .sj-home-video-card {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .sj-home-video-card h2 {
    font-size: 1.15rem;
  }

  .sj-short-frame {
    max-width: 270px;
    margin: 0 auto;
  }

  .sj-home-blog-column h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .sj-home-blog-column ul,
  .sj-home-blog-column .mod-articles-items,
  .sj-home-blog-column .newsflash {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .sj-home-blog-column li,
  .sj-home-blog-column .mod-articles-item,
  .sj-home-blog-column .newsflash-item {
    display: block;
    padding: 0.85rem;
    border-radius: 18px;
  }

  .sj-home-blog-column li a,
  .sj-home-blog-column .mod-articles-item a,
  .sj-home-blog-column .newsflash-title a,
  .sj-home-blog-column .newsflash-item a {
    font-size: 1rem;
    margin-bottom: 0.65rem;
  }

  .sj-home-blog-column img {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 14px;
  }
}
/* Imagen clickeable en artículos de inicio */
.sj-home-blog-image-link {
  display: block;
  text-decoration: none;
}

.sj-home-blog-image-link img {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sj-home-blog-image-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

