:root {
  --home-ink: #18324f;
  --home-ink-2: #0f2b4c;
  --home-surface: #f7f8fb;
  --home-border: #d7dbe3;
  --home-shadow: 0 8px 20px rgba(16, 24, 40, 0.12);
  --home-mask: #c7cbd2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
}

.home-shell {
  background: #ffffff;
  overflow-x: hidden;
  max-width: 100%;
}

.contenido_central {
  padding-top: 100px !important;
  background-color: #ffffff;
}

.home-menu {
  background: #0f2b4c !important;
  padding: 6px 10px !important;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 60px;
  max-width: 100%;
  overflow-x: hidden;
}

.home-menu__logo {
  display: flex;
  align-items: center;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  margin: 0;
}

.home-menu__logo img {
  height: 50px;
  width: auto;
  display: block;
}

.home-menu .navbar-toggler {
  margin-left: auto;
}

.home-menu .navbar-collapse {
  flex: 1;
}

.home-menu__list {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  padding: 0 clamp(80px, 8vw, 160px);
}

.home-menu__list::-webkit-scrollbar {
  height: 0;
}

.home-menu__item {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
  cursor: pointer;
  text-transform: capitalize;
  font-weight: 600;
}

.home-menu__item img {
  width: 24px;
  height: 24px;
}

.home-menu__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.home-menu__item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-menu__search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8f9fb;
  border: 1px solid #cfd5df;
  border-radius: 999px;
  padding: 6px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-menu__search.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.home-menu__search-btn {
  border: 0;
  background: transparent;
  color: #0f2b4c;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-menu__search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 190px;
  font-size: 13px;
  color: #1f2f46;
}

.home-menu__search input::placeholder {
  color: #8b97a7;
}

.home-menu__search-camera {
  border: 0;
  background: #e7ebf2;
  color: #0f2b4c;
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (min-width: 992px) {
  .home-menu .navbar-collapse {
    display: flex !important;
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .home-menu {
    justify-content: space-between;
    overflow: visible;
  }

  .home-menu__logo {
    position: static;
    transform: none;
    margin-right: 8px;
  }

  .home-menu .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f2b4c;
    padding: 10px 12px;
    display: none;
    z-index: 9999;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  }

  .home-menu .navbar-collapse.show {
    display: block;
  }

  .home-menu.menu-open .navbar-collapse {
    display: block;
  }

  .home-menu__search {
    display: none !important;
  }

  .home-menu__list {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow: visible;
    width: 100%;
  }

  .home-menu__item {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .home-menu__item img {
    width: 22px;
    height: 22px;
  }

  .home-menu__dot {
    width: 18px;
    height: 18px;
  }
}

.linea1--top {
  background: #e0e4ea !important;
  padding: 6px 16px !important;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.linea1--top .iconS,
.linea1--top .iconR,
.linea1--top .icon,
.linea1--top .icon-text {
  color: #0f2b4c !important;
}

.linea1--left {
  justify-content: flex-start;
}

.linea1--center {
  justify-content: center;
}

.linea1--right {
  justify-content: flex-end;
}

@media (max-width: 576px) {
  .linea1--top {
    padding: 8px 10px !important;
    gap: 10px;
  }

  .linea1--top .iconS {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
  }

  .linea1--top .icon-text {
    display: inline;
  }
}

.home-card__searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fb;
  border: 1px solid #cfd5df;
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 8px;
}

.home-card__searchicon {
  border: 0;
  background: transparent;
  color: #5b6b82;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-card__searchinput {
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1f2f46;
  width: 100%;
}

.home-card__searchinput::placeholder {
  color: #8b97a7;
}

.home-hero {
  position: relative;
  overflow-x: hidden;
}

.main-container.home-hero {
  background-color: #c4c8d0;
  background-image: none;
  max-width: 100%;
}

.home-hero::before {
  content: none;
}

 

.home-hero__inner {
  position: relative;
  z-index: 1;
}

.home-hero__inner {
  position: relative;
  padding: 12px 3vw 18px;
  max-width: 90%;
  margin: 0 auto;
  width: 100%;
}

.home-hero__logo {
  margin: 12px 0 20px;
  display: flex;
  align-items: center;
}

.home-hero__logo img {
  width: 300px;
  height: auto;
  cursor: pointer;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.1fr;
  gap: 18px;
  align-items: start;
  max-width: 100%;
}

.home-card {
  background: #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  padding: 12px;
  border: 1px solid #e1e5ea;
  max-width: 100%;
}

.home-col--left .home-card,
.home-col--right .home-card {
  margin-bottom: 18px;
}

.home-card__title {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: 700;
  color: #667085;
  margin-bottom: 8px;
  display: block;
  position: relative;
}

.home-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.home-card__badge {
  background: #e9eef5;
  color: #2c3d55;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.home-card__subtitle {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-menu-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.home-refresh-btn {
  border: 0;
  background: transparent;
  color: #4a5668;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-refresh-btn i {
  font-size: 12px;
}

.home-refresh-btn--left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.home-card__title--center {
  text-align: center;
  width: 100%;
  justify-self: center;
}

.home-card__header--center {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 6px;
}

.home-card__subtitle--center {
  justify-self: end;
}

.home-trending-icon {
  margin-right: 6px;
  font-size: 12px;
}

.home-col--center .home-card--search {
  margin-bottom: 12px;
  max-width: 760px;
  width: 100%;
}

.home-card--search {
  padding-top: 15px;
}

.home-col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}

.home-col--left {
  padding-top: 4px;
}

.home-col--right {
  padding-top: 8px;
}

.home-col--left .home-card--brands {
  margin-bottom: 18px;
}

.home-card--brands,
.home-card--products {
  background-color: rgba(243, 244, 246, 0.9);
}

.home-brands-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-wearable-card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  padding: 8px;
  display: grid;
  gap: 8px;
  align-items: center;
}

