/* --------------------------------------------------------------------------
   01. UTILIDADES Y GLOBALES
   -------------------------------------------------------------------------- */
.m-1-r {
  margin: 0.5rem;
}
.descripcion p strong {
  color: var(--negro);
}
.descripcion__texto p {
  color: var(--negro);
}

/* --------------------------------------------------------------------------
   02. BREADCRUMB (Migas de pan)
   -------------------------------------------------------------------------- */
.bread-crumb {
  padding: 2rem;
}
.categorias__link i {
  margin-right: 1rem;
}

/* --------------------------------------------------------------------------
   03. GALERÍA VISUAL Y MINIATURAS
   -------------------------------------------------------------------------- */
.detalles__visual--contenido {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}
.detalles__visual--opciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  justify-items: center;
}
.detalles__visual--miniatura {
  border: 2px solid var(--gris-mid);
  padding: 5px;
  width: 10rem;
  margin-bottom: 20px;
  cursor: pointer;
  border-radius: 0.5rem;
}
.detalles__visual--miniatura:hover {
  border: 3px solid var(--primario);
}
.detalles__visual--imagen {
  grid-row: 1;
}
.detalles__visual--producto {
  display: flex;
  justify-content: center;
}
.hero {
  width: 29.5rem;
}

/* --------------------------------------------------------------------------
   04. ETIQUETAS Y AVISOS
   -------------------------------------------------------------------------- */
.avisos__productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-top: 0.5rem;
}
.promocion__aviso,
.nuevo__aviso,
.agotado__aviso,
.enviogratis__aviso {
  color: var(--blanco);
  border-radius: 0.3rem;
  padding: 0 0.3rem 0 0.3rem;
  text-transform: uppercase;
  width: auto;
  font-size: 1.2rem;
  cursor: default;
}
.enviogratis__texto {
  align-items: center;
  background-color: var(--blanco);
  padding: 0.5rem 0;
  position: fixed;
  top: 5.5rem;
}
.enviogratis__texto img {
  width: 5rem;
}
.enviogratis__texto p {
  padding: 0 1rem;
  color: #00a650;
}
.agotado__texto--ribbon {
  font-size: 1.2rem;
  position: fixed;
  top: 0;
}
.agotado__texto--ribbon h1 {
  background-color: var(--blanco);
  padding: 0 1rem;
}

/* --------------------------------------------------------------------------
   05. ENCABEZADOS DE PRODUCTO (Títulos, SKU, Precios)
   -------------------------------------------------------------------------- */
