
/* -------------------------------- Aditives -------------------------------- */

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

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

.tns-nav{
    position: absolute;
    z-index: 6;
    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;
}


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

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


/* ----------------- tinySlider Ini ------------------ */

.slider-box{
  position: relative;
}

/* ----------------- Error layout ------------------ */

.zombie-layout-error {
    border: 2px dashed #c0392b;
    background: #fff5f5;
    color: #c0392b;
    padding: 1rem;
    margin: 1rem 0;
    font-weight: 600;
    font-family: monospace;
}

/* ----------------- Drawer ------------------ */

.offcanvas-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    display:none;
}
.offcanvas-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    /* 👇 Aquí va la magia */
    perspective: 1200px;
    overflow: hidden;
    display:none;
}
.offcanvas {
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    filter: brightness(1);
    will-change: transform, opacity, filter;
}
.offcanvas .offcanvas-close {
    border: none;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    padding: 10px;
    top: 10px;
    right: 10px;
}
.offcanvas .offcanvas-content {
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    text-align: center;
}

/* ----------------- Layout ------------------ */

.post-switcher-display {
    position: relative;
    overflow: hidden;
}

.animate-in {
    opacity: 0;
}

.switcher-item {
    width: 100%;
    will-change: opacity, transform;
}

.switcher-item {
    opacity: 0;
    pointer-events: none;
}

.switcher-item.active {
    opacity: 1;
    pointer-events: auto;
}

.post-switcher-btn {
    transition: transform 0.3s ease;
}

.post-switcher-buttons-wrapper {
    width: 100%;
}

.post-switcher-buttons-wrapper.centered {
    display: flex;
    justify-content: center;
}

.post-switcher-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-switcher-buttons-wrapper.vertical .post-switcher-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.post-switcher-buttons-wrapper.left-align {
    display: flex;
    justify-content: flex-start;
}

.post-switcher-buttons-wrapper.left-align .post-switcher-buttons {
    display: flex;
    gap: 1.5rem;
}

.post-switcher-buttons-wrapper.tabs-style .post-switcher-buttons {
    display: inline-flex;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    gap: 2rem;
}

@media (max-width: 768px) {

    .post-switcher-buttons {
        gap: 1rem;
    }

}

/* ----------------- Hero Slides ------------------ */


.hero-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: min(var(--hero-height, 100vh), 100svh);
}

/* 🔥 TODA la cadena de tiny */
.hero-slider-wrapper .tns-outer,
.hero-slider-wrapper .tns-ovh,
.hero-slider-wrapper .tns-inner,
.hero-slider-wrapper .post-slider,
.hero-slider-wrapper .tns-slider {
  height: 100% !important;
}

/* Slide base */
.hero-slide {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;     /* centra vertical */
  justify-content: center; /* centra horizontal */
  text-align: center;
}

