@keyframes desplegar {
  0% {
    opacity: 0;
    transform: scaleY(0);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    position: relative;
}
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* para evitar scroll horizontal */
  width: 100vw;       /* 100% del viewport ancho */
     /* 100% del viewport alto, si quieres */
  
}


/****************************************Cabeceras****************************************************/
header{
    justify-content: space-between;
    display: flex;
    position: fixed;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    z-index: 100;
}
header a {
    text-decoration: none;
    color: white;
    cursor: pointer;

}
.logo{
  width: 50px;
  height: 50px;
  border-radius: 6px;
  position: absolute;
  top:-10px;
  left:-20px;
}
/**********************************Menu********************************************/
.menuPrincipal, .MenuCuenta {
    background-color: transparent;
    color: white;
    padding:20px;
    position: relative;
    z-index: 3;
    
}
.menuPrincipal ul {
    list-style: none;
    position: relative;
    left: 60px;
    gap: 60px;
    display: flex;
    padding: 0;
    align-items: center; /* Opcional: Centra verticalmente los elementos */
}
.MenuCuenta ul {
    list-style: none;
    position: relative;
    right: 50px;    
    gap: 40px;
    padding: 0;
    align-items: center;
    display: flex;

}
.MenuCuenta ul li {
  cursor: pointer;
  transition: color 0.3s ease;
}
.ContenedorMenuLateral{
  display: none;
}
/***********************************Menu Productos***********************************************/
/* El <li> que contiene "Productos" y el menú desplegable */
.dropdown {
        position: relative; /* CRUCIAL: Para que .dropdown-content se posicione con respecto a este <li> */
        display: inline-block; /* Permite que el <li> se comporte bien en línea con otros */
        
        margin-right: 20px; /* Ejemplo de espaciado, ajusta a tu diseño */
        border-radius: 5px;
        }
/* El enlace principal "Productos" dentro del dropdown */
.dropbtn {
    color: white; /* Color del texto "Productos" */
    text-decoration: none;
    font-size: 1em; /* O el tamaño de fuente que uses para tu nav */
    padding: 5px 0; /* Ajusta el padding si tus otros enlaces lo tienen */
    cursor: pointer;
    transition: color 0.3s ease;
    display: block; /* Para que el área clickable cubra todo el espacio del li */
    white-space: nowrap; /* Evita que el texto se rompa */
}

.dropbtn:hover {
    color: orange; /* Color al pasar el ratón sobre "Productos" */

}
/* El contenedor de las opciones del menú (Ropa, Artículos de Seguridad, etc.) */
.dropdown-content{        
    display: none;
    position: fixed;
    margin: 0;
    padding: 0; 
    padding-bottom: 20px;   
    flex-direction: row;
    flex-wrap: wrap;
    background-color: rgba(30, 30, 30, 0.95);
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    left: 100px;
    margin-right: 100px;
    transform-origin: top;
    opacity: 0;
    transform: translateY(-10px);
    animation: desplegar 0.3s ease forwards;
    }
    .dropdown-column{
        padding-left: 20px;
        min-width: 220px;
    }

/* Estilo para cada enlace individual dentro del dropdown-content */
.dropdown-content a {
    color: white; /* Color del texto de las opciones */
    padding: 12px 16px; /* Espaciado interno de cada opción */
    text-decoration: none;
    display: block; /* Para que cada opción ocupe su propia línea y sea un área clickable grande */
    text-align: left; /* Alinea el texto de las opciones a la izquierda */
    font-size: 0.95em; /* Ajusta si quieres un tamaño de fuente ligeramente menor */
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap; /* Evita que el texto de las opciones se rompa */
    border-right: 20px;

}

/* Efecto al pasar el ratón sobre una opción del menú desplegable */
.dropdown-content a:hover {
    background-color: rgba(255, 165, 0, 0.2); /* Fondo naranja semi-transparente al hover */
    color: #FFD700; /* Color dorado para el texto al hover */
    border-radius: 6px;
}

/* LA MÁGIA DE SOLO CSS: Mostrar el menú cuando el ratón pasa por encima del <li> principal */
.dropdown:hover .dropdown-content {
    display: flex; /* Hace visible el menú desplegable */

    flex-direction: row;
}


