/* ========== RESET + BASE hey zombie ========== */

/* 1. Box sizing universal */
*, *::before, *::after {
	box-sizing: border-box;
  }
  
  /* 2. Eliminar márgenes y paddings globales innecesarios */
  body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
	margin: 0;
	padding: 0;
  }
  
  /* 3. Estilos base */
  html, body {
	min-height: 100dvh;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background-color: #fff;
	color: #000;
  }
  
  /* 4. Imágenes y multimedia */
  img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
	height: auto;
  }
  
  /* 5. Tipografía heredada en formularios */
  input, button, textarea, select {
	font: inherit;
  }
  
  /* 6. Listas limpias pero funcionales */
  ul, ol {
	margin: 0;
  list-style: none;
	padding-left: 1.25rem; /* o usa tu sistema de espaciado */
  }

  li::marker {
    content: none;
    display: none;
  }
  
  /* 7. Enlaces sin decoración */
  a {
	text-decoration: none;
	color: inherit;
  }
  
  /* 8. Tablas sin colapsar pero estilizadas fácilmente */
  table {
	border-collapse: collapse;
	width: 100%;
  }
  
  /* 9. Botones sin estilo por defecto */
  button {
	background: none;
	border: none;
	cursor: pointer;
  }
  
  /* 10. Cuerpo con scroll suave (opcional) */
  html {
	scroll-behavior: smooth;
  }


  /* -------------------------------- 
Menu Base
-------------------------------- */

.display-menu{
    width: auto;
    display: none;
    opacity: 0;
}

.align-menu{
  width: 100%;
  display: flex;
}

@media only screen and (max-width: 920px) {
    
    .display-menu{
        width: 100%;
    }
    
    .columns{
        flex-wrap: nowrap;
    }
}

.sub-menu{
  -webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
	        animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

.wc-block-mini-cart__empty-cart-wrapper p{
    margin-bottom: 20px;
}

/* -------------------------------- 
Menu Responsive
-------------------------------- */
/* --- Desktop --- */

.menu-desktop {
    display: flex;
    gap: 2rem;
}

.menu-desktop ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu-desktop ul li {
    position: relative;
}

.menu-desktop ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;  
    padding: 0.5rem 1rem;
    color: #eee;
    text-decoration: none;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.menu-desktop ul li a:hover {
    background-color: transparent;
}

/* Dropdown submenu */
.menu-desktop ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000000a3;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 0.5rem 0;
    -webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
	        animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

.menu-desktop ul li:hover > ul {
    display: block;
}

.menu-desktop ul li ul li a {
    padding: 0.5rem 1rem;
    color: #ddd;
}

.menu-desktop ul li ul li a:hover {
    background-color: transparent;
}

/* Subsubmenu */
.menu-desktop ul li ul li ul {
    top: 0;
    left: 100%;
}

/* --- Mobile --- */

.menu-mobile {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100dvh;
    overflow-y: auto;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1666;
}

.mobile-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: .8;
    z-index: -1;
}

.menu-mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-mobile ul li {
    position: relative;
    margin-bottom: 1rem;
}

.menu-mobile ul li a {
    color: white;
    text-decoration: none;
    display: inline-block;
    width: calc(100% - 2.5rem);
    vertical-align: middle;
}

.menu-mobile ul li .submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 2rem;
    font-size: 1.5rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    user-select: none;
    line-height: 1.6rem;
    display: flex;
    align-items: flex-start;
}

/* Ocultar submenús por defecto */
.menu-mobile ul li ul {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

/* Cuando está abierto */
.menu-mobile ul li.open > ul {
    display: block;
    -webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
	        animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

.menu-desktop .menu-item-has-children{
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.menu-desktop .menu-item-has-children > a svg[data-lucide] {
    transition: transform 0.4s ease;
    transform-origin: center;
    perspective: 400px; /* opcional, más realismo */
}

/* Rotar el ícono al pasar el mouse o al abrir */
.menu-desktop .menu-item-has-children:hover > a svg[data-lucide] {
    transform: translateY(6px)
}

.menu-mobile-header{
    padding: .8rem;
    border-bottom: 1px solid white;
}

.menu-mobile-header a{
	margin:auto;
	width:auto;
}

.menu-mobile-header a img{
    height: 100%;
    width: auto;
    max-height: 50px;
}

.menu-mobile-header-padding{
    padding: 1rem;
    height: calc(100dvh - 80px);
    overflow: auto;
}

/* Mostrar menú desktop solo en pantallas grandes */
@media (min-width: 1024px) {
    .menu-desktop {
        display: flex;
    }

    #menu-toggle {
        display: none; /* ocultar botón mobile en desktop */
    }

    .menu-mobile {
        display: none !important; /* asegurarse que el menú mobile no se muestre */
    }
}

/* Mostrar menú mobile solo en pantallas pequeñas */
@media (max-width: 1023px) {
    .menu-desktop {
        display: none;
    }

    #menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1100;
        padding: 16px;
    }

    #menu-close {
        background: transparent;
        border: none;
        font-size: 2rem;
        position: absolute;
        top: 25px;
        right: 25px;
        z-index: 1100;
    }
}


/* -------------------------------- 
Menu Animations
-------------------------------- */

@-webkit-keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
            transform: rotateX(-100deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 1;
  }
}
@keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
            transform: rotateX(-100deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 1;
  }
}




/* ----------------- 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;
}

/* -------------------------------- 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%;
  position: relative;
}

.display_product .pic_base > div{
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  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 .pic_over > div{
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  background-size: cover;
  background-position: center center;
}

.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;
  }
}

/* -------------------------------- Tiny Slider -------------------------------- */

.tns-nav{
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
}

/* -------------------------------- 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;
}

/* -------------------------------- Columns Grid -------------------------------- */

.post-grid {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    /* Opcional: altura mínima para celdas */
    /* grid-auto-rows: minmax(280px, auto); */
}

/* Columnas: ahora con comportamiento responsive */
.columns-1 { grid-template-columns: repeat(1, 1fr); }
.columns-2 { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
.columns-3 { grid-template-columns: repeat(3, minmax(280px, 1fr)); }
.columns-4 { grid-template-columns: repeat(4, minmax(300px, 1fr)); }
.columns-5 { grid-template-columns: repeat(5, minmax(280px, 1fr)); }
.columns-6 { grid-template-columns: repeat(6, minmax(260px, 1fr)); }

/**
 * Media queries responsivos (mobile-first)
 */
@media (max-width: 768px) {
    .post-grid.columns-2,
    .post-grid.columns-3,
    .post-grid.columns-4,
    .post-grid.columns-5,
    .post-grid.columns-6 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* En tablets: máximo 2 o 3 columnas */
    .post-grid.columns-4,
    .post-grid.columns-5,
    .post-grid.columns-6 {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
    .post-grid.columns-2,
    .post-grid.columns-3 {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }
}

/* ----------------- Cookies ------------------ */

.cookie-alert{
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 222;
  display:none;
}

/* ----------------- Lazy IMG ------------------ */

.lazy-img, .lazy-bg, .backend {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-img.loaded, .lazy-bg.loaded, .backend.loaded{
  opacity: 1;
}