/* -------------------------------- Header Style -------------------------------- */

.search{
     display: flex;
     align-items: center;
     justify-content: center;
}
.search .search-button{
     margin: 6px;
     color: white;
     background: black;
     width: 36px;
     height: 36px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0px 0px 6px #0000001a;
     text-decoration: none;
     border-radius: 100%;
     border: 1px solid white;
     cursor: pointer;
     transition: all .4s ease;
}
.search .search-button:hover{
     background: white;
     color: black;
}

/* ----------------- Add more margin to display shadows on slidershow ------------------ */

.splide--draggable>.splide__track{
    padding-bottom: 40px;
}
/* -------------------------------- Main Slider Style -------------------------------- */

.carrusel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carrusel a{
  position: absolute;
  width: 100%;
  height: 100%;
}

.carrusel .titulo span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px); 
  margin-right: 10px;
}

.carrusel .main-title {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 100%;
  max-width: 50%;
  text-align: left;
}

.carrusel .titulo {
  position: relative;
  text-align: left;
  z-index: 10;
}

.carrusel .fecha {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 50%;
    text-align: right;
    z-index: 10;
}

.carrusel .date{
  opacity: 0;
}

.carrusel .category{
  opacity: 0;
}

/* Estilo de la imagen */
.carrusel .image {
  width: 100%;
  padding-top: 100%;
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  bottom: 0;
}