.home-wearable-media {
  background: transparent;
  border: 0;
  border-radius: 12px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-wearable-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.home-wearable-btn {
  background: #0f2b4c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.home-wearable-btn i {
  font-size: 11px;
}

.home-products-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}

.home-backpack {
  --backpack-height: 258px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  align-items: stretch;
  position: relative;
}

.home-backpack-left {
  min-width: 0;
  height: var(--backpack-height);
  align-self: center;
}

.home-backpack-card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 6px;
  height: 100%;
}

.home-backpack-media {
  background: #f7f7f7;
  border-radius: 12px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-backpack-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-backpack-name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-backpack-code {
  font-size: 11px;
  color: #6b7280;
}

.home-backpack-btn {
  background: #0f2b4c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.home-backpack-right {
  display: grid;
  grid-template-rows: 32px 1fr 32px;
  gap: 6px;
  align-items: stretch;
  justify-items: stretch;
  position: relative;
  height: var(--backpack-height);
  max-height: var(--backpack-height);
}

.home-vert-track {
  max-height: none;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: none;
}

.home-vert-track::-webkit-scrollbar {
  width: 0;
}

.home-vert-track.is-animating {
  pointer-events: none;
}

.home-vert-track.anim-out-up {
  animation: backpack-out-up 0.18s ease forwards;
}

.home-vert-track.anim-out-down {
  animation: backpack-out-down 0.18s ease forwards;
}

.home-vert-track.anim-in-up {
  animation: backpack-in-up 0.18s ease forwards;
}

.home-vert-track.anim-in-down {
  animation: backpack-in-down 0.18s ease forwards;
}

@keyframes backpack-out-up {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes backpack-out-down {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

@keyframes backpack-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes backpack-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-vert-item {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.home-vert-media {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f7f7;
}

.home-vert-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-vert-name {
  font-size: 11px;
  font-weight: 700;
  color: #1f2f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-vert-code {
  font-size: 10px;
  color: #6b7280;
}

.home-vert-btn-select {
  background: #0f2b4c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  cursor: pointer;
  width: 100%;
}

.home-vert-btn {
  border: 0;
  background: #0f2b4c;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.18);
  position: static;
  transform: none;
  justify-self: center;
  align-self: center;
  z-index: 1;
}

.home-vert-btn--up {
}

.home-vert-btn--down {
}

.home-product-tile {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  overflow: hidden;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.home-product-tile img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
}

.home-product-meta {
  display: grid;
  gap: 4px;
}

.home-product-name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2f46;
}

.home-product-code {
  font-size: 11px;
  color: #6b7280;
}

.home-card--search .upload-area2 {
  min-height: 80px;
  height: 370px;
  border-radius: 16px;
  background-color: #d8d8d8;
  border: 2px dashed #b4bcc8;
  background-size: 14%;
  position: relative;
  overflow: hidden;
}

.home-card--search .preview2-wrapper,
.home-card--search .preview2 {
  max-height: 370px;
}

.home-card--search .tab-loading2 {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
}

.home-card--search .search-loader__text {
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #c9d2de;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.25;
  color: #1f2f46;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

#modal_img .modal-dialog {
  max-width: 780px;
}

#modal_img .modal-content {
  background: #f3f4f6;
  border-radius: 18px;
  border: 1px solid #e1e5ea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

#modal_img .modal-body {
  padding: 12px;
}

#modal_img .upload-area {
  min-height: 80px;
  height: 370px;
  border-radius: 16px;
  background-color: #d8d8d8;
  border: 2px dashed #b4bcc8;
  background-size: 14%;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  background-image: none;
  padding-bottom: 52px;
  box-sizing: border-box;
}

#modal_img .preview-wrapper,
#modal_img .preview {
  max-height: 370px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modal_img .upload-hint__text {
  font-size: 14px;
  color: #5c6675;
}

#modal_img .tab-loading1 {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  display: none;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

#modal_img .search-loader__text {
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #c9d2de;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.25;
  color: #1f2f46;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.home-card--trending {
  width: 100%;
  max-width: 760px;
  overflow: hidden;
  padding-bottom: 8px;
  background: #f2f2f2;
}

