/*
Theme Name: Astra Child Theme
Theme URI: https://ejemplo.com/astra-child
Description: Tema hijo de Astra para personalizaciones.
Author: Julio Bermudez
Author URI: https://ejemplo.com
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/


@font-face {
    font-family: 'Poppins';
    src: url('./fonts/poppins/Poppins-Regular.ttf') format('opentype');
}


.site-header a{
    font-family: 'Poppins' !important;
    
}

a.button.add_to_cart_button {
    background: #FF2C02 !important;
    color: #FFF;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px !important;
    font-size: 11px;
    border-radius: 16px;
    font-family: 'Poppins' !important;
}


/* ==========================================================================
   Estilos de la Barra de Anuncios Superior (NUEVA VERSIÓN FADE)
   ========================================================================== */
.top-announcement-bar {
    background-color: #FF2C02;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    overflow: hidden; 
}

/* Contenedor principal */
.top-announcement-bar .ast-container-marquee {
    padding: 8px 0px;
    background-color: #2F0800;
    color: #FF2C02;
    font-weight: bold !important;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    letter-spacing: 0.5px;
    height: 35px;
    margin: 8px 0;
}

/* Contenedor de contenido: ahora centra los anuncios */
.marquee-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo base de cada anuncio (span) */
.marquee-content span {
    position: absolute; /* Todos los spans ocupan el mismo lugar */
    opacity: 0; /* Ocultos por defecto */
    transition: opacity 0.6s ease-in-out; /* Animación de fade suave */
}

/* Clase para mostrar el anuncio activo */
.marquee-content span.is-visible {
    opacity: 1; /* El span activo se hace visible */
}



/* ==========================================================================
   Estilos de la Sección Hero Principal
   ========================================================================== */
#hero-principal-container {
    --hero-bg-color: #b7e4ff; /* Color por defecto */
    --infobox-bg-color: #f54922; /* Color por defecto */
    
    background-color: var(--hero-bg-color);
    width: 100%;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    position: relative; /* Cambiado a relative para controlar hijos con position:absolute */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Ocultar la sección al hacer scroll */
#hero-principal-container.scrolled {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none; /* Evita que interactúe cuando está oculta */
}

/* Logo de fondo, centrado y detrás de todo */
.hero-logo-fondo {
    position: absolute;
    top: 24%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1200px;
    z-index: 1;
}

.hero-logo-fondo img {
    width: 100%;
    height: auto;
}

/* Imagen del producto, centrada y por encima del logo */
.hero-producto {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    max-width: 400px;
    z-index: 2;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.hero-producto img {
    width: 100%;
    height: auto;
}

/* Caja de información, a la izquierda y por encima de todo */
.hero-caja-info {
    position: absolute;
    left: 2%;
    top: 63%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 525px;
    background-color: var(--infobox-bg-color);
    color: #2F0800;
    padding: 30px;
    z-index: 3;
    font-family: sans-serif;
    border-radius: 4.66px;
    border: 4px solid #2F0800;
    height: 368px;
}

.hero-caja-info-contenido h2 {
    color: #2F0800;
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    line-height: 1.2;
}

.hero-caja-info-contenido p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hero-iconos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 15px;
}

.hero-icono-item {
    flex: 1;
    text-align: center;
}

.hero-icono-item img {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.hero-icono-item span {
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.3;
}

.hero-boton {
    display: inline-block;
    background-color: #2F0800;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
    border-radius: 46px;
}

.hero-boton:hover {
    background-color: #333;
    color: #fff;
}

/* Ajustes para Móviles */
@media (max-width: 768px) {
    #hero-principal-container {
        flex-direction: column;
        height: auto;
        padding: 10vh 5%;
    }
    .hero-caja-info {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-top: 50vh; /* Empuja la caja hacia abajo */
        order: 2; /* Pone la caja después de las imágenes */
    }
    .hero-logo-fondo {
       width: 100%;
       top: 25vh; /* Ajusta la posición vertical del logo */
    }
    .hero-producto {
        width: 60%;
        top: 25vh; /* Ajusta la posición vertical del producto */
        order: 1;
    }
}