/* Estilos para los títulos de las categorías (e.g., Calzado de Seguridad) */
.dropdown-column h3 {
    color: white; /* Tu color de texto para los títulos */
    font-size: 1.1em; /* Ajusta el tamaño de fuente si es necesario */
    margin-top: 0;
    margin-bottom: 12px; /* Espacio debajo del título */
    padding-bottom: 8px; /* Espacio antes de la línea divisoria */
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Línea divisoria sutil */
    white-space: nowrap; /* Evita que el título se rompa */
    text-transform: uppercase; /* Opcional: Poner en mayúsculas como en la imagen */
    font-weight: bold; /* Opcional: Negrita para los títulos */
}

/* Espacio entre el icono y el texto del título */
.dropdown-column h3 i {
    margin-right: 8px;
}

/* Estilos para las listas de subcategorías */
.dropdown-column ul {
    list-style: none; /* Elimina las viñetas por defecto */
    padding: 0;
    margin: 0;
}

/* Estilos para cada elemento de subcategoría (e.g., Botas de Seguridad) */
.dropdown-column ul li {
    margin-bottom: 6px;
     /* Espacio entre las subcategorías */
}

/* Estilos para los enlaces de las subcategorías */
/* Nota: Se aplica a los <a> dentro de los <li> de las columnas */
.dropdown-column ul li a {
    
    color: rgba(255, 255, 255, 0.8); /* Un blanco un poco más tenue para las subcategorías */
    text-decoration: none;
    font-size: 0.95em; /* Ajusta el tamaño de fuente si es necesario */
    display: block; /* Hace que el enlace ocupe todo el ancho para un área de clic más grande */
    padding: 3px 0; /* Pequeño padding para espaciado */
    transition: color 0.2s ease;
    white-space: nowrap; /* Evita que el texto de la subcategoría se rompa */
}

/* Efecto al pasar el ratón sobre una subcategoría */
.dropdown-column ul li a:hover {
    background-color: transparent; /* Asegúrate de que no haya un fondo inesperado */
    color: orange; /* Tu color de hover */
}

#dropdownMenu.show {
    opacity: 1;           /* Hacerlo completamente visible */
    visibility: visible;  /* Hacerlo interactuable */
    transform: translateY(0);
    display: flex;
    flex-wrap: wrap; /* Moverlo a su posición final */
}
/* ** ESTO ES CRÍTICO: La clase que JavaScript añade para MOSTRAR el menú ** */
/**********************************Menu Login***********************/
 .MenuLogin{
  position: absolute;     
  display: none;       
  top:40px;
  right:25px;
  backdrop-filter: blur(4px);
}
.linkcuenta{
  position:absolute;
  top:-5px;
}
.linkCuenta:hover{
  color: rgb(187, 122, 1);
}
.login{
  display: flex;
  flex-direction: column;            
  height: auto;
  padding:0 40px 20px;
  background-color:rgba(255, 187, 0, 0.678);  
  border-radius: 10px;
}
.login input{
  border: none;
  padding:5px;
  border-radius: 10px;
  height: 20px;
  margin-bottom:20px;
}
.login button{
  background-color: orange;
  padding:15px;
  color:white;
  border: none;
  border-radius: 10px;
}
.login .submit{
  transition: background-color 0.2s ease;
}
.login .submit:hover{
  background-color:rgb(182, 118, 1);
}

.Recupera{
  margin-bottom: 10px;
}
/*********************************Productos detalle*******************************/
      .product-price-rel{
        font-size: large;        
      }
      .old_rel{
        text-decoration: line-through;
        color:gray
      }
      .discounted-price_rel{
        color:orange
      }
      .related-item h4{
            white-space: nowrap;         /* No permite saltos de línea */
            overflow: hidden;            /* Oculta el texto que se sale del contenedor */
            text-overflow: ellipsis;
        }    


        
.cart-button {
	position: relative;
	padding: 10px;
	width: 200px;
	height: 50px;
	border: 0;
	border-radius: 10px;
	background-color: orange;
	outline: none;
	cursor: pointer;
	color: #fff;
	transition: .3s ease-in-out;
	overflow: hidden;
}
.cart-button:hover {
	background-color: rgb(175, 114, 0);
}
.cart-button:active {
	transform: scale(.9);
}