/* Overlay dinámico */
.hero-slide.has-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-overlay-color, #000);
  opacity: var(--hero-overlay-opacity, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Contenido encima */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 2rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Imagen */
.hero-bg {
position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

.slide-content h2,
.slide-content p,
.slide-content a {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.tns-slide-active .slide-content h2,
.tns-slide-active .slide-content p,
.tns-slide-active .slide-content a {
  opacity: 1;
  transform: translateY(0);
}

.tns-slide-active .slide-content h2 { transition-delay: 0.2s; }
.tns-slide-active .slide-content p  { transition-delay: 0.4s; }
.tns-slide-active .slide-content a  { transition-delay: 0.6s; }

.hero-slider-wrapper .tns-item {
  height: 100% !important;
}

.hero-slide-inner {
  position: relative;
  height: 100%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slider-wrapper .tns-outer,
.hero-slider-wrapper .tns-ovh,
.hero-slider-wrapper .tns-inner,
.hero-slider-wrapper .post-slider,
.hero-slider-wrapper .tns-slider,
.hero-slider-wrapper .tns-item {
  height: 100% !important;
}

.hero-slide-inner {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide-inner > div{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
  .hero-slider-wrapper {
    height: var(--hero-mobile-height, 75svh);
  }
}

/* ----------------- Animating Slides with Layout ------------------ */

.animate_me {
    opacity: 0;
    transform: translateY(20px);
}

.animate_me.is-animating {
    animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------- Animating Slides Box with Layout ------------------ */

.animate_me_box {
  opacity: 0;
  transform: translateY(25px);
}

.animate_me_box.is-animating-box {
  animation: fadeUpBox .7s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes fadeUpBox {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------- Load more contents ------------------ */

.woo-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    cursor: pointer;
}

.woo-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.woo-load-more.loading .woo-icon {
    display: inline-block;
    animation: wooSpin 0.8s linear infinite;
}

@keyframes wooSpin {
    to { transform: rotate(360deg); }
}

.woo-load-more.loading .woo-spinner {
    display: inline-block;
}

.woo-load-more.loading .woo-text {
    opacity: 0.6;
}

/* Fade in productos */
.woo-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.woo-item.fade-in {
    opacity: 0;
    transform: translateY(20px);
}

/* Isotope */

/* CONTENEDOR GENERAL */
.isotope-container {
    width: 100%;
}

/* FILTROS */
.isotope-filters {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* GRID */
.isotope-grid {
    position: relative;
}

/* ITEM BASE */
.isotope-item {
    width: calc(25% - 25px); /* 4 columnas base */
    margin-bottom: 25px;
    background: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* IMAGEN */
.isotope-image-wrapper {
    overflow: hidden;
}

.img-large {
    width: calc(50% - 25px);
}

.img-wide {
    width: calc(50% - 25px);
}

.img-tall {
    width: calc(25% - 25px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .isotope-item {
        width: calc(33.333% - 25px);
    }

    .img-large,
    .img-wide {
        width: calc(66.666% - 25px);
    }
}

@media (max-width: 768px) {
    .isotope-item {
        width: calc(50% - 25px);
    }

    .img-large,
    .img-wide {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .isotope-item {
        width: 100%;
    }
}


/* Sliders Animated */

/* Cinematic */

.has-slide-animation.animation-cinematic .hero-slide {
  overflow: hidden;
}

.has-slide-animation.animation-cinematic .hero-bg {
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}

.has-slide-animation.animation-cinematic .hero-slide.tns-slide-active .hero-bg {
  animation: cinematicIn var(--slide-animation-duration, 6s)
             cubic-bezier(.16,.84,.44,1) forwards;
}

@keyframes cinematicIn {
  from {
    transform: scale(1.15) translateY(3vh);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

.has-slide-animation.animation-cinematic .hero-anim-bg {
  will-change: transform;
  backface-visibility: hidden;
  transform-origin: center center;
}

/* Slide activo anima */
.has-slide-animation.animation-cinematic 
.hero-slide.tns-slide-active .hero-anim-bg {
  animation: cinematicIn var(--slide-animation-duration, 6s)
             cubic-bezier(.16,.84,.44,1) forwards;
}

/* Cuando deja de ser activo, lo reseteamos limpio */
.has-slide-animation.animation-cinematic 
.hero-slide:not(.tns-slide-active) .hero-anim-bg {
  animation: none;
  transform: scale(1.15) translateY(3vh);
}

/* ENTRADA */
.has-slide-animation.animation-cinematic 
.hero-slide.tns-fadeIn .hero-anim-bg {
  animation: cinematicIn var(--slide-animation-duration, 6s)
             cubic-bezier(.16,.84,.44,1) forwards;
}

/* SALIDA */
.has-slide-animation.animation-cinematic 
.hero-slide.tns-fadeOut .hero-anim-bg {
  animation: cinematicOut 1s ease-in forwards;
}

@keyframes cinematicOut {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.05) translateY(-2vh);
  }
}

/* Minimal */

.has-slide-animation.animation-minimal .hero-bg {
  transform: scale(1.08);
}

.has-slide-animation.animation-minimal .hero-slide.tns-slide-active .hero-bg {
  animation: minimalZoom 6s ease-out forwards;
}

@keyframes minimalZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-slide {
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.tns-fadeIn {
  opacity: 1;
  filter: alpha(opacity=100);
  z-index: 0;
}
.tns-normal, .tns-fadeOut {
  opacity: 0;
  filter: alpha(opacity=0);
  z-index: -1;
}

/* ============================= */
/* FADE MODE
/* ============================= */

.hero-slider-wrapper[data-mode="fade"]
.has-slide-animation.animation-cinematic
.hero-slide.heroZoomIn .hero-bg {
  animation: cinematicIn var(--slide-animation-duration, 6s)
             cubic-bezier(.16,.84,.44,1) forwards;
}

.hero-slider-wrapper[data-mode="fade"]
.has-slide-animation.animation-cinematic
.hero-slide.heroZoomOut .hero-bg {
  animation: cinematicOut 1s ease-in forwards;
}

@keyframes cinematicIn {
  from {
    transform: scale(1.15) translateY(3vh);
  }
  to {
    transform: scale(1) translateY(0);
  }
}

@keyframes cinematicOut {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.05) translateY(-1vh);
  }
}

.sequential-fade .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.sequential-fade .hero-slide.tns-slide-active {
  opacity: 1;
  z-index: 2;
}

/* ============================= */
/* SEQUENTIAL FADE FIX */
/* ============================= */

.sequential-fade .tns-ovh,
.sequential-fade .tns-inner,
.sequential-fade .post-slider {
  height: 100%;
}

.sequential-fade .post-slider {
  position: relative !important;
  transform: none !important; /* 🔥 mata el translate3d */
}

.sequential-fade .hero-slide {
  position: absolute !important;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.sequential-fade .hero-slide.tns-slide-active {
  opacity: 1;
  z-index: 2;
}

/* ============================= */
/* Add to cart Animation!
/* ============================= */

#zombie-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 9999;

    opacity: 0;
    pointer-events: none;
    transition: opacity .5s ease;
}

/* visible */
#zombie-cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* fade out */
#zombie-cart-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.zombie-cart-message {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    animation: pop .4s ease;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* opcional: ocultar mensaje de Woo */
.woocommerce-notices-wrapper {
    display: none;
}

body.zombie-page-transition::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgb(255, 255, 255);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    animation: pageFadeOut 1.6s ease forwards;
}

@keyframes pageFadeOut {
    0% {  opacity: 1; }
    50% {  opacity: 1; }
    100% {  opacity: 0; }
}


.zombie-cart-animation {
    position: relative;
        width: 42px;
    height: 42px;
    transition: opacity .5s ease;
}

.product-icon,
.cart-icon,
.check-icon {
  position: absolute;
  font-size: 2.5rem;
}

/* Producto inicia a la izquierda */
.product-icon {
    left: 0;
    top: -100px;
}

.check-icon {
    opacity: 0;
    transform: scale(0.5);
    top: 60px;
}

/* SOLO cuando se activa */
.zombie-cart-animation.play .product-icon {
  animation: moveToCart 0.8s ease forwards;
}

.zombie-cart-animation.play .check-icon {
  animation: showCheck 0.4s ease forwards;
  animation-delay: 0.8s;
}

.zombie-cart-animation.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Animaciones */

@keyframes moveToCart {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  70% {
    transform: translateY(120px) scale(0.8);
    opacity: 1;
  }
  100% {
    transform: translateY(140px) scale(0.5);
    opacity: 0;
  }
}

@keyframes showCheck {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  body.page-ready {
    opacity: 1;
  }