.listado-productos {
  padding-top: 144px;
  padding-bottom: 190px;
  background-color: #f5e9d4;
}
.main-container {
  max-width: 1351px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-section {
  position: relative;
  /* background: #df691a; */
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  padding: 40px 20px 30px;
  margin-bottom: 30px;
  /* overflow: hidden; */
  height: 278px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.decor {
  position: absolute;
  z-index: 2;
}

.decor.ola {
  top: 29px;
  left: 68px;
  width: 72px;
}
.decor.rayo {
  top: 35px;
  right: 58px;
  width: 59px;
}
.decor.papita {
  bottom: -11px;
  left: 52px;
  width: 132px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0px 50px;
}

.title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.title-wrapper img {
  width: 25px;
}

.title-wrapper h1 {
  color: #ffffff;
  font-size: 40px;
  font-weight: 400;
  text-align: center;
  line-height: 1.1;
}

/* Filtros */
.filters-container {
  display: flex;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
  justify-content: space-between;
  scrollbar-width: none; /* Firefox */
  background-color: #e68b4a;
  padding: 14px;
  border-radius: 21px;
}

.filters-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.filter-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: #ffffff;
  color: #4a453e;
  border-color: #ffffff;
}

/* Indicador de scroll móvil (puntos) */
.mobile-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 12px;
  height: 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.4);
}
.dot.active {
  width: 24px;
  background-color: #ffffff;
}

/* --- TOOLBAR (Cantidad y Ordenar) --- */
.toolbar {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-bottom: 32px;
  padding: 0px 50px;
  justify-content: space-between;
}

.product-count {
  font-weight: 700;
  font-size: 14px;
  color: #4a453e;
  text-transform: uppercase;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 400;
}

.sort-select {
  background-color: #ffffff;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  font-weight: 700;
  color: #4a453e;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- PRODUCT GRID --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 0 50px;
}

/* Product Card */
.product-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px 15px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.badge-nuevo {
  position: absolute;
  top: 14px;
  right: 17px;
  background-color: #7e5399;
  color: #ffffff;
  font-size: 13px;
  font-weight: 400;
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 2;
}

.product-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.product-title {
  color: #293868;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-grow: 1;
}

.btn-ver {
  background-color: #2a3570;
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}

.btn-ver:hover {
  background-color: #e06e1d;
}

