/* Theme Name: generatepress-child
Template: generatepress
Description: sitio audifonos inalambricos
Author: Juan Daniel
Version: 1.0
*/

/* Superposición del fondo */
.fondo-superpuesto {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: none; /* Evita que cargue de inmediato */
}

.fondo-superpuesto {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fondo-superpuesto > div,
.fondo-superpuesto > p,
.fondo-superpuesto > img,
.fondo-superpuesto > a,
.fondo-superpuesto > span,
.fondo-superpuesto .texto-superpuesto {
    position: relative;
    z-index: 2;
    color: white;
}


/* Carrusel general */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    box-sizing: border-box;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
}

/* Elementos de los productos */
.product-item {
    flex: 0 0 auto;
    width: 220px; /* Ancho ajustado */
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.product-item img {
    width: 100%;
    height: 200px; /* Tamaño uniforme */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-item:hover {
    transform: scale(1.05); /* Efecto hover */
}

.product-title {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.product-button {
    display: inline-block;
    padding: 8px 12px;
    background: linear-gradient(45deg, #F3E83F, #D8370B);
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(216, 55, 11, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.product-button:hover {
    background: linear-gradient(45deg, #D8370B, #F3E83F);
    box-shadow: 0 6px 15px rgba(216, 55, 11, 0.5);
}

/* Flechas para carruseles */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: background 0.3s ease;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Ocultar flechas en dispositivos móviles */
@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
    }
}

/* Ajustes específicos por carrusel */
.product-carousel[data-id="1"] .product-item img {
    height: 250px; /* Imagen más grande para el carrusel 1 */
}

.product-carousel[data-id="2"] .product-item img {
    height: 180px; /* Tamaño ajustado para el carrusel 2 */
}

/* Estilos para el botón ovalado */
.gb-button {
    display: inline-block;
    padding: 10px 20px; /* Ajusta el tamaño del botón */
    background: linear-gradient(45deg, #8A2BE2, #6A0DAD); /* Gradiente violeta y morado */
    color: #fff; /* Color del texto */
    text-decoration: none; /* Quita el subrayado */
    font-size: 16px; /* Tamaño del texto */
    font-weight: bold; /* Negrita para el texto */
    border-radius: 50px; /* Hace el botón ovalado */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Centra el texto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra */
}

.gb-button:hover {
    background: linear-gradient(45deg, #6A0DAD, #8A2BE2); /* Cambia el gradiente al pasar el mouse */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Sombra más pronunciada */
}

.product-carousel {
    padding-left: 10px; /* Ajuste de padding inicial para evitar cortes */
    padding-right: 10px; /* Asegura que el último producto tampoco se corte */
    box-sizing: border-box; /* Mantiene el contenido dentro del carrusel */
}

.product-carousel .product-item {
    margin: 0 5px; /* Espaciado reducido entre productos */
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none !important; /* Oculta las flechas en pantallas pequeñas */
    }
}

.video-container {
    position: relative;
    text-align: center;
    max-width: 560px;
    margin: 20px auto;
    cursor: pointer;
}

.video-container img {
    width: 100%;
    border-radius: 10px;
    transition: opacity 0.3s ease-in-out;
}

.video-container iframe {
    width: 100%;
    display: none; /* Se oculta hasta hacer clic */
}

.video-title {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 2;
}

.video-container::after {
    content: "▶️"; /* Ícono de "Play" */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7);
}
