/*
 Theme Name:   GeneratePress Child (Snoozy Monkey)
 Theme URI:    https://generatepress.com
 Description:  Tema hijo optimizado para Snoozy Monkey. Desarrollo por LevelUp Marketing.
 Author:       LevelUp Marketing
 Author URI:   https://levelupmarketing.au
 Template:     generatepress
 Version:      1.0.0
*/

.mta-hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 500px !important;
    height: 50vh !important;
    overflow: hidden;
}

.mta-hero-track,
.mta-hero-list {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.splide__list {
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.splide__slide {
    grid-area: 1 / 1 / 2 / 2;
    width: 100% !important;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 0;
}

.splide__slide.is-active {
    opacity: 1 !important;
    visibility: visible;
    z-index: 1;
}

.splide__slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10, 37, 64, 0.75) 0%, rgba(10, 37, 64, 0.3) 60%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}


.mta-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.mta-hero-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5),0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 767px) {
.mta-hero-title {
font-size: 2rem !important;
line-height: 1.2;
}
}

.mta-hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4),0 1px 4px rgba(0,0,0,0.3);
    color: #F0F0F0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
}

a.mta-hero-button {
    background-color: #F2ECE3 !important;
    color: #323D3E !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 14px 36px !important;    
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    align-self: flex-start;
    border: 2px solid #FFFFFF;
    text-decoration: none;
    display: inline-flex; 
    align-items: center;
}

a.mta-hero-button:hover {
    background-color: #323D3E !important;
    color: #FFFFFF !important;
}


.splide__slide.is-active .mta-hero-title,
.splide__slide.is-active .mta-hero-subtitle,
.splide__slide.is-active .mta-hero-button {
    animation: fadeInUp 0.8s ease-out forwards;
}

.splide__slide.is-active .mta-hero-title { animation-delay: 0.2s; }
.splide__slide.is-active .mta-hero-subtitle { animation-delay: 0.4s; }
.splide__slide.is-active .mta-hero-button { animation-delay: 0.6s; }

.splide__slide.is-active {
    animation: bgZoom 10s ease-out forwards;
}

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

@keyframes bgZoom { 
    0% { transform: scale(1); }
    100% { transform: scale(1.1); } 
}

.mta-hero-slider .splide__arrow {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-radius: 50% !important;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 20 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mta-hero-slider:hover .splide__arrow { 
    opacity: 1 !important; 
}

.mta-hero-slider .splide__arrow svg {
    fill: #FFFFFF !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
}

.mta-hero-slider .splide__arrow:hover {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    opacity: 1 !important;
}

.mta-hero-slider .splide__arrow:hover svg { 
    fill: var(--color-primary) !important; 
}

.splide__arrow--prev { left: 3% !important; }
.splide__arrow--next { right: 3% !important; }


.mta-hero-slider .splide__pagination {
    bottom: 2.5rem;
    z-index: 20;
    gap: 8px; 
}

.mta-hero-slider .splide__pagination__page {
    width: 12px;
    height: 12px;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 50%;
    margin: 0 4px !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    padding: 0;
}

.mta-hero-slider .splide__pagination__page:hover {
    border-color: #FFFFFF !important;
    transform: scale(1.1);
}

.mta-hero-slider .splide__pagination__page.is-active {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    width: 35px; 
    border-radius: 10px; 
    transform: scale(1);
    opacity: 1;
}

.wp-block-button.wc-block-grid__product-add-to-cart a, .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    border-radius: 0px;
	  font-size: 17px;
}
.woocommerce-loop-product__title{
	text-align: center !important;
}

.wc-product-image {
	text-align: center !important;
}

@media (max-width: 768px) {
.woocommerce-loop-product__title{
	font-size: 15px !important;
	text-align: center !important;
}
}

h1.product_title.entry-title {
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .wc-block-grid__products {
        margin-left: 10;
        max-width: 100%;
    }
} 

@media screen and (max-width: 720px){
	#secondary-navigation {
	display:none !important;
}
}

.inside-wc-product-image{
width: 90%;
	
 	
}

@media screen and (max-width: 768px) {
#mp_form_popup1 {
padding: 5px !important;	
margin: 25% auto !important;
max-height: 60% !important;
border: solid !important;
border-color: #F9B98F !important;
border-radius: 15px !important;	
background: #0693E3 !important;
}
}

/* --- SNOOZY BLOCK V3 STYLES --- */

:root {
    --cb-dark: #323D3E;
    --cb-light: #F2ECE3;
    --cb-accent: #E8A87C; 
}