/* --- PAGINATION --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.page-item {
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #d4c8b6;
  color: #8c8375;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
}

.page-item.active {
  background-color: #df691a;
  color: #ffffff;
  border-color: #df691a;
}

.page-dots {
  color: #8c8375;
  letter-spacing: 2px;
}
.product-image {
  position: relative;
  padding-top: 8px;
  padding-bottom: 12px;
}
.sombranaranja {
  position: absolute;
  top: -5px;
  left: -56px;
  z-index: 1;
  width: 322px;
  height: 308px;
  opacity: 0;
  object-fit: cover;
}

.sombranaranja.related {
  top: 2px;
  left: -16px;
}
.img-hover {
  position: absolute;
  top: -23px;
  left: -28px;
  opacity: 0;
  transition: 0.4s;
  width: auto;
  z-index: 2;
  max-width: 268px;
  transition: 0.3s ease;
}
.img-hover.related {
  top: -8px;
  left: 3px;
  max-width: 232px;
}
.img-main {
  position: relative;
  width: 208.78px;
  height: 281.587px;
  transition: 0.3s ease;
  z-index: 3;
}
.img-main.related {
  width: 208px;
  height: 281px;
}

.product-card:hover .img-hover {
  opacity: 1;
  transition: 0.3s ease;
}
.product-card:hover .sombranaranja {
  opacity: 1;
  transition: 0.3s ease;
}
.product-card:hover .img-main {
  transform: rotate(13.836deg);
  transition: 0.3s ease;
}
.product-image-link{
  display: block;
  text-decoration: none;
}

.product-image-link:hover .img-hover {
  opacity: 1;
  transition: 0.3s ease;
}

.product-image-link:hover .sombranaranja {
  opacity: 1;
  transition: 0.3s ease;
}

.product-image-link:hover .img-main {
  transform: rotate(13.836deg);
  transition: 0.3s ease;
}
.hero-bg-movil {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
.hero-bg-tablet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
}
@media (max-width: 1125px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 40px;
  }
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 25px;
  }
  .hero-bg-tablet {
    opacity: 1;
  }
  .hero-bg {
    opacity: 0;
  }
}
@media (max-width: 789px) {
  .listado-productos {
    padding-top: 30px;
  }
  .decor.papita,
  .decor.rayo,
  .decor.ola {
    display: none;
  }
  .title-wrapper h1 {
    font-size: 26px;
    font-weight: 400;
  }
}

/* --- MEDIA QUERIES (DESKTOP) --- */
@media (max-width: 600px) {
  .listado-productos {
    padding-top: 0px;
  }
  .hero-section {
    height: 288px;
    padding: 20px 15px;
    margin-top: 26px;
  }
  .title-wrapper img {
    width: 36px;
  }

  .hero-bg {
    opacity: 0;
  }

  .hero-bg-movil {
    opacity: 1;
    object-fit: inherit;
  }
  .hero-bg-tablet {
    opacity: 0;
  }
  .hero-content {
    padding: 0 15px;
  }
  .title-wrapper h1 {
    font-size: 36px;
    font-weight: 400;
  }

  .title-wrapper h1 br {
    display: none;
  }

  .filters-container {
    justify-content: space-between;
    overflow-x: hidden;
  }
  .sort-wrapper {
    justify-content: space-between;
    width: 100%;
  }

  .mobile-dots {
    display: none;
  }

  .toolbar {
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: start;
    padding: 0px 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 0px;
  }
  .img-hover {
    max-width: 165px;
    top: 7px;
    left: -10px;
  }
  .sombranaranja {
    top: 6px;
    left: -12px;
    width: 171px;
    height: 190px;
  }
  .product-title {
    font-size: 14px;
  }

  .btn-ver {
    padding: 8px 24px;
    font-size: 10px;
    font-weight: 400;
  }
  .main-container {
    overflow: hidden;
  }
  .img-main {
    width: 100%;
    height: auto;
    transition: 0.3s ease;
  }
  .decor.papita,
  .decor.rayo,
  .decor.ola {
    display: none;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*-----------------------Single Product-----------------------------*/

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #2a3570;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb svg {
  flex-shrink: 0;
}
.breadcrumb span {
  color: #2a3570;
  font-size: 16px;
  font-weight: 400;
}
.breadcrumb b {
  color: #2a3570;
  font-size: 16px;
  font-weight: 700;
}

/* LAYOUT */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 160px 0px 180px 0px;
}
.top-section {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* GALERIA */
.gallery-col {
  flex: 0 0 664px;
  max-width: 671px;
}
.top-section .swiper:first-of-type .swiper-slide-active img {
  border: 2px solid #e06e1d;
  border-radius: 24px;
}

.thumbsSwiper {
  margin-top: 24px;
}
.thumbsSwiper img {
  border-radius: 12px;
  height: 115px;
  width: 100%;
  object-fit: cover;
}
.swiper-slide-thumb-active img {
  border: 2px solid #e06e1d;
}
.swiper-slide:not(.swiper-slide-thumb-active) img {
  border: 2px solid transparent;
}

.main-img-wrap {
  border: 2px solid #e06e1d;
  border-radius: 24px;
  background: #fff;
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-img-wrap img {
  width: 320px;
  height: 430px;
  object-fit: contain;
}
.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e06e1d;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swiper-button-prev svg,
.swiper-button-next svg {
  width: 9px !important;
  height: 16px;
  fill: white !important;
  color: white !important;
}
.swiper-button-next {
  right: 22px !important;
}
.swiper-button-prev {
  left: 22px !important;
}
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.thumb {
  flex: 1;
  height: 90px;
  border-radius: 12px;
  border: 2px solid #e06e1d;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.thumb.active {
  border-color: #e06e1d;
}
.thumb:not(.active) {
  border-color: #ddd;
  opacity: 0.7;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PRODUCT INFO */
.info-col {
  flex: 1;
  padding-top: 12px;
}
.badge-individual {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #faeeda;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 15px;
  color: black;
  font-weight: 400;
  margin-bottom: 14px;
}
.badge-individual img,
.badge-individual svg {
  width: 20px;
  height: 20px;
}
.product-title2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1718;
  line-height: 38px;
  text-align: start;
  margin-bottom: 14px;
}
.product-desc {
  font-size: 16px;
  line-height: 22px;
  color: #544e50;
  font-weight: 400;
  margin-bottom: 24px;
}

.cta-btn {
  display: block;
  width: 100%;
  background: #e06e1d;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 19px 24px;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 24px;
  font-family: Amifer;
  letter-spacing: 1px;
  text-align: center;
}
.cta-btn:hover {
  background: #c85c10;
}

/* DETAILS BOX */
.details-box {
  background: #efefef;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.details-title {
  font-size: 24px;
  font-weight: 800;
  color: #2a3570;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #2a3570;
}
.check-item svg {
  flex-shrink: 0;
}
.chars-title {
  font-size: 24px;
  font-weight: 800;
  color: #2a3570;
}
.chars-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 16px;
  color: #2a3570;
}
.char-row:not(:last-child) {
  border-bottom: 1px solid #bfb6d7;
}
.char-row b {
  font-weight: 700;
  color: #2a3570;
}
.char-val {
  font-weight: 500;
  color: #333;
}

/* RELATED */
.related-section {
  margin-top: 60px;
}
.related-title {
  font-size: 32px;
  font-weight: 500;
  color: #2a3570;
  margin-bottom: 28px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.rel-card {
  background: #fff8f0;
  border: 1px solid #e0ddd5;
  border-radius: 20px;
  padding: 16px;
  gap: 12px;
}
.rel-card .rel-img-wrap {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.rel-card img {
  max-width: 160px;
  max-height: 220px;
  object-fit: contain;
}
.new-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #4a5aa8;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rel-name {
  font-size: 17px;
  font-weight: 700;
  color: #2a3570;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rel-btn {
  width: 100%;
  background: #2a3570;
  color: #fff;
  border: none;
  text-align: center;
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
}
.rel-btn:hover {
  background: #1e2655;
}

/* =========================
DOTS RELACIONADOS
========================= */
.related-dots {
  display: flex;
  justify-content: start;
  align-items: start;
  gap: 10px;
  margin-top: 40px;
}

.related-dots span {
  width: 14px;
  height: 14px;
  border-radius: 100px;
  opacity: 0.5;
  background: #2a3570;
  cursor: pointer;
  transition: 0.3s ease;
}

.related-dots span.active {
  width: 90px;
  height: 14px;
  background: #2a3570; /* color naranja del tema */
  opacity: 1;
}

.filters-swiper-wrapper {
  width: auto;
  position: relative;
  background-color: #e68b4a;
  padding: 14px;
  border-radius: 21px;
}

.filtersSwiper {
  width: 100%;
  padding-bottom: 30px;
}

.filtersSwiper .swiper-slide {
  width: auto !important;
  display: flex;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  width: 100%;
}

.filter-btn.active {
  background: #ffffff;
  color: #4a453e;
  border-color: #ffffff;
}

.filters-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
}

.filters-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  opacity: 1;
  cursor: pointer;
  transition:
    background 0.3s,
    transform 0.3s;
  display: inline-block;
}

