/*
 * promo.css - Estilos 2
 * Autor: Chepe Nicoli
 * Contacto:
/////////////////////////////////////
/////////////////////////////////////
// (c) 2026 Chepe Nicoli
// chepe.nicoli@gmail.com
/////////////////////////////////////
/////////////////////////////////////
*/
.promo-head-banner {
  background-color: rgb(46, 82, 96);
}

.promo-head-banner p {
  color: #fff;
}

.modal-body p {
  font-size: larger;
}

.promo-main-nav {
  background-color: #f3f3f3;
  padding: 0.75rem 0;
}

.promo-main-nav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background-color: rgba(243, 243, 243, 0.82);
  /* ← transparencia: 0.0 = invisible · 1.0 = sólido */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.promo-nav-spacer {
  display: none;
}

.promo-nav-spacer.is-active {
  display: block;
}

.promo-nav-logo {
  height: 60px;
  width: auto;
}

.promo-nav-links .nav-link {
  color: #222;
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.promo-nav-links .nav-link:hover {
  color: rgb(46, 82, 96);
}

.promo-search-btn {
  color: #222;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.promo-search-btn:hover {
  background: #e9e9e9;
}

.promo-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.promo-icon-btn {
  position: relative;
  color: #222;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.promo-icon-btn:hover {
  background: #e9e9e9;
  color: rgb(46, 82, 96);
}

.promo-icon-btn.dropdown-toggle::after {
  display: none;
}

.promo-badge {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgb(46, 82, 96);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.promo-search-input {
  width: 0;
  min-width: 0;
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border: 0;
  transition:
    width 0.3s ease,
    opacity 0.25s ease,
    padding 0.25s ease,
    border-color 0.25s ease;
}

.promo-search.is-open .promo-search-input {
  width: 220px;
  opacity: 1;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border: 1px solid #d7d7d7;
}

.promo-search-input:focus {
  box-shadow: none;
  border-color: rgb(46, 82, 96);
}

@media (max-width: 991.98px) {
  .promo-nav-links {
    margin: 0.75rem 0;
    text-align: center;
  }

  .promo-search {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .promo-header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.promo-shop {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.promo-shop-title {
  color: #171717;
  font-weight: 700;
  margin: 0;
}

.promo-shop-subtitle {
  color: #666;
  font-size: 0.95rem;
}

.promo-shop-count {
  color: #777;
}

.promo-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.promo-producto-grid-item {
  min-width: 0;
}

.promo-producto-grid-item--hero {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}

.promo-producto-grid-item--short-top {
  grid-column: 3;
  grid-row: 1;
}

.promo-producto-grid-item--short-bottom {
  grid-column: 3;
  grid-row: 2;
}

.promo-producto-grid-item--tall {
  grid-column: 4;
  grid-row: 1 / span 2;
}

.promo-producto-card {
  border: 0;
}

#cont {
  --cont-info-height: 92px;
  --cont-small-media-height: 175px;
  --cont-large-media-height: calc((var(--cont-small-media-height) + var(--cont-info-height)) * 2 - var(--cont-info-height));
}

#cont .promo-cont-layout {
  align-items: stretch;
}

#cont .promo-cont-layout > [class*="col-"] {
  display: flex;
}

#cont .promo-cont-stack {
  width: 100%;
  margin: 0;
}

#cont .promo-cont-stack > .col-12 {
  padding-left: 0;
  padding-right: 0;
  display: flex;
}

#cont .promo-producto-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#cont .promo-cont-item-1 .promo-producto-media-wrap,
#cont .promo-cont-item-4 .promo-producto-media-wrap {
  height: var(--cont-large-media-height);
}

#cont .promo-cont-item-2 .promo-producto-media-wrap,
#cont .promo-cont-item-3 .promo-producto-media-wrap {
  height: var(--cont-small-media-height);
}

#cont .promo-producto-media-wrap {
  flex: 0 0 auto;
}

#cont .promo-producto-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

#cont .promo-producto-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

#cont .promo-producto-info {
  min-height: var(--cont-info-height);
}

@media (max-width: 991.98px) {
  #cont .promo-cont-item-1 .promo-producto-media-wrap,
  #cont .promo-cont-item-2 .promo-producto-media-wrap,
  #cont .promo-cont-item-3 .promo-producto-media-wrap,
  #cont .promo-cont-item-4 .promo-producto-media-wrap {
    height: auto;
  }

  #cont .promo-producto-media {
    aspect-ratio: 1 / 1;
  }

  #cont .promo-producto-info {
    min-height: 0;
  }
}

.promo-producto-media-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f4f4f4;
}

.promo-producto-media-link {
  display: block;
}

.promo-producto-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.promo-producto-grid-item--hero .promo-producto-media {
  aspect-ratio: 1 / 1;
}