.home-wide {
  max-width: 90%;
  margin: 0 auto 22px;
  padding: 0 3vw 18px;
}

.home-highlight-row {
  max-width: 90%;
  margin: 0 auto 22px;
  padding: 0 3vw 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-highlight-card {
  background: #f3f4f6;
  border: 1px solid #e1e5ea;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  padding: 16px;
  align-items: center;
}

.home-highlight-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #1f2f46;
  font-size: 13px;
  line-height: 1.35;
}

.home-highlight-sku {
  font-weight: 700;
  color: #0f2b4c;
}

.home-highlight-desc {
  color: #2b3d55;
}

.home-highlight-meta {
  font-weight: 600;
  color: #1f2f46;
}

.home-highlight-colors__title {
  font-weight: 700;
  color: #0f2b4c;
}

.home-highlight-colors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  justify-content: center;
}

.home-highlight-colors__empty {
  font-weight: 600;
  color: #2b3d55;
  margin-top: 6px;
}

.home-highlight-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  font-size: 11px;
  color: #2b3d55;
  text-align: center;
}

.home-highlight-color__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.home-highlight-color__name {
  font-weight: 600;
  line-height: 1.1;
}

.home-highlight-color__count {
  font-size: 10px;
  color: #5f6b7a;
  line-height: 1.1;
}

.home-highlight-image {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.home-highlight-image img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
}