.video-testimonials-section {
    display: flex;
    /* Remove gap between columns */
    padding: 20px 0; /* Keep vertical padding, remove horizontal padding */
    background-color: #f8f8f8;
    align-items: flex-start;
    width: 100vw; /* Occupy 100% of the viewport width */
    margin-left: calc(50% - 50vw); /* Center the block and remove side margins */
    box-sizing: border-box;
}
.testimonial-title-column {
    flex: .9; /* Make this column a bit larger than the others */
    background-color: #FF2C02;
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: top;
    justify-content: center;
    min-height: 615px;
    text-align: center;
    /* Remove border-radius */
    border-right: 1px solid #FF2C02; /* Add border to the right */
    box-sizing: border-box; /* Ensure padding/border don't affect flex sizing */
}
.testimonial-title-column h2 {
    margin: 0;
    font-size: 5em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #FFFFFF; /* Set the title color explicitly to white */
    text-align: left;

}
.video-testimonials-grid {
    flex: 3; /* Takes up three parts of the space */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns for videos */
    gap: 0; /* Remove gap between video columns */
    min-height:615px;
}
.video-testimonial-item {
    border: 1px solid #FF2C02; /* 1px solid #FF2C02 border for each video column */
    /* Remove border-radius */
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box; /* Ensure padding/border don't affect grid sizing */
    min-height:615px;
}
/* Adjust borders for grid items to avoid double borders between columns if needed */
.video-testimonials-grid .video-testimonial-item:not(:last-child) {
    border-right: none; /* Remove right border for all but the last item in the grid */
}
.video-testimonials-grid .video-testimonial-item:first-child {
    /* This assumes the first video column is adjacent to the title column. */
    /* If there's already a border on the title column, this might be redundant or require adjustment. */
     border-left: none; /* The left column (title) already has a right border */
}


.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
    background-color: #000;
    z-index: 1; /* Place video behind other content */
}
.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.testimonial-info {
    position: relative;
    z-index: 2; /* Place info above the video */
    padding: 0px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    min-height: 613px; /* Ensure content area pushes the video to fill the item */
    justify-content: space-between;
    color: #fff; /* White text for info over video */
}
.user-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family : 'Poppins' !important;
    padding: 10px;
    border-radius: 5px;
}
.user-details p{
    
    font-size:1.1rem  !important;
    
}
.user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FF2C02; /* 3px solid #FF2C02 border for user image */
}
.user-text .user-name {
    font-weight: bold;
    margin: 0;
    font-size: 16px !important;
    font-weight: 100 !important;
    text-transform: uppercase;
    letter-spacing: 0.83px;
    
}
.user-text .user-handle {
    color: #ccc; /* Lighter color for handle over dark background */
    font-size: 11px !important;
    margin: 0;    
    font-weight: 100 !important;    
    letter-spacing: 0.83px;
}
.product-info-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 8px;
    border-radius: 0px;
    justify-content:center;
}
.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    position: absolute;
    left: 0;
    bottom: 1rem;
}
.product-text .product-name {
    font-weight: bold;
    margin: 0;
    font-size: 1.5rem !important;
    color: #FF2C02; /* Darker text for product info on lighter background */
}
.product-text .product-link-text {
    color: #666;
    font-size: 0.8em;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .video-testimonials-section {
        flex-direction: column;
        padding: 20px; /* Re-add some horizontal padding for smaller screens */
        width: auto; /* Allow width to be normal */
        margin-left: auto; /* Reset margin */
    }
    .testimonial-title-column {
        min-height: unset;
        padding: 30px 20px;
        border-right: none; /* Remove right border when stacked */
        border-bottom: 1px solid #FF2C02; /* Add bottom border when stacked */
    }
    .video-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0; /* Keep gap 0 */
    }
    .video-testimonial-item {
        border: 1px solid #FF2C02; /* Maintain border */
    }
    .video-testimonials-grid .video-testimonial-item:nth-child(odd) {
        border-right: 1px solid #FF2C02; /* Re-add right border for odd items to separate columns */
    }
    .video-testimonials-grid .video-testimonial-item:nth-child(even) {
        border-left: none; /* Remove left border for even items */
    }
    .video-testimonials-grid .video-testimonial-item:nth-child(-n+2) { /* For the first two items */
         border-top: none; /* Remove top border if title column already has bottom border */
    }

}

@media (max-width: 768px) {
    .video-testimonials-grid {
        grid-template-columns: 1fr;
        gap: 0; /* Keep gap 0 */
    }
    .video-testimonial-item {
        border: 1px solid #FF2C02; /* Maintain border */
        border-top: none; /* Remove top border as they will stack vertically */
    }
    .testimonial-title-column h2 {
        font-size: 2.5em;
    }
}

.hero-caja-info-geo-title{
    text-transform: uppercase;
}