.cart-button .fa-shopping-cart {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: -10%;
	font-size: 2em;
	transform: translate(-50%,-50%);
}
.cart-button .fa-box {
	position: absolute;
	z-index: 3;
	top: -20%;
	left: 52%;
	font-size: 1.2em;
	transform: translate(-50%,-50%);
}
.cart-button span {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 50%;
	font-size: 1.2em;
	color: #fff;
	transform: translate(-50%,-50%);
}
.cart-button span.add-to-cart {
	opacity: 1;
}
.cart-button span.added {
	opacity: 0;
}

.cart-button.clicked .fa-shopping-cart {
	animation: cart 1.5s ease-in-out forwards;
}
.cart-button.clicked .fa-box {
	animation: box 1.5s ease-in-out forwards;
}
.cart-button.clicked span.add-to-cart {
	animation: txt1 1.5s ease-in-out forwards;
}
.cart-button.clicked span.added {
	animation: txt2 1.5s ease-in-out forwards;
}
.color-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.color-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-color: #333;
}

.color-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}
.color-btn.sin-stock {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.talla-option.sin-stock label {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: not-allowed;
}
.scroll-item{
  opacity: 0;
  transform: translateY(40px);
  transition:all 0.6s ease-out;
}
.scroll-item.visible{
  opacity: 1;
  transform: translateY(0);
}


@keyframes cart {
	0% {
		left: -10%;
	}
	40%, 60% {
		left: 50%;
	}
	100% {
		left: 110%;
	}
}
@keyframes box {
	0%, 40% {
		top: -20%;
	}
	60% {
		top: 40%;
		left: 52%;
	}
	100% {
		top: 40%;
		left: 112%;
	}
}
@keyframes txt1 {
	0% {
		opacity: 1;
	}
	20%, 100% {
		opacity: 0;
	}
}
@keyframes txt2 {
	0%, 80% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
      @media (max-width: 768px) {
        .related-products{
          all:unset;          
          position: relative;

          justify-content: center;
          padding: 0;
        }
        .related-products h2{
          position: relative;
          justify-content: center;
        }

        .related-item:last-child{
          margin-right: 150px;
        }
        .swiper{
          height: auto;
          width: 100vw;
        }
        
      }



/**********************************Banner************************************************/
.banner{
    position:relative;
    top:-50px;
    left: -10px;
    width: 110%;
    align-items: center;
    display:flex;
    overflow: hidden;
    height: 600px;
    margin-bottom: 0;
}
.banner img{
    position: absolute;
    width: 100vw;
}
.banner h1 {
    position:absolute;
    top: 35%;
    left: 300px;
    color: white;
    font-size: 3em;
    z-index: 2;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.banner p {
    position: absolute;
    top: 50%;
    font-style: italic;
    left: 300px;
    color: white;
    font-size: 1.5em;
    z-index: 2;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.banner .btn {
    position: absolute;
    top: 65%;
    left: 300px;
    padding: 10px 20px;
    background-color: orange;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    z-index: 2;
}
/*****************************Buscador***********************************/
.search-container-productos {
    position: relative;
    top: 30px;
    left: 30px;
    right: 100px;
    margin: 0 auto;    
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid orange;
    border-radius: 50px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    width: 80%;    
    min-width: none;
    }

    .search-container-productos input[type="text"] {
      border: none;
      outline: none;
      padding-left:10px;
      flex-grow: 1;
      font-size: 16px;
      border-radius: 50px;
    }

    .search-container-productos button {
      background-color: orange;
      color: white;
      border: none;
      padding: 8px 18px;
      border-radius: 50px;
      cursor: pointer;
      font-size: 15px;
      transition: background-color 0.3s ease;
    }
    .search-container-productos button:hover {
      background-color: chocolate;
    }
    .div-busqueda-central{
        position: relative;
        flex: 1; 
        text-align: center;
    }
/**********************************Productos*******************************************************/
.product-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: left; /* Centra los productos */
    gap: 20px;
}

.producto-card {
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    text-align: center;
        width: 300px;

}
.producto-card img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain; /*La imagen Mantiene proporciones*/
    border-radius: 6px;
    display: block;
    margin-bottom: 12px;
    
}
.productos-header a{
  margin-top: 20px;
  height: 25px;
  font-size: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}.productos
{
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.productos h2 {
    width: 100%;
    text-align: left;
    margin-left: 15%;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.productos img {
    width: auto;
    height: 300px;
    border-radius: 10px;
}
.producto {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    padding: 20px;
}
.productos .btn {
    padding: 10px 20px;
    background-color: orange;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 2;
    cursor: pointer;
}
.container{
  border-radius: 10px;
}
.descuentoporcentaje{background-color: orange;border-radius: 5px; position: absolute ; color: white; padding: 5px;}
.product-price-rel{font-size: large;}
.old_rel{text-decoration: line-through;color:gray}
.discounted-price_rel{
        color:orange
      }
.btn {
    padding: 10px 20px;
    background-color: orange;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    z-index: 2;
    cursor: pointer;
    white-space: nowrap;
}
.select-contenedor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
}

.select-contenedor select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f8f8;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.select-contenedor select:hover {
    border-color: #888;
}

.select-contenedor select:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}
.productos-wp{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
      gap: 20px;
    padding: 20px;
    margin-bottom: 30px;
    padding: 20px;

  
}
.producto-wp{
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 350px !important;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    min-height: 370px;
    padding-right: 30px;
}
.producto-wp:last-child{
      margin-right: 100px;
}
.producto-wp img{
  width: 200px;  
  height: 200px;
  border-radius: 10px;
  transition: transform  0.6s ease;
  object-fit: contain;
}
.producto-wp img:hover{
  transform: scale(1.1);
}

.productos-header-wp{
  justify-content: space-between;
  position: relative;
  display: flex;
  width: 96%;
  left:30px;
  font-size:1.5em;
  color: #333;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.productos-header-wp a{
  margin-top: 20px;
  height: 25px;
  font-size: 20px !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.producto-wp h3{
    white-space: nowrap;         /* No permite saltos de línea */
      overflow: hidden;            /* Oculta el texto que se sale del contenedor */
      text-overflow: ellipsis;
}
/********************************************Whatsapp***********************************************************/    
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.whatsapp-float img {
    width: 35px;
    height: 35px;
    
}
/************************************Footer Sitio********************************************************/
 .footer-container {
  width: 100%;       /* ocupa todo el ancho de la ventana */
  background-color: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 40px 100px 40px 100px;
  box-sizing: border-box;  /* asegura que padding no rompa el ancho */
}

/* Contenedor de secciones */
.footer-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;  /* espacio entre columnas */
  justify-content: space-between;
}

/* Cada sección */

.footer-section {
  flex: 1 1 200px; /* crece y se encoge según espacio disponible, mínimo 200px */
  margin-bottom: 20px;
}

.footer-section h4 {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f1c40f;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-section ul li a:hover {
  color: black;

}

/* Redes sociales horizontal solo íconos */
.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 15px;
}

.social-links li a {
  color: #fff;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: #333;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links li a:hover {
  background-color: #f1c40f;
  color: #1a1a1a;
}

/* Footer inferior */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8em;
}

.footer-bottom a {
  color: #f1c40f;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsivo: tablets */
@media (max-width: 1024px) {
  .footer-section {
    width: 45%;
  }
}

/* Responsivo: móviles */
@media (max-width: 768px) {
  .footer-section {
    width: 100%;
  }
}
/**********************************Categorias***********************************************/

.categorias {
      display: flex;
      position: relative;
      top: 70px;
      justify-content: center;
      align-items: center;
      gap: 30px;
      background-color: orange;
      padding: 5px;
      border-radius: 50px;
      max-width: 900px;
      margin: 40px auto;
      box-shadow: 0 8px 16px rgba(0,0,0,0.2);
      font-family: 'Segoe UI', sans-serif;
    }
.categorias-img{
      display: none;
      position: relative;
      top: 70px;
      justify-content: center;
      align-items: center;
      gap: 30px;
      padding: 0px;
      border-radius: 50px;
      max-width: 900px;
      margin: 40px auto;
      font-family: 'Segoe UI', sans-serif;
}
.categorias-img a
{ text-align: center;
  text-decoration: none;
}
.categorias-img a img{
  width: auto;
  aspect-ratio: 1/1;
  height: 175px;
  margin: 0;
  padding:0;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

} 
.categoria-item {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 16px;
      padding: 10px 18px;
      border-radius: 30px;
      transition: background-color 0.3s ease;
    }
.categoria-item:hover {
      background-color: rgb(255, 123, 0);
      color: #fff;
   }
.contenido-principal {
    margin-top: 0;
    display: flex; /* Convierte .contenido-principal en un contenedor flex */
    flex-direction: column; /* Apila sus hijos (productos y paginador) verticalmente */
    flex-grow: 1; /* Permite que tome todo el espacio restante horizontalmente */
    }

/*********************************Filtros Productos*****************************************/

.filter-sidebar {
    width: 280px; /* Ancho fijo para el sidebar */
    min-width: 280px; /* Asegura que no se reduzca más allá de este ancho */
    padding: 20px;
    background-color: white;
    height: fit-content;
    border-radius: 10px;

}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: orange;
    text-shadow:0px 10px 10px rgba(0,0,0,.2);
}

.clear-filters-btn {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;

}
.custom-checkbox input[type="checkbox"] {
    accent-color: #ff9800;
    margin-right: 0.6em;
    width: 1.1em;
    height: 1.1em;
}
.clear-filters-btn:hover {
    background: #e67c00;
}

/* Grupos de Filtro (usando <details>) */
.filter-group {
    border: none; /* Quitamos el borde por defecto de <details> */
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.filter-group:last-of-type {
    border-bottom: none; /* Elimina el borde del último grupo */
}

.filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1em;
    color: orange;
    padding: 5px 0;
    cursor: pointer;
    list-style: none; /* Elimina el marcador por defecto */
}

/* Estilo para la flecha de expansión/colapso */
.filter-summary .filter-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.2s;
}