.promo-producto-grid-item--short .promo-producto-media {
  aspect-ratio: 3 / 2;
}

.promo-producto-grid-item--tall .promo-producto-media {
  aspect-ratio: 1 / 1;
}

.promo-producto-card:hover .promo-producto-media {
  transform: scale(1.06);
}

.promo-producto-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
}

.promo-producto-badge.is-new {
  background: rgb(46, 82, 96);
}

.promo-producto-badge.is-discount {
  background: rgb(255, 28, 70);
  font-size: larger;
}

.rounded-pill {
  background: rgb(46, 82, 96) !important;
  color: #fff !important;
  font-size: larger !important;
}

.promo-producto-hover-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: none;
}

.promo-producto-card:hover .promo-producto-hover-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.promo-hover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #edf6f7;
  color: rgb(46, 82, 96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.promo-hover-btn:hover {
  background: rgb(46, 82, 96);
  color: #edf6f7;
  border-color: rgb(46, 82, 96);
}

.promo-producto-name {
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

.promo-producto-name a {
  text-decoration: none;
  color: #222;
}

.promo-producto-name a:hover {
  color: rgb(46, 82, 96);
}

.promo-producto-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 1rem;
}

.promo-price-tache {
  color: #8a8a8a;
  text-decoration: line-through;
}

.promo-price-sale {
  color: #111;
  font-weight: 700;
}

.promo-price-normal {
  color: #111;
  font-weight: 600;
}

.promo-shop-pagination .page-link {
  color: #222;
  border-color: #e3e3e3;
}

.promo-shop-pagination .page-item.active .page-link {
  background-color: #222;
  border-color: #222;
  color: #fff;
}

@media (max-width: 767.98px) {
  .promo-products-grid {
    grid-template-columns: 1fr;
  }

  .promo-producto-grid-item--hero,
  .promo-producto-grid-item--short-top,
  .promo-producto-grid-item--short-bottom,
  .promo-producto-grid-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .promo-producto-hover-actions {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .promo-hover-btn {
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .promo-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-producto-grid-item--hero,
  .promo-producto-grid-item--short-top,
  .promo-producto-grid-item--short-bottom,
  .promo-producto-grid-item--tall {
    grid-column: span 2;
    grid-row: auto;
  }
}

.promo-detail-page {
  background: linear-gradient(180deg, #f7f7f5 0%, #ffffff 100%);
}

.promo-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: #6f6f6f;
  font-size: 0.92rem;
}

.promo-detail-breadcrumb a {
  color: rgb(46, 82, 96);
  text-decoration: none;
}

.promo-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.promo-detail-media-panel,
.promo-detail-content-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.promo-detail-media-panel {
  padding: 1.25rem;
  position: sticky;
  top: 110px;
}

.promo-detail-media-main {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f4f5 0%, #ffffff 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-detail-main-image {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.promo-detail-floating-badge {
  top: 20px;
  left: 20px;
}

.promo-detail-thumbs {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.promo-detail-thumb {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
  padding: 0;
}

.promo-detail-thumb.is-active {
  border-color: rgb(46, 82, 96);
  box-shadow: 0 0 0 3px rgba(46, 82, 96, 0.12);
}

.promo-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-detail-content-panel {
  padding: 2rem;
}

.promo-detail-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.promo-detail-kicker span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eef4f5;
  color: rgb(46, 82, 96);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.promo-detail-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  margin: 0 0 1rem;
  color: #111;
}

.promo-detail-subtitle {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #525252;
  margin-bottom: 1.25rem;
}

.promo-detail-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #faf4dc;
  color: #775f00;
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.promo-detail-price-block {
  margin-bottom: 1.5rem;
}

.promo-detail-price-block .promo-producto-price,
.promo-detail-price-block .promo-price-normal,
.promo-detail-price-block .promo-price-sale {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.promo-detail-price-block .small {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #6b6b6b;
}

.promo-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.7rem;
}

.promo-detail-primary {
  min-width: 230px;
}

.promo-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.7rem;
}

.promo-detail-meta-card {
  border-radius: 20px;
  background: #f7f8f8;
  padding: 1rem 1.1rem;
}

.promo-detail-meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7b7b7b;
  margin-bottom: 0.3rem;
}

.promo-detail-story {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
}

.promo-detail-story h2 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

.promo-detail-story p {
  color: #575757;
  line-height: 1.8;
}

.promo-detail-empty {
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
  .promo-detail-shell {
    grid-template-columns: 1fr;
  }

  .promo-detail-media-panel {
    position: static;
  }

  .promo-detail-media-main,
  .promo-detail-main-image {
    min-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .promo-detail-content-panel,
  .promo-detail-media-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .promo-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .promo-detail-actions .btn {
    width: 100%;
  }

  .promo-detail-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }
}