/* Opcional para centrar contenido en el slider */
.carrusel .slider {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.carrusel .arrow{
  opacity: 0;
}

.slider-container{
  position: relative;
}

/* -------------------------------- Search Box Style -------------------------------- */
 .search-box{
     position: fixed;
     width: 100%;
     height: 100%;
     top: 0;
     left: 100%;
     background: #00000080;
     backdrop-filter: blur(10px);
     z-index: 6666;
     display: flex;
     align-items: center;
     justify-content: center;
}
 .search-box .content{
     width: 100%;
     max-width: 900px;
     padding: 0 20px;
}
 .search-box .content .search-text{
     font-size: 30px;
     font-weight: 700;
     color: white;
     margin-bottom: 20px;
}
 .search-box .content .search-field{
     width: 100%;
     background: #0000008c;
     border: 0;
     padding: 12px;
     font-size: 26px;
     color: white;
     margin-right: 3px;
}
 .search-box .content .search-submit{
     padding: 15px;
     color: white;
     background: black;
     letter-spacing: 1px;
     cursor: pointer;
     border: 0;
     font-size: 20px;
     font-weight: 100;
     transition: all .4s ease;
}
 .search-box .content .search-submit:hover{
     color: black;
     background: white;
}
 .search-box .content .close{
     color: white;
     background: black;
     width: 36px;
     height: 36px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0px 0px 6px #0000001a;
     text-decoration: none;
     border-radius: 100%;
     cursor: pointer;
     transition: all .4s ease;
     margin: 20px auto;
}
 .search-box .content .close:hover{
    background: white;
    color: black;
}
 @media only screen and (max-width: 920px) {
     .search-box .content .search-submit{
         width: 100%;
    }
     
    .search-box .content .search-field{
     margin-right: 0;
     margin-bottom: 0px;
     text-align: center;
     font-size: 20px;
    }
}

/* -------------------------------- Dynamic Box -------------------------------- */

.dynamic-box{
  opacity: 0;
  transform: translateX(-100%);
}

/* -------------------------------- Share Box Style -------------------------------- */
.share-box{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    align-items: center;
    flex-wrap: wrap;
}
 .share-box span{
     font-size: 12px;
}
 .share-box a{
     margin: 6px;
     background: white;
     width: 36px;
     height: 36px;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0px 0px 6px #0000001a;
     text-decoration: none;
     border-radius: 100%;
     border: 1px solid white;
}

.share-text{
    width: 100%;
    text-align: center;
}

.share-buttons{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* -------------------------------- El Layout para la pagina de los productos -------------------------------- */

.woo-category-products {
  display: grid;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.woo-category-products.woo-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.woo-category-products.woo-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.woo-category-products.woo-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.woo-pagination {
  margin-top: 2rem;
  text-align: center;
}

.woo-pagination .page-numbers {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
}

.woo-pagination .page-numbers.current {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .woo-category-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .woo-category-products {
    grid-template-columns: 1fr;
  }
}

.woo-spinner {
  display: none;
  text-align: center;
  padding: 20px;
}

.woo-spinner.active {
  display: block;
}

.woo-spinner::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.woo-pagination {
  margin-top: 20px;
  text-align: center;
}

.woo-pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.woo-pagination a:hover {
  background-color: #f0f0f0;
  border-color: #aaa;
}

.woo-pagination a.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* -------------------------------- Menu Interactivo -------------------------------- */

.interactive-item {
  position: relative;
  display: flex;
  overflow: hidden; 
  margin-bottom: 10px;

}

.interactive-item .post-title{
  line-height: 1;
  letter-spacing: -5px;
  font-size:6rem;
  color:black;
  position:relative
}

.interactive-item .post-title::before{
  content: '';
  position: absolute;
  height: 1px;
  width: 100%;
  bottom: 0;
  left: -100%; /* Inicia fuera del elemento */
  background-color: black;
  transition: left 0.3s ease; /* Controla la velocidad del borde */
}

.interactive-item .post-title:hover::before {
  left: 0; /* Mueve el borde de derecha a izquierda */
}

.interactive-item .arrow{
  font-family: 'Material Symbols Outlined';
  width:0px;
  height:100px;
  position:relative;
  left:-100%;
  transition:all .6s ease;
  font-size: 60px;
  color: black;
}

.interactive-item:hover .arrow{
  font-family: 'Material Symbols Outlined';
  width:100px;
  height:100px;
  position:relative;
  left:0%;
  font-size: 60px;
  color: black;
}

/* -------------------------------- Woocommerce -------------------------------- */

.added_to_cart{
    margin: 0 10px;
    background: #000000;
    padding: 0.388em 1em;
    font-weight: 700;
    border-radius: 3px;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    color: white;
}

.display_product{
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.display_product a{
  display: block;
  width: 100%;
  height: auto;
}

.display_product .pic_base{
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center center;
}

.display_product .pic_over{
  width: 100%;
  padding-top: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 10;
  position: absolute;
  opacity: 0;
  transition: all .6s;
}

.display_product a:hover .pic_over{
  opacity: 1;
}

.woocommerce .woo_button .add_to_cart_button{
  margin: 10px 0 0 0;
}

.woocommerce .woo_button a.added_to_cart{
  line-height: 1;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  overflow: visible;
  padding: .618em 1em;
  font-weight: 700;
  border-radius: 3px;
  left: auto;
  color: #515151;
  background-color: #e9e6ed;
  border: 0;
  display: inline-block;
  background-image: none;
  box-shadow: none;
  text-shadow: none;
  margin: 0 0 0 10px;
}

/* -------------------------------- Woocommerce Slider Posts -------------------------------- */

.product-slider-wrapper {
  position: relative;
}

.product-slider-wrapper ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-slider-wrapper li::marker {
  content: none;
  display: none;
}

.product-slider .product-slide {
    padding: 0 10px;
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.slider-prev {
    left: -20px;
}
.slider-next {
    right: -20px;
}
.slider-prev .material-icons-outlined,
.slider-next .material-icons-outlined {
    font-size: 24px;
    color: #333;
}

/* -- Lista de Categorias -- */
.categorias-producto-lista, .subcategorias-producto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categoria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5em;
}

.categoria-header .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: transform 0.3s ease;
}

.categoria-principal.open .material-symbols-outlined.toggle-icon {
    transform: rotate(90deg);
}

.subcategorias-producto-lista {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.categoria-principal.open .subcategorias-producto-lista {
    max-height: 500px;
    opacity: 1;
}

.categoria-header a {
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    text-transform: uppercase;
}

.subcategorias-producto-lista li {
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 30px;
}

.categoria-header .flecha {
    margin-right: 0.5em;
}

/* -------------------------------- Interactive Layout -------------------------------- */

.zombie-image-wrapper {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.zombie-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Fade animations */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.zombie-post-btn {
    background-color: #eee;
    border: none;
    padding: 10px 20px;
    margin: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 6px;
    font-weight: 600;
}

.zombie-post-btn.active {
    background-color: #222;
    color: #fff;
}

.zombie-post-buttons{
    display: grid;
    gap: 1.5rem;
}

.zombie-display-container {
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.zombie-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.4s ease-in-out;
    opacity: 1;
}

.zombie-excerpt {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------- Mini Cart Buttons -------------------------------- */

.contained{
		background: transparent;
    color: currentColor;
		box-shadow: inset 0 0 0 1px currentColor;
    padding: 0 20px;
}

.contained:hover{
		background-color: #1e1e1e;
    color: #fff;
    opacity: 1;
}

/* -------------------------------- Related Products -------------------------------- */

@media (max-width: 768px) {
  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px; /* Ajusta el espacio entre productos si lo deseas */
  }

  .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* -------------------------------- Pagination Wrap -------------------------------- */

/* Centrado general */
.pagination-wrap {
    text-align: center;
    margin: 2em 0;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Botones de página */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em 1em;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

/* Hover */
.pagination .page-numbers:hover {
    background-color: #eee;
    border-color: #999;
}

/* Página actual */
.pagination .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}

/* Íconos Lucide */
.pagination .page-numbers i {
    width: 1em;
    height: 1em;
    margin: 0 0.3em;
    stroke-width: 2;
}


/* -------------------------------- Related Posts -------------------------------- */

.post-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.columns-1 { grid-template-columns: repeat(1, minmax(250px, 1fr)); }
.columns-2 { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
.columns-3 { grid-template-columns: repeat(3, minmax(250px, 1fr)); }
.columns-4 { grid-template-columns: repeat(4, minmax(250px, 1fr)); }
.columns-5 { grid-template-columns: repeat(5, minmax(250px, 1fr)); }
.columns-6 { grid-template-columns: repeat(6, minmax(250px, 1fr)); }

@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr !important;
    }
}