.snoozy-block-wrapper {
    padding: 40px 0;
    width: 100%;
}

.snoozy-grid-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.snoozy-left-col {
    flex: 0 0 100%; 
    background-color: transparent;     display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;   
    text-align: center;   
    padding: 0 20px;
}

.snoozy-right-col {
    flex: 0 0 100%; 
    position: relative;
    overflow: hidden; 
}

@media (min-width: 992px) {
    .snoozy-grid-layout { flex-wrap: nowrap; }
    .snoozy-left-col { flex: 0 0 25%; max-width: 25%; padding-right: 20px;}
    .snoozy-right-col { flex: 0 0 72%; max-width: 72%; }
}

.snoozy-info-title {
    font-size: 32px;
    color: var(--cb-dark);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.snoozy-info-text {
    font-size: 15px;
    color: var(--cb-dark);
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.5;
}

.snoozy-cta-btn {
    display: inline-block;
    background-color: var(--cb-dark) !important;
    color: #ffffff !important;
    padding: 14px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.snoozy-cta-btn:hover {
    background-color: #4a5859 !important; 
    color: #ffffff !important; 
    opacity: 1;
}

.snoozy-tabs-nav {
    display: flex;
    justify-content: flex-start; 
    gap: 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(50, 61, 62, 0.1);
    padding-bottom: 1px;
}

.snoozy-tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--cb-dark);
    padding: 10px 0;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
    position: relative;
}

.snoozy-tab-btn:hover { opacity: 0.8; background: none; color: var(--cb-dark); }

.snoozy-tab-btn.is-active {
    opacity: 1;
    font-weight: 700;
	background: none; color: var(--cb-dark);
}
/* Subrayado */
.snoozy-tab-btn.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; width: 100%; height: 2px;
    background-color: var(--cb-dark);
}

/* CARRUSEL */
.snoozy-swiper-container {
    position: relative;
    padding: 10px 5px; /* Espacio para sombra */
}

.snoozy-card.swiper-slide {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
    height: auto; /* Altura automática */
}
.snoozy-card:hover { transform: translateY(-5px); }

/* Detalles del Producto */
.snoozy-card img { margin-bottom: 15px; border-radius: 4px; }
.snoozy-card .woocommerce-loop-product__title {
    font-size: 15px;
    color: var(--cb-dark);
    font-weight: 600;
    margin-bottom: 5px;
}
.snoozy-card .price {
    font-size: 14px;
    color: var(--cb-dark);
    font-weight: 700;
    display: block;
}
.snoozy-card .button { display: none; } /* Ocultar botón Woo por defecto */

/* Flechas */
.cb-next, .cb-prev {
    color: var(--cb-dark);
    background: rgba(255,255,255,0.9);
    width: 40px; height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.cb-next::after, .cb-prev::after { font-size: 16px; font-weight: bold; }

/* Loader */
.snoozy-loader {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 20;
}
.cb-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(50,61,62,0.1);
    border-left-color: var(--cb-dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.snoozy-tabs-nav {
        display: flex;
        flex-wrap: nowrap !important; /* IMPORTANTE: Obliga a una sola fila */
        overflow-x: auto;             /* Habilita el scroll horizontal */
        -webkit-overflow-scrolling: touch; /* Scroll suave nativo en iOS */
        
        justify-content: flex-start;  /* Alinea al inicio */
        gap: 25px;                    /* Espacio entre items */
        padding-bottom: 10px;         /* Espacio inferior para evitar cortes */
        
        /* Trucos visuales para ocultar la barra de scroll pero mantener la funcionalidad */
        scrollbar-width: none;        /* Firefox */
        -ms-overflow-style: none;     /* IE/Edge */
        
        /* Ajuste para que el scroll llegue hasta el borde de la pantalla */
        margin-right: -20px;          
        padding-right: 20px;          
        width: calc(100% + 20px);     
    }

    /* Ocultar barra de scroll en Chrome/Safari/Webkit */
    .snoozy-tabs-nav::-webkit-scrollbar { 
        display: none; 
    }

    /* 2. Ajustes de los Botones (Textos) */
    .snoozy-tab-btn {
        white-space: nowrap; /* CRÍTICO: Prohíbe que el texto baje de línea */
        flex: 0 0 auto;      /* CRÍTICO: Prohíbe que el botón se encoja */
        font-size: 15px;     /* Tamaño legible */
    }

    /* 3. Ocultar flechas del carrusel en móvil (ya que se usa el dedo) */
    .cb-next, .cb-prev { 
        display: none; 
    }
}

