/* ===== CONTENEDOR GENERAL ===== */
.product-wrapper {
  max-width: 1440px;
  margin: 80px auto 0;
  padding: 30px 20px 5px 20px;
  background: #fff;
}

.producto-detalle {
  background: #ffffff;
  border-radius: 24px;
  padding: 2rem 3rem;
}

.fila-1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.col-img {
  max-width: 90%;
  margin: 0 auto;
}

.imgPri {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #f0f2f4;
}

.imgPri img {
  width: 80%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.04));
}



.imgPri img:hover {
  transform: scale(1.02);
}

.imgSec {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.75rem 0;
}

.imgSec img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.imgSec img:hover {
  border-color: #475567;
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(0, 82, 180, 0.15);
}

.col-info {
  padding-right: 0.5rem;
}

.info-principal {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-principal .tittleMay {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: #475567;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.precioAll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  padding: 1rem 0;
}

.info-principal .precio {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  color: #5F90B5;
}

.info-principal .price-old {
  font-size: 1rem;
  text-decoration: line-through;
  font-weight: 400;
}

.info-principal .price-current {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.info-principal .precio-nota {
  font-size: 1.3rem;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.countAll {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
}

.countdown {
  font-size: 0.875rem;
  color: #475567;
  background: #5f90b51f;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: inline-block;
  width: fit-content;
}

.metaPro {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  line-height: 1.6;
}

.meta {
  font-size: 14px;
}

.stock {
  font-size: 0.938rem;
  color: #475567;
  background: #5f90b51f;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.stock strong {
  font-weight: 600;
  color: #475567;
  margin-right: 0.25rem;
}

.detCart {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
  width: 100%;
}

.cantCart {
  flex: 0 0 auto;
}

.butCart {
  flex: 1 1 auto;
}

.input-quantity {
  width: 90px;
  height: 54px;
  padding: 0 0.5rem;
  border: 1px solid #d8dde3;
  border-radius: 12px;
  font-size: 1.063rem;
  font-weight: 450;
  color: #101214;
  text-align: center;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.input-quantity:focus {
  outline: none;
  border-color: #5F90B5;
  box-shadow: 0 0 0 3px rgba(0, 82, 180, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.butCart .btn-add-to-cart {
  height: 54px;
  padding: 0 2.5rem;
  width: 50%;
  max-width: 100%;
}

.butCart .btn-add-to-cart:hover {
  font-size: 14.5px;
}

.codigo {
  font-size: 0.938rem;
  color: #475567;
  gap: 0.2rem;
  padding: 2px 0;
  display: flex;
  align-items: center;
}

.codigo strong {
  font-weight: 600;
  color: #475567;
  min-width: 70px;
  display: inline-block;
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.938rem;
  color: #475567;
  padding: 2px 0;
}

.marca strong {
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
}

.marca a {
  color: #0052b4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 450;
  transition: color 0.2s ease;
  line-height: 1;
}

.marca a:hover {
  color: #003d8c;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.marca img {
  height: 26px;
  width: auto;
  border-radius: 4px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  display: block;
}

.marca img:hover {
  filter: grayscale(0%);
}

.marca a:not(:has(img)) {
  padding: 0.25rem 0;
}


.etiquetas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.etiqueta {
  font-size: 0.813rem;
  color: #475567;
  background: #5f90b51f;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #eaecf0;
  font-weight: 450;
  letter-spacing: 0.01em;
}

.etiqueta:hover {
  background: #e9ecf2;
  transform: translateY(-0.5px);
}

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid #e6e9ee;
  margin-bottom: 2.25rem;
}

.tab {
  padding: 0.875rem 2rem;
  background: transparent;
  border: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475567;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tab:hover {
  color: #5F90B5;
}

.tab.active {
  color: #5F90B5;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #0052b4;
  border-radius: 1px 1px 0 0;
}

.tab-content {
  width: 100%;
  display: none;
  padding: 1.75rem 0;
  animation: fadeSlide 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detPro,
.atriPro,
.tab-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.detPro img,
.atriPro img {
  max-width: 100%;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
}

.detPro {
  font-size: 1rem;
  line-height: 1.85;
  color: #1f2c3a;
}

.detPro p {
  margin: 0;
}

.atriPro {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
}

.tabla-atributos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.938rem;
}

.tabla-atributos tr {
  border-bottom: 1px solid #edeff2;
}

.tabla-atributos tr:last-child {
  border-bottom: none;
}

.tabla-atributos td {
  padding: 1.125rem 0.75rem;
  color: #3e4e62;
  text-align: center;
}

.tabla-atributos td:first-child {
  font-weight: 600;
  color: #1f2c3a;
  width: 38%;
  background: #fafbfc;
}

.tabla-atributos td:last-child {
  color: #101214;
  font-weight: 450;
}

.producto-detalle {
  position: relative;
}

.producto-detalle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2.5rem;
  right: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, #0052b4 0%, #4d8fd8 100%);
  opacity: 0.15;
  border-radius: 2px 2px 0 0;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 0.5;
}

.input-quantity:hover {
  border-color: #b3bcc9;
}

/* =========================
   TABLET (<= 1024px)
========================= */
@media (max-width: 1024px) {

  .fila-1 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .col-img {
    max-width: 100%;
  }

  .imgPri img {
    width: 70%;
    max-height: 360px;
  }

  .producto-detalle {
    padding: 2rem;
  }

  .info-principal .tittleMay {
    font-size: 1.6rem;
  }

  .butCart .btn-add-to-cart {
    width: 100%;
  }
}


/* =========================
   MOBILE (<= 768px)
========================= */
@media (max-width: 768px) {

  .product-wrapper {
    margin-top: 60px;
    padding: 20px 10px;
  }

  .producto-detalle {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .fila-1 {
    gap: 2rem;
  }

  .imgPri {
    padding: 1.2rem;
  }

  .imgPri img {
    width: 85%;
    max-height: 300px;
  }

  .imgSec img {
    width: 60px;
    height: 60px;
  }

  .info-principal {
    gap: 0.6rem;
  }

  .info-principal .tittleMay {
    font-size: 1.4rem;
    text-align: center;
  }

  .precioAll {
    align-items: center;
    text-align: center;
  }

  .info-principal .precio {
    justify-content: center;
  }

  .stock {
    margin: 0 auto;
  }

  .metaPro {
    text-align: center;
  }

  .detCart {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .cantCart {
    width: 100%;
  }

  .input-quantity {
    width: 100%;
  }

  .butCart {
    width: 100%;
  }

  .butCart .btn-add-to-cart {
    width: 100%;
  }

  .codigo,
  .marca {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .marca a {
    justify-content: center;
  }

  .etiquetas {
    justify-content: center;
  }

  /* TABS */
  .tabs {
    overflow-x: auto;
    gap: 0;
  }

  .tab {
    padding: 0.75rem 1.2rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .tab-content {
    padding: 1.2rem 0;
  }

  .tabla-atributos td {
    padding: 0.8rem 0.5rem;
    font-size: 0.85rem;
  }
}


/* =========================
   MOBILE PEQUEÑO (<= 480px)
========================= */
@media (max-width: 480px) {

  .imgPri img {
    width: 95%;
    max-height: 260px;
  }

  .info-principal .tittleMay {
    font-size: 1.2rem;
  }

  .info-principal .price-current {
    font-size: 1.3rem;
  }

  .input-quantity {
    height: 48px;
  }

  .butCart .btn-add-to-cart {
    height: 48px;
    font-size: 0.85rem;
  }

  .countdown {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }

  .etiqueta {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
}