.filters-pagination .swiper-pagination-bullet-active {
  background: #ffffff;
  transform: scale(1.3);
}
.page-numbers{
  background: #E06E1D;
  padding: 15px 22px;
    border-radius: 200px;
  color: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(0, 0, 0, 0.40);
  background: transparent;
}

.page-numbers.current{
  background: #E06E1D;
  padding: 15px 22px;
    border-radius: 200px;
  color: #fff;
}

.filtrosgenerales{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}



@media (max-width: 1260px) {
  .page {
    padding: 160px 50px 180px 50px;
  }

  .gallery-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .main-img-wrap {
    width: 100%;
    height: auto;
    padding: 40px 20px;
  }

  .main-img-wrap img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .productMainSwiper,
  .productMainSwiper .swiper-slide {
    height: auto !important;
  }

  .productMainSwiper img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .thumbsSwiper img {
    height: 90px;
  }
  .swiper:first-of-type .swiper-slide-active img {
    width: 100%;
    height: 587px;
    object-fit: cover;
  }
  .hero-content{
    padding: 0 0px;
  }
  .filtersSwiper .swiper-wrapper{
    gap: 0px;
  }
}

@media (min-width: 1024px) {
  .filtersSwiper {
    overflow: visible !important;
    padding-bottom: 0;
  }

  .filtersSwiper .swiper-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transform: none !important;
    width: 100% !important;
    justify-content: center;
  }
  .filtersSwiper .swiper-wrapper{
    gap: 0px;
  }
  .filtersSwiper .swiper-slide {
    width: auto !important;
  }

  .filters-pagination {
    display: none !important;
  }
 

}
@media (max-width: 1024px) {
   .swiper-pagination-bullet-active{
  width: 60px!important;
  height: 10px;
  border-radius: 10px!important;
  margin-left: 8px!important;
}
  .filters-pagination{
    margin-bottom: -33px!important;
  }
   .title-wrapper{
    
    margin-bottom: 8px;
  }
  .hero-content{
    margin-top: -30px;
  }
 .filters-swiper-wrapper{
  overflow: hidden;
  max-width: 700px;
 }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .top-section {
    flex-direction: column;
    gap: 32px;
  }
  .gallery-col {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-title2 {
    font-size: 26px;
  }
  .related-title {
    font-size: 24px;
  }
  .thumbsSwiper img {
    height: 120px;
  }
}
@media (max-width: 789px) {
  .page {
    padding: 50px 50px 180px 50px;
  }
  .thumbsSwiper img {
    height: 144px;
  }
   .filters-swiper-wrapper{
  overflow: hidden;
  max-width: 500px;
 }
 .filter-btn{
  padding: 8px 52px;
 }
}

@media (max-width: 600px) {
  .page {
    padding: 32px 18px 60px;
  }
  .main-img-wrap {
    height: 340px;
  }
  .main-img-wrap img {
    width: 220px;
    height: 300px;
  }
  .product-title2 {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rel-card .rel-img-wrap {
    height: 160px;
  }
  .rel-card img {
    max-width: 110px;
    max-height: 150px;
  }
  .details-title {
    font-size: 18px;
  }
  .related-title {
    font-size: 20px;
  }
  .thumbs {
    gap: 8px;
  }
  .swiper:first-of-type .swiper-slide-active img {
    width: 100%;
    height: 325px;
    object-fit: cover;
  }
  .productSwiper .swiper-wrapper {
    height: 325px !important;
  }
  .thumbsSwiper img {
    height: 68px;
  }
  .related-dots {
    margin-bottom: 100px;
  }
  .filters-swiper-wrapper {
    padding: 10px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
     .filters-swiper-wrapper{
  overflow: hidden;
  max-width: 350px;
 }
  .filter-btn{
  padding: 8px 52px;
 }
 .filtrosgenerales{
  width: 100%;
  justify-content: space-between;
 }
}
@media (max-width: 380px) {
  .img-hover {
    max-width: 148px;
    top: 18px;
    left: -21px;
  }
  .sombranaranja {
    top: 6px;
    left: -8px;
    width: 153px;
    height: 167px;
  }
  .rel-btn {
    font-size: 14px;
  }
  .char-row b,
  .char-val {
    font-size: 14px;
  }
  .breadcrumb span,
  .breadcrumb b {
    font-size: 14px;
  }
     .filters-swiper-wrapper{
  overflow: hidden;
  max-width: 300px;
 }
 .filter-btn{
  padding: 8px 52px;
 }
}