.filter-group[open] > .filter-summary .filter-arrow {
    transform: rotate(180deg); /* Rota la flecha cuando está abierto */
}

/* Contenedor de opciones (para padding/margin) */
.filter-options-container {
    padding-top: 10px;
    padding-left: 5px; /* Pequeño indentado para las opciones */
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

/* Estilo para los labels de checkbox/radio */
.filter-checkbox-label,
.filter-radio-label {
    display: flex; /* Para alinear el checkbox/radio con el texto */
    align-items: center;
    font-size: 0.95em;
    color: #555;
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"],
.filter-radio-label input[type="radio"] {
    margin-right: 10px; /* Espacio entre el checkbox/radio y el texto */
    /* Personalización adicional del aspecto del checkbox/radio si lo deseas */
}

/* Botón "Ver más" */
.filter-show-more {
    text-align: center;
    margin-top: 10px;
}

.btn-show-more {
    background: none;
    border: 1px solid #ddd;
    color: #007bff;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.btn-show-more:hover {
    background-color: #e9f5ff;
}

/* Botón Aplicar Filtros */
.apply-filters-btn {
    width: 100%;
    padding: 12px;
    background-color:orange;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
}

.apply-filters-btn:hover {
    background-color: orange;
}
.filter-options-container {
    display: none;
}
.clear-filters-btn-Cerrar{
  display: none;
}
/* Mostrar las opciones cuando el grupo está abierto */ 

/**********************************************Imagen Categoria Index*********************************************************************/

.tab-12{display:block; width:100%;}
.tab-3{display:block; width:25%;}
.tab-3 article h1 a{
  text-decoration: none; 
  color: white;
}
.tab-3 article h1 a:visited{
  color: inherit;     
}
.serv{
  height:70vh;
  background:#111;
  overflow: hidden;
}
.serv div{
  display:inline-block;
  float:left;
  height:100%;
  background-size:cover;
  background-position:center;
  transition:all 500ms ease-in;
}

.serv div article{
  display:block;
  margin:0 auto;
  max-width:500px;
  width:80%;
  height:100%;
  font-family:Century Gothic, Arial;
  transition:all 0s;
}

.serv div article h1{
  display:block;
  padding-top:30%;
  width:100%;
  min-height:2em;
  height:auto;
  top:25%;
  font-size:3em;
  color:#fff;
  text-shadow:0px 10px 10px rgba(0,0,0,.8);

}

.serv div article p{
  display:block;
  padding:10px;
  width:100%;
  min-height:1em;
  max-height:8em;
  top:25%;
  font-size:1.2em;
  color:#fff;
  border-radius: 10px;
  background:rgba(20,20,20,.5);
}


.serv:hover div{width:10%; opacity:.2;}
.serv:hover div article{display:none;}
.serv div:hover{width:70%; opacity:1;}
.serv div:hover article{display:block}

.sig{display:block; height:5em; line-height:5em;}

.sig ul{font-family:Century Gothic, Arial; margin:0 auto;
text-align:center; font-style:italic;
font-size:1.3em; color:#ddd; opacity:.5;}

.btn-filtro{
  display: none;
}
.filter-sidebar.is-visible {
    transform: translateX(-20%); /* Visible */
}
.swiper {
  width: 80%;
  height: auto;
  padding-right: 90px;
}
.swiper-button-next, .swiper-button-prev{
  top: 60%
}
@media (max-width: 768px) {

  .ContenedorMenuLateral{
  display: none;
  float: left;
  position: fixed;
  margin-top: -10px;
  margin-left: -10px;
  background-color: rgba(0, 0, 0, 0.9);
  width: 250px;
  height: 100%;
  box-shadow :0 5px 10px rgba(0, 0, 0, 0.5);
  color: white;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.MenuFondo{
  position:fixed;
  bottom: 0px;
}

.MenuFondo .User {
  position:absolute;
  width: 50px;
  height: 50px;
  border-radius: 55px;
  bottom: 0px;
  padding: 20px;
}
.TituloMenu{
  text-align: center;          
  border-bottom: grey solid 1px;
  width: 200px;
  height: 60px;
  position: absolute;
  right: 20px;
  text-decoration: none;
}
.OpcionesMenu{ /*Es el contenedor de Menus*/
  display: grid;
  grid-template-columns: repeat(2);
  position: absolute;
  top:60px;
  width: 200px;
  padding-bottom: 20px;
  border-bottom: grey solid 1px;   
  list-style: none; 
}
.OpcionMenu {         /*Es cada Opcion Principal*/   
  border-radius: 5px; 
  width:100%; 
  margin-bottom: 5px;
  
     
}
.OpcionMenu a {         /*Es cada Opcion Principal*/   
  display: block;
  padding:10px;
  border-radius: 5px; 
  width:150px; 
  border-bottom: solid 1px orange;
  margin-right: 5px;     

}
.OpcionesMenu i{
  float:right
}
.OpcionMenu:hover a{   /*Cuando uno pasa el Mouse encima*/
  background-color: rgb(255, 145, 0);
}
.Submenu ul{ /*oculta los submenu*/
  display: none;
  margin-top: 15px;
  list-style: none;
  margin-left: -25px;
 }
.SubmenuOpcion{ /*da estilo al submenu*/
  margin-bottom: 5px;
  
  border-radius: 5px; 
  width:100%;   
 }
 .SubmenuOpcion:hover a{ /*da estilo al submenu*/
  background-color:  rgb(2, 83, 175) !important  ;
 }

.OpcionesMenu a{
  text-decoration: none;
  color:white;
}
#btn-menu, .LabelBTN{
  display: none;
  position: absolute;
  cursor: pointer;
  z-index: 9999;
}
    .swiper-wrapper {
    padding-right: 100px;
  }
  .productos-header-wp{
    flex-direction: column;
  }
  .productos-header-wp a{
    width: 110px;
  }
  .logo{
    width: 50px;
    top: 50px;
    left:50px;
    margin-bottom: 20px;
    display: block;
  }
  .OpcionesMenu{
    margin-top: 50px;
  }
  header .menuPrincipal ul li img{
    display:none;
  }

  .select-contenedor{
    position: relative;
    left: 40px;
  }
  .MenuCuenta .linkCuenta{
    position:absolute;
    top:10px;
    display: none;
  }
  .producto{
    left: 50px;
    height: 200px;
  }
  .producto-card{
    all:unset;
    left: 25px;
    max-width: 40%;
    width: auto;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: auto;
    padding-bottom: 20px;
  }
  .producto-card h3{
    margin-left: 10px;
  }
    .producto-card .btn{
    left: 25px;
    max-width: 40%;
    width: auto;
    position: relative;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;


  }
  .producto-card img{
    all:unset;
    width: 90%;
    padding: 5px;
    height: min-content;
    height: 200px;
    object-fit:scale-down;   
    display: block;
  }
    .producto-card p{
      margin-left: 10px;
  }
  .product-grid {
      all:unset;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 20px;
      left: 20px;
      width: 420px;

      }

  .categorias{
    display: none;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    flex-wrap: wrap;
    width: 80vw;
    background-color: transparent;
  }
  .categorias-img{
    display: flex;
    gap:20px;
    position: relative;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 98vw;
    margin-top: 50px;
    margin: 0;
    background-color: transparent;
  }

  .categoria-item{
    background-color: orange;
  }
  .filter-sidebar{
    position:fixed;      
    top: 0;
    left:60px;
    bottom:0;
    overflow-y: scroll;
    transform: translateX(-160%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    height: 90%;
    background-color: white;
    color:white;
  }
    .filter-header h3, .filter-summary ,.custom-checkbox {
    color: orange;
    }
    .btn-filtro{
      display: block;
      z-index: 0;
    }
    .search-container{
      display: block;
      z-index: 500;
      left: -110px;
      width: 300px;
    }
      .catalogo {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        margin-top: 0;
      }
      .filtro {
        width: 100%;
      }

      .ContenedorMenuLateral{
        color: white;  
        display: block;
        transform: translateX(-100%);
        transition: all 0.3s;
        position:fixed;
        top:0;
        z-index: 9000;
        width: 80%;
      } 
      .LabelBTN{
        display: block;
        position: fixed;
        top:15px;
        left: 10px;
        color: rgb(255, 255, 255);
        font-size: 40px;
        z-index: 101;
      }
      #btn-menu:checked ~ .ContenedorMenuLateral{
        transition: all 0.3s;
        transform: translateX(0%);         
      }
      #btn-menu:checked ~ #LabelBTN{
        color:white;
      }
      header .menuPrincipal li a{
        display: none;
      }
      .categorias {
        position: relative;
        top: 25px;
        width: 100%;
        padding: 10px;
        flex-wrap: wrap;
        justify-content: center;
      }
      .layout {
        flex-direction: column;
        align-items: center;
      }
      .tab-12, .serv{
        display: none;
      }

      .promo-small {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
      }

      .promo-box {
        max-width: 300px;
      }
      .banner{
        width: 105vw;
        margin:0;
      }
      .banner img{
        width: auto;
      }
      .banner h1{
        top: 150px;
        z-index: 0;
      }
      .banner p {top:350px;}
      .banner .btn{top:90%;left:20px;backdrop-filter: blur(3px); background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(3px);border:solid 1px white; color:white;}
      .banner h1, .banner p {
        left: 20px;
        width: 90%;
        width: calc(100% - 40px);
        z-index: 0;
        text-align: center;
      }  
      .categorias {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        border-radius: 20px;
      }
      
      .categoria-item{
        font-size: 14px;
        padding: 8px 12px;
      }
      .product-images{
        width: 85vw;;
      }
      .menuPrincipal{
        display: none;
      }
    .search-container-productos{
        
        width: 90%;
        top:20px;
        left:45px
    }

      /* Estilos para el contenedor del formulario dentro del menú lateral */


}

.categorias-img-index {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr); /* 2 por fila en móvil */
  align-items: stretch;
  padding: 8px;
  padding-right: 20px;
}

/* A partir de 640px (tablet en adelante) oculta todo */
@media (min-width: 640px){
  .categorias-img-index{
    display: none;
  }
}

.categoria-banner-img{
  position: relative;
  display: block;
  color: white;
  text-decoration: none;
  overflow: hidden;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  aspect-ratio: 4 / 3;
  min-height: 100px;
}
.categoria-banner-img__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.45) 100%);
}
.categoria-banner-img__title{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  margin: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.45);
}
.categoria-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* mantiene proporción, nunca se defodddrma */
}