.home-card--wide {
  max-width: none;
  background: #f2f2f2;
  border: 1px solid #e1e5ea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.home-wide-title {
  font-size: 16px;
  font-weight: 700;
  color: #4a5668;
  margin: 6px 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-menu-sections {
  max-width: 90%;
  margin: 0 auto 24px;
  padding: 0 3vw 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-menu-section {
  background: #f3f4f6;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-menu-section__title {
  font-size: 14px;
  font-weight: 700;
  color: #2c3d55;
  margin: 0 0 4px;
}

.home-menu-section__content {
  display: grid;
  gap: 10px;
}

.home-menu-item {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-menu-item:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.home-menu-item__media {
  background: #f5f5f5;
  border-radius: 10px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-menu-item__media--small {
  height: 70px;
}

.home-menu-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-menu-item__name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2f46;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-menu-item__small-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-menu-item--small .home-menu-item__name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-top-grid-section {
  max-width: 90%;
  margin: 0 auto 24px;
  padding: 0 3vw 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  align-items: stretch;
  --top-grid-row: 200px;
  --top-grid-gap: 10px;
}

.home-top-grid-left {
  display: block;
  align-self: stretch;
}

.home-top-grid-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--top-grid-gap);
  grid-auto-rows: var(--top-grid-row);
}

.home-top-grid-right {
  display: block;
  align-self: stretch;
  height: calc(var(--top-grid-row) * 3 + var(--top-grid-gap) * 2);
}

.home-top-grid-item {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-top-grid-item:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.home-top-grid-item--big {
  width: 100%;
  height: 100%;
}

.home-top-grid-media {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-top-grid-item--small,
.home-top-grid-item--big {
  height: 100%;
}

.home-top-grid-item--small .home-top-grid-media,
.home-top-grid-item--big .home-top-grid-media {
  flex: 1;
  min-height: 0;
}

.home-top-grid-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-top-grid-sku {
  background: #0f2b4c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-quad-sections {
  max-width: 90%;
  margin: 0 auto 24px;
  padding: 0 3vw 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-quad-card {
  background: #f3f4f6;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.home-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-quad-item {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-quad-item:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.home-quad-item__media {
  background: #f5f5f5;
  border-radius: 10px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-quad-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-quad-item__name {
  font-size: 11px;
  font-weight: 600;
  color: #1f2f46;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.home-card--wide .home-trending-track {
  padding: 4px 28px 10px;
}

.home-card--wide .home-trending-item {
  flex: 0 0 calc((100% - 70px) / 8);
  min-height: 190px;
}

.home-card--wide .home-trending-media {
  height: 130px;
}

.home-card--trending .home-card__header {
  padding: 4px 4px 2px;
  border-bottom: 1px solid #eef1f6;
}

.home-trending-carousel {
  position: relative;
  margin-top: 10px;
}

.home-trending-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 34px 10px;
}

img {
  max-width: 100%;
  height: auto;
}

.home-trending-track::-webkit-scrollbar {
  height: 0;
}

.home-trending-item {
  flex: 0 0 calc((100% - 20px) / 3);
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  overflow: hidden;
  padding: 8px;
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
}

.home-trending-media {
  background: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 6px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-trending-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.home-trending-name {
  font-size: 11px;
  font-weight: 700;
  color: #1f2f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.home-trending-price {
  font-size: 11px;
  color: #6b7280;
}

.home-trending-btn-select {
  background: #0f2b4c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  justify-content: center;
  width: 100%;
}

.home-trending-btn-select i {
  font-size: 11px;
}

.home-trending-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #0f2b4c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.nav-icon {
  width: 14px;
  height: 14px;
  display: block;
}

.home-trending-btn--prev { left: 4px; }
.home-trending-btn--next { right: 4px; }

.home-trending-empty {
  padding: 16px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  width: 100%;
}

.home-card--search .upload-hint__text {
  font-size: 14px;
  color: #5c6675;
}

.home-search--disabled {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  border: 1px dashed #cdd3dd;
  color: #6c7585;
}

.home-carousel {
  position: relative;
}

.home-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 40px 8px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  max-width: 100%;
  box-sizing: border-box;
}

.home-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.home-carousel__track::-webkit-scrollbar-thumb {
  background: #c7cdd8;
  border-radius: 999px;
}

.home-carousel__btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  border: 0;
  background: #0f2b4c;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-carousel__btn--prev {
  left: 0;
}

.home-carousel__btn--next {
  right: 0;
}

.home-product-card {
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-snap-align: start;
}


.home-product-card__media {
  border-radius: 10px;
  overflow: hidden;
  background: #f3f5f8;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-product-card__name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2f46;
  line-height: 1.2;
  min-height: 30px;
}

.home-product-card__price {
  font-size: 12px;
  color: #0f2b4c;
  font-weight: 700;
}

.home-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-feature__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 6px;
  position: relative;
}

.home-feature__title .home-refresh-btn--left {
  position: static;
  margin-right: 6px;
}

.home-feature__media {
  height: 300px;
}

.home-feature__media {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  overflow: hidden;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-feature__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-feature__name {
  font-size: 14px;
  font-weight: 800;
  color: #1b2d45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-feature__code {
  font-size: 12px;
  color: #667085;
}

.home-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-mini-item {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 14px;
  overflow: hidden;
  min-height: 120px;
  padding: 8px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  align-items: center;
  justify-items: center;
}

.home-backpack-card,
.home-vert-item,
.home-trending-item,
.home-wearable-card,
.home-product-card,
.home-product-tile,
.home-mini-item {
  border: 1px solid transparent;
}

.home-backpack-card,
.home-vert-item,
.home-trending-item,
.home-wearable-card,
.home-product-card,
.home-product-tile,
.home-mini-item--click {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-backpack-card:hover,
.home-vert-item:hover,
.home-trending-item:hover,
.home-wearable-card:hover,
.home-product-card:hover,
.home-product-tile:hover,
.home-mini-item--click:hover {
  border-color: #0f2b4c;
  box-shadow: 0 6px 14px rgba(15, 43, 76, 0.18);
  transform: translateY(-1px);
}

.home-mini-item--click {
  cursor: pointer;
  border: 0;
  background: #fff;
}

.home-mini-item--click:focus {
  outline: 2px solid #0f2b4c;
  outline-offset: 2px;
}

.home-mini-item__media {
  width: 100%;
  height: 70px;
  background: #f5f5f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-mini-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-mini-item__name {
  width: 100%;
  font-size: 11px;
  font-weight: 600;
  color: #1f2f46;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.home-highlight-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  max-height: calc(1.35em * 4);
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-col--right {
    grid-column: span 2;
  }

  .home-menu-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-quad-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-top-grid-section {
    grid-template-columns: 1fr;
  }

  .home-top-grid-right {
    height: auto;
  }

  .home-top-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-top-grid-section {
    max-width: 100%;
    margin: 0;
  }

  .home-highlight-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1600px) and (min-width: 1201px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    grid-template-areas:
      "left center"
      "right right";
    gap: 16px;
  }

  .home-col--left { grid-area: left; }
  .home-col--center { grid-area: center; }
  .home-col--right {
    grid-area: right;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .home-col--right .home-card {
    margin-bottom: 0;
    height: 100%;
  }
}

@media (max-width: 1400px) and (min-width: 1201px) {
  .home-hero__inner {
    max-width: 90%;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas:
      "left center"
      "right right";
    gap: 14px;
  }

  .home-col--left { grid-area: left; }
  .home-col--center { grid-area: center; }
  .home-col--right {
    grid-area: right;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .home-col--right .home-card {
    margin-bottom: 0;
    height: 100%;
  }

  .home-col--center .home-card--search {
    max-width: none;
  }

  .home-card {
    padding: 10px;
  }

  .home-card--search .upload-area2 {
    height: clamp(200px, 26vw, 330px);
  }

  .home-card--search .preview2-wrapper,
  .home-card--search .preview2 {
    max-height: clamp(200px, 26vw, 330px);
  }

  .home-feature__media {
    height: clamp(220px, 24vw, 300px);
  }

  .home-backpack {
    --backpack-height: auto;
    grid-template-columns: 1fr;
  }

  .home-backpack-left,
  .home-backpack-right {
    height: auto;
    max-height: none;
  }

  .home-backpack-media {
    height: clamp(120px, 14vw, 160px);
  }

  .home-vert-media {
    height: clamp(70px, 10vw, 90px);
  }
}

@media (max-width: 1366px) and (min-width: 1201px) {
  .home-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-areas:
      "drink search"
      "wear search"
      "backpack trending"
      "right right";
    align-items: stretch;
    gap: 14px;
    --home-left-row: clamp(190px, 23vh, 215px);
    --home-row3: clamp(290px, 34vh, 360px);
  }

  .home-card {
    overflow: hidden;
  }

  .home-col--left,
  .home-col--center {
    display: contents;
  }

  .home-col--right {
    grid-area: right;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }

  .home-col--right .home-card {
    margin-bottom: 0;
    height: 100%;
  }

  .home-col--left > .home-card,
  .home-col--center > .home-card {
    margin-bottom: 0;
  }

  .home-col--left > .home-card:nth-child(1) {
    grid-area: drink;
    height: var(--home-left-row);
  }

  .home-col--left > .home-card:nth-child(2) {
    grid-area: wear;
    height: var(--home-left-row);
  }

  .home-col--left > .home-card:nth-child(3) {
    grid-area: backpack;
    height: var(--home-row3);
    min-height: 0;
  }

  .home-col--center > .home-card--search {
    grid-area: search;
    height: calc(var(--home-left-row) + var(--home-left-row) + 14px);
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .home-col--center > .home-card--trending {
    grid-area: trending;
    height: var(--home-row3);
    min-height: 0;
  }

  .home-card--search .home-search {
    min-height: 0;
  }

  .home-card--search .upload-area2 {
    height: 100%;
    max-height: 100%;
  }

  .home-card--search .preview2-wrapper,
  .home-card--search .preview2 {
    max-height: 100%;
  }

  .home-backpack {
    --backpack-height: calc(var(--home-row3) - 36px);
    grid-template-columns: 1.25fr 0.75fr;
    height: 100%;
    max-height: 100%;
  }

  .home-backpack-left,
  .home-backpack-right {
    height: 100%;
    max-height: none;
  }

  .home-backpack-right {
    overflow: hidden;
  }

  .home-backpack-card {
    padding: 4px;
    gap: 1px;
  }

  .home-backpack-media {
    height: clamp(90px, 12vh, 110px);
  }

  .home-backpack-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-backpack-name {
    font-size: 10px;
    line-height: 1.1;
  }

  .home-backpack-code {
    font-size: 9px;
    line-height: 1.1;
  }

  .home-backpack-btn {
    padding: 2px 6px;
    font-size: 8px;
  }
}

@media (max-width: 900px) {
  .home-hero__inner {
    max-width: 100%;
    padding: 8px 12px 16px;
  }

  .home-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left" "right";
    justify-items: center;
  }

  .home-col--center {
    grid-area: center;
    align-items: center;
    padding-top: 0;
  }

  .home-col--center .home-card--search {
    max-width: none;
  }

  .home-col--left {
    grid-area: left;
    display: block;
  }

  .home-col--right {
    grid-area: right;
  }

  .home-col--left .home-card {
    margin-bottom: 18px;
  }

  .home-col--right {
    grid-column: auto;
  }

  .home-products-row {
    grid-template-columns: 1fr;
  }

  .home-menu-sections {
    max-width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .home-quad-sections {
    max-width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
  }

  .home-top-grid-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card {
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
  }

  .home-card--search .upload-area2 {
    height: 200px;
  }

  .home-card--search .preview2-wrapper,
  .home-card--search .preview2 {
    max-height: 200px;
  }

  .home-trending-track {
    padding: 4px 16px 8px;
  }

  .home-trending-media {
    height: 120px;
  }

  .home-trending-item {
    min-height: 170px;
  }

  .home-trending-btn-select {
    font-size: 9px;
    padding: 3px 6px;
  }
}

@media (max-width: 576px) {
  .contenido_central {
    padding-top: 20px !important;
  }

  .header.row {
    flex-wrap: wrap;
  }

  .home-grid {
    margin-top: calc(var(--header-offset, 80px) - 22px);
  }

  .linea1--top {
    padding: 4px 10px !important;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .linea1--top.linea1--left {
    order: 1;
    flex: 1 1 auto !important;
    max-width: 50% !important;
  }

  .linea1--top.linea1--right {
    order: 1;
    flex: 1 1 auto !important;
    max-width: 50% !important;
    text-align: right;
  }

  .linea1--top.linea1--center {
    order: 2 !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center;
    margin-top: 0;
  }

  .flag-selector {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
    overflow: hidden;
  }

  .flag-btn {
    width: 30px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
  }

  .flag-btn img {
    width: 22px;
    height: 14px;
    object-fit: contain;
  }

  .linea1--top .icon-text {
    display: none !important;
  }

  .linea1--top .iconS {
    margin: 0 4px;
  }

  .linea1--top .iconS i {
    font-size: 18px;
  }

  .home-hero__inner {
    padding: 6px 10px 12px;
  }

  .home-card {
    width: 94vw;
    max-width: 94vw;
    padding: 8px;
  }

  .home-carousel__btn {
    display: none;
  }

  .home-product-card {
    min-width: 140px;
  }

  .home-brands-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .home-top-grid-item--small .home-top-grid-media {
    height: 100px;
  }

  .home-brand-tile {
    height: 80px;
  }

  .home-card--search .upload-area2 {
    height: 260px;
  }

  .home-card--search .preview2-wrapper,
  .home-card--search .preview2 {
    max-height: 260px;
  }

  .home-trending-media {
    height: 190px;
  }

  .home-trending-item {
    min-height: 200px;
  }

  .home-trending-track {
    gap: 8px;
  }

  .home-trending-item,
  .home-card--wide .home-trending-item {
    flex: 0 0 calc(100% - 16px);
    max-width: calc(100% - 16px);
  }

  .home-card--wide {
    width: 94vw;
    max-width: 94vw;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .home-wide {
    max-width: 100%;
    margin: 0;
  }

  .home-wearable-card {
    padding: 10px;
  }

  .home-wearable-media {
    height: 190px;
  }

  .home-card--wide .home-trending-media {
    height: 190px;
  }

  .home-highlight-row {
    display: none;
  }

  footer .ladire {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding-right: 10px;
  }

  footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  footer .ladire .col-12.col-sm-4 {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
  }

  footer .ladire .col-12.col-sm-4:last-of-type {
    border-bottom: 0;
  }

  footer .ladire .col-12:not(.col-sm-4) {
    display: none;
  }

  footer .ladire p {
    margin-bottom: 6px !important;
    line-height: 1.2;
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  footer {
    overflow-x: hidden;
  }
}

/* force top-visited media to keep fixed size without overflow */
.home-feature__media {
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
}

.home-feature__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* overrides for centered trending header + refresh position */
.home-card__header--center {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  align-items: center;
  gap: 6px;
}

.home-card__subtitle--center {
  justify-self: end;
}

.home-refresh-btn--left {
  position: static;
  transform: none;
  z-index: 1;
}

.home-refresh-btn {
  font-size: 13px;
}
.home-card__title--center {
  text-align: center;
  width: 100%;
  justify-self: center;
}

.home-card__subtitle--right {
  justify-self: end;
}

.home-trending-title-icon {
  margin-right: 6px;
  font-size: 12px;
  color: #4a5668;
}

.home-trending-title {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