.product-detail-name {
  font-family: Poppins;
  font-size: 2.4rem;
  color: var(--negro);
  line-height: 1.5;
  padding: 1rem;
}
.product-detail-SKU {
  font-size: 2rem;
  font-family: Poppins;
  color: var(--gris-mid);
  padding: 0 1rem 1rem 1rem;
}
.precio__producto {
  font-size: 2.2rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   06. TABLA DE DESCRIPCIÓN
   -------------------------------------------------------------------------- */
.des-table {
  border: 1px solid #f5f5f5;
  border-collapse: collapse;
  width: 100%;
}
.striped-specs {
  border-collapse: separate;
  border-radius: 5px;
  overflow: hidden;
  table-layout: fixed;
}
.des-table__body {
  display: table-row-group;
}
.striped-specs__row {
  border: none;
  display: flex;
  width: 100%;
}
.striped-specs__row:nth-of-type(odd) {
  background: rgba(0, 0, 0, .04);
}
.des-table__row {
  border: 0;
  display: table-row;
  box-shadow: none;
}
.striped-specs__row__column {
  background-color: inherit;
  border: none;
  font-size: 12px;
  overflow: hidden;
  overflow-wrap: break-word;
  padding: 12px;
  text-align: left;
  white-space: break-spaces;
  width: 50%;
  word-break: break-word;
}
.des-table__header,
.des-table__column {
  box-shadow: none;
  display: table-cell;
  padding: 15px 16px;
  text-align: left;
  vertical-align: middle;
  white-space: normal;
}
.des-table__header__container {
  background-color: transparent;
  border: none;
  display: block;
  font: inherit;
  padding: 0;
}
.des-table__column--value {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   07. CONTROLES DE COMPRA Y SESIÓN 
   -------------------------------------------------------------------------- */
.contenedor__botonesesion {
  display: flex;
  justify-content: space-evenly;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.botones__sesion--iniciada span {
  display: grid;
  text-align: center;
  font-family: Poppins;
  color: var(--negro);
}
.botones__sesion--iniciada span small {
  font-size: 1.2rem;
  color: var(--negro);
}
.botones__sesion--iniciada .agregarmas {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.agregarmas {
  display: flex;
  justify-content: center;
}
.agregarmas__botones {
  width: 4rem;
  height: 4rem;
  background-color: var(--primario);
  color: var(--blanco);
  font-size: 1.2rem;
}
.agregarmas__botones:active {
  background-color: var(--primario-oscuro);
  color: var(--verde-dinero);
}
.agregarmas__contador,
.agregarmas__contador--compras {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--gris-light);
  width: 6rem;
  height: 4rem;
}
.agregarmas__contador input,
.agregarmas__contador--compras input {
  width: 4rem;
  text-align: center;
}
input.num-product {
  -moz-appearance: textfield;
  appearance: none;
  -webkit-appearance: none;
}
input.num-product::-webkit-outer-spin-button,
input.num-product::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.agregarcarrito__contenedor--boton,
.iniciarsesion__contenedor--boton {
  height: 4rem;
}
.iniciarsesion__contenedor,
.agregarcarrito__contenedor {
  width: 100%;
}

/* Dropdown de Descripción */
.descripcion__texto {
  padding: 1rem 2rem;
}
.show-dropdown-content .down-mark {
  display: block;
}
.show-dropdown-content .up-mark {
  display: none;
}

/* --------------------------------------------------------------------------
   08. TABLA DE COMPATIBILIDAD Y THEME DARK
   -------------------------------------------------------------------------- */
.compatibilidad__titulo {
  padding: 3rem 0 3rem 0;
}
.datos__compatibilidad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-weight: 700;
}
.info__compatibilidad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Reglas Dark Theme para Detalles */
.main__theme--dark .datos__compatibilidad th {
  color: var(--blanco) !important;
}
.main__theme--dark .productos__compatibilidad table {
  --bs-table-striped-bg: rgba(0, 0, 0, 0.2);
  --bs-table-bg: var(--gris);
}
.main__theme--dark .detalles__informacion .agregarmas__contador span {
  color: var(--primario) !important;
}
.main__theme--dark .descripcion strong {
  color: var(--blanco) !important;
}

/* --------------------------------------------------------------------------
   09. PRODUCTOS RELACIONADOS
   -------------------------------------------------------------------------- */
.productos__relacionados {
  padding-top: 4.5rem;
  padding-bottom: 10rem;
}
.sec-title h3 {
  padding: 0 0rem 2rem 3rem;
  font-family: 'Poppins';
}

.wrap-slick2 .slick-slide {
  margin: 1rem; 
}
.slick-next,
.slick-prev {
  z-index: 3;
  right: 0;
}

/* Estructura Tarjetas */
.home__pr {
    border: 1px solid var(--gris-mid);
    background-color: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.home__pr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.productos__informacion {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.productos__informacion .wrap-pic-w {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
    background-color: #f8f9fa;
    width: 100%;
}

.productos__informacion .wrap-pic-w a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20rem;
    width: 100%;
    padding: 1rem;
}

.productos__informacion img {
    max-height: 18rem;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.block2-txt {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.block2-brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.block2-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 5.4rem;
}

.home__pr:hover .block2-name {
    transition: 0.8s;
    height: max-content;
}

.descripcion-producto {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    height: 100%;
}

.precio__imgprove {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.precio__producto {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primario);
    margin: 0;
}

.precio__producto.price {
    color: var(--primario);
}

.line_through-red {
    display: block;
    font-size: 1.3rem;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #de0007;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.sku_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #e5e7eb;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.sku_label,
.sku_value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: #4b5563;
    padding: 0;
}

.sku_value {
    font-weight: bold;
    color: #111827;
}

.home__pr .avisos__productos {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 10;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: flex-start;
    width: 90%;
    padding-top: 0; 
}

.home__pr .promocion__aviso,
.home__pr .nuevo__aviso,
.home__pr .agotado__aviso,
.home__pr .enviogratis__aviso {
    color: var(--blanco);
    border-radius: 0.3rem;
    padding: 0.2rem 0.6rem;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: default;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   10. MEDIA QUERIES (Responsive Design)
   -------------------------------------------------------------------------- */
/* Dispositivos Móviles */
@media (max-width: 800px) {
  .sec-title,
  .sec-title h3 {
    font-size: 0px;
    height: 0px;
    visibility: hidden;
    position: absolute;
  }
}

.mobiledevice .detalles {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}
.mobiledevice .info__compatibilidad,
.mobiledevice .datos__compatibilidad {
  font-size: 1rem;
}

.mobiledevice .block2-txt {
    padding: 1rem;
}
.mobiledevice .block2-name {
    font-size: 1.15rem;
    height: 4.5rem;
    margin-bottom: 0.5rem;
}
.mobiledevice .precio__producto {
    font-size: 1.6rem;
}
.mobiledevice .sku_label,
.mobiledevice .sku_value {
    font-size: 0.95rem;
}
.mobiledevice .sku_row {
    margin-bottom: 1rem;
}

/* Escritorio */
.desktop .descripcion {
  display: grid;
  padding: 1rem;
}
.desktop .botones__sesion {
  width: 50rem;
}
.desktop .detalles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.desktop .botones__sesion--iniciada {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.desktop .botones__sesion--iniciada span {
  text-align: justify;
}
.desktop .agregarmas__contador {
  width: 10rem;
}
.desktop .slick__img {
  width: 37rem;
  height: 37rem;
}
.desktop .block2__contenedor {
  padding: 1rem;
  max-height: 55rem;
}
.desktop .info__compatibilidad,
.desktop .datos__compatibilidad {
  font-size: 1.5rem;
}