.container{
  margin-top: 80px;
}

/* Estilos para el contenedor del producto */
.img-producto {
position: relative;
overflow: hidden; /* Oculta el contenido que sobresale del contenedor */
border-radius: 15px; /* Borde redondeado para el contenedor */
height: 600px; /* Ajusta la altura del contenedor */
}

/* Estilos para la imagen del producto */
.img-producto img {
max-width: none; /* Anula el máximo ancho de la imagen */
width: 100%; /* Establece el ancho al 100% del contenedor */
height: 100%; /* Permite que la altura se ajuste automáticamente */
object-fit: cover; /* Cubre todo el contenedor manteniendo la proporción */
display: block; /* Muestra la imagen como un bloque */
margin: 0;
}


.miniaturas-img {
height: 200px;
max-width: 100%;
position: static;
margin-top: 20px;
display: flex;
justify-content: flex-start; /* Alinea las miniaturas al principio */
gap: 40px; /* Espacio entre las miniaturas */
}

.miniatura {
max-width: 120px; /* Tamaño máximo de las miniaturas */
max-height: 120px; /* Altura máxima de las miniaturas */
cursor: pointer; /* Cambia el cursor al pasar sobre las miniaturas */
transition: transform 0.2s ease; /* Efecto de transición al pasar el cursor */
}

.miniatura:hover {
transform: scale(1.1); /* Aumenta ligeramente el tamaño al pasar el cursor */
}




/* Estilos para el texto del producto */
.detalles-producto {
padding: 30px; /* Aumenta el espacio alrededor del contenido */
background-color: #ffffff; /* Color de fondo del contenedor */
border-radius: 15px; /* Borde redondeado para el contenedor */
height: 400px; /* Ajusta la altura del contenedor */
overflow: auto;

}

.detalles-producto h1 {
  font-size: 28px; /* Tamaño de fuente más grande para el título */
  margin-bottom: 10px; /* Agrega espacio después del título */
}

.detalles-producto p {
  font-size: 16px !important; /* Tamaño de fuente más grande para el texto */
  line-height: 1.5; /* Espaciado entre líneas del texto */
  margin-bottom: 15px; /* Agrega espacio después de cada párrafo */
  text-align: justify !important;
}

/* Estilos para el botón de cotización */
.cotizar-btn a.btn {
font-size: 24px; /* Tamaño de fuente más grande para el botón */
padding: 12px 24px; /* Espaciado interno del botón */
border-radius: 8px; /* Borde redondeado para el botón */
background-color: #902423; /* Color de fondo personalizado */
color: #fff; /* Color del texto */
border: none;
transition: transform 0.3s ease; /* Agrega una transición suave al botón */
margin-left: 24px;
margin-top: 45px;
}

.cotizar-btn a.btn:hover {
transform: scale(1.1); /* Aumenta el tamaño del enlace al 110% al pasar el mouse sobre él */
}

/*                         SIMPLIFICADOR               */


/* === CONTENEDOR PRINCIPAL === */
.main-container {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  max-width: 1300px;      /* ancho total sidebar + grid */
  margin: 20px;
  padding: 20px;
  box-sizing: border-box;
}

/* === PANEL DE FILTROS (SIDEBAR) === */
.filter-panel {
  width: 270px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  height: max-content;
  transition: all 0.3s ease;
}

.filter-panel-title {
  margin-top: 0;
  color: #7a0026;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-size: 1.3em;
  font-weight: bold;
}

.filter-section {          /* Ajusta según necesidad */          /* Activa el scroll vertical */
  padding: 1rem;
}

.icono-tachita{
  display: none;
}


.filter-section-title {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.filter-option {
  display: block;
  margin-bottom: 5px;
  color: #444;
  cursor: pointer;
}

.filter-option input {
  margin-right: 8px;
}

.price-range {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.price-input {
  width: 70px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === ÁREA DE PRODUCTOS === */
.products-area {
  flex-grow: 1;
  margin-top: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila */
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

/* === TARJETA DE PRODUCTO === */
.product-card {
  transition: transform 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.product-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-content {
  padding: 15px;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 80px;
}

.product-name {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 1.5s ease;
  color: #555;
  font-size: 0.95em;
  margin: 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  background-color: #ffffff;
  height: 63%;
}

.product-card:hover .product-name {
  opacity: 1;
  transform: translateY(0);
}

.product-code {
  font-size: 0.9em;
  margin: 0 0 10px;
  color: #333;
  font-weight: 600;
}

/* === BOTÓN PARA MOSTRAR FILTROS (MÓVIL) === */
.show-filters-btn {
  display: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {

  .icono-tachita{
    display: block;
  }

  .filter-section {
  max-height: 80vh;            /* Ajusta según necesidad */
overflow-y: auto;            /* Activa el scroll vertical */
  padding: 1rem;
}


  .main-container {
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 10px;
  }

  .filter-panel {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    padding: 20px;
    margin-top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    height: auto;
  }

  .filter-panel.visible {
    display: block;
    animation: slideDown 0.3s ease-in-out;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .show-filters-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #900e36;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    text-align: center;
    position: fixed;
    top: 30px;
    right: 20px;
    z-index: 2000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
  }

  .show-filters-btn:hover {
    background-color: #7a0026;
  }
}

@media (max-width: 480px) {
  .product-name {
    font-size: 1em;
  }

  .product-price {
    font-size: 1em;
  }

  .add-to-cart-btn {
    font-size: 0.9em;
    padding: 8px 16px;
  }

  .show-filters-btn {
    margin-top: 74px;
  }
}

/* === ANIMACIONES === */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.filter-panel.animating-out {
  animation: slideUp 0.3s ease forwards;
}

.banner-simplificador {
  width: 100%;
  background: linear-gradient(135deg, #7a0026 0%, #5a001c 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-bottom: 5px solid #ffbf00;
  z-index: 10;
  margin-top: 55px;
}

.banner-simplificador h2 {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff; /* Amarillo IAESYESA */
  margin: 0;
  letter-spacing: 1.2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.8s ease;
}

.banner-simplificador::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 193, 7, 0.1); /* Círculo decorativo */
  border-radius: 50%;
  z-index: 0;
}

.banner-simplificador::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 160px;
  height: 160px;
  background: rgba(255, 193, 7, 0.07);
  border-radius: 50%;
  z-index: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .banner-simplificador {
    padding: 40px 15px;
  }

  .banner-simplificador h2 {
    font-size: 1.8em;
  }
}

/* Checkbox estilizado */
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  user-select: none;
}

/* Cuadro uniforme */
.filter-option input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #7a0026;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease, border 0.3s ease;
  flex-shrink: 0; /* evita que se encoja */
}

/* Check personalizado */
.filter-option input[type="checkbox"]:checked {
  background-color: #7a0026;
  border-color: #7a0026;
}

/* Palomita blanca */
.filter-option input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.filter-option input[type="checkbox"]:checked::after {
  opacity: 1;
}

/* Texto tachado si está marcado */
.filter-option input[type="checkbox"]:checked + span {
  text-decoration: line-through;
  color: #999;
  transition: 0.2s ease;
}

.icono-tachita {
    float: right;
    color: #7b1426;
    font-size: 11px;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    margin-top: -32px;
    margin-right: 5px;
}

.icono-tachita:hover {
  transform: scale(1.2);
  color: #d6a300; /* amarillo oscuro IAESYESA */
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}




