/* Validación para BgfTech - Desktop */
/* body::before { */
    /* content: "MODO: DESKTOP ACTIVADO" !important; */
    /* position: fixed; */
    /* top: 10px; */
    /* left: 10px; */
    /* background: #2eb82e !important; */
    /* color: white !important; */
    /* padding: 5px 10px; */
    /* font-size: 12px; */
    /* z-index: 999999; */
    /* border-radius: 4px; */
    /* font-family: sans-serif; */
/* } */


/* Estilos Desktop - BgfTech (min-width: 1025px) */

/* Cuadrícula de 5 productos */
ul.products li.product, 
.wc-block-grid__product,
.wc-block-product {
    max-width: 220px !important; 
    flex: 0 0 220px !important;
}

/* Forzar Títulos a 2 líneas con altura fija */
.wc-block-grid__product-title, 
.wp-block-woocommerce-product-title, 
.woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.8em !important;
}

/* Tooltip de Título (Solo Desktop) */
[data-title]::after {
    content: attr(data-title) !important;
    position: absolute !important;
    bottom: 120% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(24, 23, 23, 0.98) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    width: 200px !important;
    z-index: 9999;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease-in-out !important;
}

[data-title]:hover::after {
    opacity: 1 !important;
    visibility: visible !important;
}

/



/**
 * Estilos Desktop - BgfTech
 * Diseño de flechas de navegación y contenedor.
 */
.bgf-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003366; /* Azul BgfTech */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.bgf-nav-btn:hover {
    background: #5a0bbd;
    transform: translateY(-50%) scale(1.1);
}

.bgf-prev { left: -20px; }
.bgf-next { right: -20px; }

/* Ocultar scrollbar en PC para estética limpia */
.wc-block-product-template, 
.wc-block-grid__products,
.wp-block-woocommerce-product-collection ul {
    scrollbar-width: none !important;
}
.wc-block-product-template::-webkit-scrollbar { display: none; }


/**
 * BgfTech - Desktop 
 * Aseguramos que las flechas floten sobre el carrusel.
 */
.bgf-nav-btn {
    display: flex !important; /* Forzamos visibilidad */
    position: absolute !important;
    z-index: 999 !important;
    background: #003366 !important;
}

.bgf-prev { left: -25px !important; }
.bgf-next { right: -25px !important; }

.wc-block-product-template li,
.wc-block-grid__product {
    flex: 0 0 calc(25% - 15px) !important;
    min-width: calc(25% - 15px) !important;
}

/**
 * BgfTech - Alineación Profesional en Pantallas Grandes
 */
.wc-block-grid__product, 
.product {
    display: flex !important;
    flex-direction: column !important;
}

/* El botón siempre al final */
.wc-block-grid__product-add-to-cart, 
.add_to_cart_button {
    margin-top: auto !important; 
    width: 100% !important;
    text-align: center;
}

/* Títulos consistentes */
.wc-block-grid__product-title {
    min-height: 3em; /* Espacio uniforme para títulos en Desktop */
}






/**
 * BGF INVERSIONES C.A. - FIX ESTRUCTURA PRODUCTO (DESKTOP)
 * Descripción: Modificación para mantener galería y resumen juntos sin romper el resto de la página.
 */


    /* 1. Reset del contenedor para que los bloques de abajo (relacionados) no floten */
    .single-product div.product {
        display: block !important; /* Volvemos al estándar */
    }

    /* 2. CREAMOS LA FILA SUPERIOR (Solo para Imagen y Resumen) */
    /* Usamos el clearfix de WooCommerce o forzamos un contenedor flex en la parte superior */
    .single-product div.product > .images, 
    .single-product div.product > .summary {
        display: block;
        float: left !important; /* Técnica clásica pero segura para temas Envo */
    }

    /* 3. Galería (60%) */
    .single-product div.product div.images {
        width: 60% !important;
        max-width: 60% !important;
        margin-right: 4% !important;
        display: flex !important;
        flex-direction: row-reverse !important; 
        gap: 20px !important;
    }

    /* 4. Resumen (36%) */
    .single-product div.product div.summary {
        width: 36% !important;
        max-width: 36% !important;
        float: right !important; /* Lo empujamos a la derecha */
        margin-bottom: 40px !important;
    }

    /* 5. EL TRUCO MAESTRO: Limpiar el flujo para que los relacionados aparezcan ABAJO */
    /* Esto evita que los relacionados intenten subir al hueco del 4% */
    .woocommerce-tabs, 
    .related.products, 
    .upsells.products {
        clear: both !important;
        display: block !important;
        width: 100% !important;
        padding-top: 40px !important;
    }





/**
 * PROPIEDAD: BGF INVERSIONES C.A (BgfTech)
 * ACCIÓN: Aplicar negritas a precios manteniendo flujo horizontal
 * ESTILO: estilos dedicados para pagina carrito!
 */

/* Aplicamos negrita y bloqueamos el salto de línea */
.woocommerce-Price-amount.amount {
    display: inline-block !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
    padding-right: 5px !important;
    font-weight: 700 !important; /* Negrita de alto impacto */
}

/* Aseguramos que el contenedor interno herede el peso y mantenga la fila */
.woocommerce-Price-amount.amount bdi {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-weight: 700 !important;
}

/* El símbolo también debe verse fuerte */
.woocommerce-Price-currencySymbol {
    font-weight: 700 !important;
    margin-left: 2px !important;
}

/* Espacio horizontal garantizado en las celdas de la tabla */
.woocommerce-cart-form__cart-item .product-price,
.woocommerce-cart-form__cart-item .product-subtotal {
    min-width: 100px !important;
    font-weight: 700 !important;
}


/* * Archivo: desktop.css
 * Descripción: Unificación visual de botones de navegación (cuadrados redondeados).
 * Acción: Establece botones con fondo blanco, bordes azules y posicionamiento centrado para el bloque de productos.
 */

/* Estilo Base: Cuadrado con Bordes Redondeados */
.bgf-nav-btn, 
.bgf-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff;    /* Fondo blanco solicitado */
    color: #0056b3;               /* Color de la flecha */
    border: 2px solid #0056b3;    /* Borde azul */
    border-radius: 8px;           /* Cuadrado con bordes redondeados */
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra suave para resaltar sobre el fondo */
}

/* Efecto Hover */
.bgf-nav-btn:hover, 
.bgf-nav-arrow:hover {
    background-color: #0056b3;
    color: #ffffff;
}

/* Posicionamiento específico para el botón de productos WooCommerce */
/* Nota: Asegúrate de que el contenedor padre tenga position: relative */
.bgf-next {
    position: absolute;
    top: 50%;                  /* Centrado vertical */
    right: -22px;              /* Ajuste para que sobresalga en el borde derecho */
    transform: translateY(-50%);
}

/* Ajuste para el botón de áreas de negocio si requiere la misma lógica de "flotado" */
.bgf-nav-arrow.arrow-right {
    /* Si este botón ya está en un contenedor con scroll, el posicionamiento 
       dependerá de la estructura de ese slider específico */
}

/* * Archivo: desktop.css
 * Descripción: Unificación de botones de navegación (Anterior/Siguiente) para bloques de productos.
 * Acción: Establece fondo blanco, bordes azules, forma cuadrada redondeada y posicionamiento centrado lateral.
 */

/* Estilo base para ambos botones (Anterior y Siguiente) */
.bgf-prev,
.bgf-next,
.bgf-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #ffffff !important; /* Fondo blanco forzado */
    color: #0056b3;                       /* Flecha azul */
    border: 2px solid #0056b3;            /* Borde azul */
    border-radius: 8px;                   /* Cuadrado redondeado */
    cursor: pointer;
    position: absolute;                   /* Posicionamiento flotante */
    top: 50%;                             /* Centrado vertical */
    transform: translateY(-50%);          /* Ajuste de precisión central */
    transition: all 0.3s ease;
    z-index: 100;
    padding: 0;
    font-size: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Posicionamiento lateral específico */
.bgf-prev {
    left: -22px;  /* Ajuste hacia la izquierda */
}

.bgf-next, .arrow-right {
    right: -22px; /* Ajuste hacia la derecha */
}

/* Estado Hover: Cambio a fondo azul y flecha blanca */
.bgf-prev:hover,
.bgf-next:hover,
.bgf-nav-arrow:hover {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1); /* Ligero aumento al posar el puntero */
}

/* Reset para evitar interferencias de estilos previos en WooCommerce */
button.bgf-nav-btn {
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}




/* * Archivo: desktop.css
 * Descripción: Reordenamiento de elementos de compra en una sola fila.
 * Acción: Establece el orden [Cantidad -> Añadir al Carrito -> Comprar Ahora] usando Flexbox.
 */

/* Contenedor padre de la zona de compra */
.summary.entry-summary {
    display: flex;
    flex-direction: column;
}

/* Contenedor que agrupa los botones y el formulario */
.payhip-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

/* Forzamos al formulario del carrito a integrarse en la fila */
form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    /* El formulario va primero en el orden visual */
    order: 1;
}

/* El botón "Comprar Ahora" se mueve al final de la fila */
.bgf-btn-buy-now {
    order: 2;
    white-space: nowrap;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 25px;
    background-color: #0056b3; /* Azul BgfTech */
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Estilización del selector de cantidad y sus botones +/- */
.quantity {
    display: flex !important;
    align-items: center;
}

.quantity .qty {
    width: 50px !important;
    height: 45px;
    border: 1px solid #ccc;
    text-align: center;
}

.minus, .plus {
    width: 35px;
    height: 45px;
    background: #f4f4f4;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Botón Añadir al Carrito */
.single_add_to_cart_button {
    height: 45px;
    white-space: nowrap;
    padding: 0 20px !important;
    border-radius: 8px !important;
}

/* * Archivo: desktop.css
 * Descripción: Simplificación del selector de cantidad y ajuste de ancho de botones.
 * Acción: Activa flechas internas nativas con alto contraste y reduce el ancho del botón de añadir al carrito.
 */

/* 1. Eliminamos los botones manuales de +/- (si aún existen en el HTML o CSS previo) */
form.cart .minus, 
form.cart .plus {
    display: none !important;
}

/* 2. Estilo de alto contraste para el cajón del número (Input) */
form.cart .input-text.qty {
    display: inline-block !important;
    width: 75px !important; /* Ancho suficiente para ver el número y las flechas nativas */
    height: 45px !important;
    border: 2px solid #0056b3 !important; /* Borde azul de la marca */
    border-radius: 8px !important;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #0056b3;
    background-color: #ffffff;
    margin-right: 10px !important;
    padding-right: 5px; /* Espacio para las flechas nativas */
}

/* 3. Asegurar que las flechas internas sean visibles (Alto Contraste) */
form.cart .input-text.qty::-webkit-inner-spin-button,
form.cart .input-text.qty::-webkit-outer-spin-button {
    opacity: 1; /* Forzamos visibilidad */
    cursor: pointer;
    height: 35px; /* Ajuste de altura interna */
}

/* 4. Reducir ancho del botón "Añadir al carrito" */
.single_add_to_cart_button {
    height: 45px !important;
    padding: 0 15px !important; /* Reducción de ancho mediante padding lateral */
    min-width: 130px;           /* Ancho mínimo para que el texto no se corte */
    white-space: nowrap;
    border-radius: 8px !important;
    font-size: 14px !important;            /* Ligeramente más pequeño para ahorrar espacio */
    text-transform: uppercase;
    flex-grow: 0;               /* Evita que se estire */
}

/* 5. Mantener la alineación de la fila */
form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    order: 1; /* El grupo cantidad + carrito va primero */
}

/* El botón de Comprar Ahora sigue al final */
.bgf-btn-buy-now {
    order: 2;
    height: 45px !important;
    padding: 0 15px !important;
    font-size: 14px;
}


/* * Archivo: desktop.css
 * Descripción: Corrección de layout de galería estilo MercadoLibre para BgfTech.
 * Acción: Anula estilos inline de FlexSlider y organiza Galería / Imagen Principal.
 */

/* 1. Contenedor Maestro: Forzamos el layout horizontal */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row-reverse !important; /* Galería a la izquierda, Imagen a la derecha */
    align-items: flex-start;
    gap: 20px !important;
    opacity: 1 !important;
}



/* 3. Limpieza de las imágenes individuales */
.woocommerce-product-gallery__image {
    width: 100% !important; /* Anulamos el valor fijo de FlexSlider */
    margin-right: 0 !important; /* Eliminamos el espacio fantasma a la derecha */
    float: none !important;    /* Adiós al float que rompe el flex */
}

.woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    max-height: 600px; /* Evita que imágenes verticales gigantes rompan el diseño */
}

/* 4. La Galería de miniaturas (Lista <ol>) */
.flex-control-nav.flex-control-thumbs {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important; /* Miniaturas una debajo de otra */
    width: 80px !important;            /* Ancho fijo estilo ML */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 10px;
}

.flex-control-nav.flex-control-thumbs li {
    width: 100% !important;
    margin: 0 !important;
}

.flex-control-nav.flex-control-thumbs img {
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
    opacity: 0.7;
}

/* Resaltar miniatura activa */
.flex-control-nav.flex-control-thumbs img.flex-active {
    border-color: #0056b3 !important;
    opacity: 1;
}




/* Descripción: Control de altura para el contenedor inyectado por el hook. */
.precio-gratis-container {
    height: 44px !important;
    display: flex !important;
    align-items: center !important; /* Centra el texto "¡Gratis!" verticalmente */
    justify-content: center !important;
    width: 100% !important;
}


































/* NUEVO: Configuración optimizada para el Home de BgfTech (Desktop).
   Aplica degradado extendido, transparencia de contenedores y aislamiento de logo.
*/

/* 1. Fondo Degradado en el contenedor principal del Home */
body.home #page.site {
    background: linear-gradient(
        to bottom, 
        #003366 0%,     /* Azul Marca */
        #003366 85%,    /* Inicio del desvanecimiento (10% más abajo) */
        transparent 95% /* Transparencia total antes de terminar el slider */
    ) no-repeat !important;
    background-size: 100% 500px !important; /* Ajusta este valor según la altura de tu slider */
    background-attachment: scroll !important;
}

/* 2. Forzar transparencia en Header y Menú (Solo Home) */
body.home .site-header, 
body.home .main-menu,
body.home .navbar.navbar-default,
body.home #site-navigation {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Aislamiento del Logo (Mantiene colores originales con borde blanco) */
body.home .custom-logo-link img {
    filter: drop-shadow(1.5px 0px 0px #fff) 
            drop-shadow(-1.5px 0px 0px #fff) 
            drop-shadow(0px 1.5px 0px #fff) 
            drop-shadow(0px -1.5px 0px #fff) 
            drop-shadow(0px 0px 5px rgba(255,255,255,0.3)) !important;
}

/* 4. Textos y Iconos en Blanco para contraste (Solo Home) */
body.home .site-title a, 
body.home .site-description,
body.home .nav-link,
body.home .amount-cart strong,
body.home .header-cart i,
body.home .header-login i,
body.home .header-login span,
body.home .fa {
    color: #ffffff !important;
}

/* 5. Asegurar que el fondo del sitio sea blanco debajo del degradado */
body.home {
    background-color: #ffffff !important;
}



/* NUEVO: Configuración para páginas internas de BgfTech (Desktop).
   Aplica azul sólido solo en cabecera y menú, manteniendo el efecto del logo.
*/

/* 1. Fondo Azul Sólido solo para Header y Menú en páginas internas */
body:not(.home) .site-header, 
body:not(.home) .main-menu,
body:not(.home) .navbar.navbar-default,
body:not(.home) #site-navigation {
    background-color: #003366 !important;
    background: #003366 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Aislamiento del Logo (Mantiene colores originales en internas) */
body:not(.home) .custom-logo-link img {
    filter: drop-shadow(1.5px 0px 0px #fff) 
            drop-shadow(-1.5px 0px 0px #fff) 
            drop-shadow(0px 1.5px 0px #fff) 
            drop-shadow(0px -1.5px 0px #fff) 
            drop-shadow(0px 0px 5px rgba(255,255,255,0.3)) !important;
}

/* 3. Textos e Iconos en Blanco para contraste en internas */
body:not(.home) .site-title a, 
body:not(.home) .site-description,
body:not(.home) .nav-link,
body:not(.home) .amount-cart strong,
body:not(.home) .header-cart i,
body:not(.home) .header-login i,
body:not(.home) .header-login span,
body:not(.home) .fa {
    color: #ffffff !important;
}

/* 4. Asegurar que el resto de la página no tenga fondo azul */
body:not(.home) #page.site {
    background: transparent !important;
}

/* Refresco de versión para BgfTech - v1.0.1 */




/**
 * BgfTech - Layout de Contacto (Desktop)
 * Ubicación: desktop.css
 * Descripción: Ajustes para el formulario y el mapa en pantallas grandes.
 */

/* 1. Estructura de Columnas */
.wp-block-columns {
    display: flex;
    gap: 30px !important; /* Espacio elegante entre formulario y mapa */
    align-items: flex-start;
}

/* Columna Izquierda: Formulario (Compacto) */
.wp-block-column:first-child {
    flex: 0 0 30% !important; /* Reducimos a 30% para dar más aire al mapa */
    max-width: 30%;
}

/* Columna Derecha: Mapa (Expandido) */
.wp-block-column:last-child {
    flex: 0 0 70% !important;
    max-width: 70%;
}

/* 2. Estilización del Formulario CF7 */
.wpcf7-form p {
    margin-bottom: 8px !important; /* Espaciado mínimo entre etiquetas */
}

.wpcf7-form label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box; /* Asegura que el padding no desborde el ancho */
}

/* 3. Área de Mensaje Específica */
.wpcf7-form textarea {
    height: 110px !important; /* Altura controlada para el placeholder corregido */
    resize: none;
    line-height: 1.5;
}

/* 4. Botón de Envío */
.wpcf7-submit {
    width: auto;
    min-width: 150px;
    padding: 10px 25px !important;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* 5. Contenedor del Mapa */
#bgf-map-container {
    height: 520px !important; /* Aumentamos un poco para equilibrar el largo del formulario */
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}






/* * Archivo: desktop.css
 * Descripción: Reset de alturas para la cabecera de Bgf Inversiones C.A.
 * Este código anula alturas heredadas de bootstrap.css o temas padres.
 */

/* Forzar la reducción del contenedor y anular cualquier altura mínima previa */
#site-navigation, 
#site-navigation .navbar-header,
#site-navigation .container {
    height: auto !important;
    min-height: 0 !important;
    max-height: 40px !important; /* Límite estricto para la cacería */
}

/* Ajuste de los enlaces para que el área de clic sea compacta */
#site-navigation .navbar-nav > li > a {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    line-height: 30px !important; /* Controla la altura real del texto */
    height: 40px !important;
}

/* Eliminar rellenos residuales en los contenedores de Bootstrap */
.navbar-collapse, .navbar-header {
    padding: 0 !important;
    margin: 0 !important;
}



/* ==========================================================================
   BgfTech: Estilos para Botones de Acción (Producto Simple)
   ========================================================================== */

.payhip-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

/* Estilo unificado para Comprar y Descargar */
.bgf-btn-buy-now, 
#trigger-descarga-gratis {
    background-color: #004481 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    
    /* Centrado Perfecto */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    
    /* Dimensiones */
    width: 100% !important;
    height: 45px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.bgf-btn-buy-now:hover, 
#trigger-descarga-gratis:hover {
    background-color: #002a50 !important;
}


/* BgfTech: Botón de acción para carrito gratuito */
.checkout-button.bgf-cart-download {
    background-color: #004481 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 55px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    width: 100% !important;
    font-size: 16px;
    border: none !important;
}

.checkout-button.bgf-cart-download:hover {
    background-color: #002a50 !important;
}


/* BgfTech: Estilos Modal de Descarga */
.bgf-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
}
.bgf-modal-content {
    background: #fff; padding: 30px; border-radius: 12px;
    width: 90%; max-width: 400px; position: relative; text-align: center;
}
.bgf-modal-content h3 { color: #004481; margin-bottom: 10px; }
.bgf-input-group { text-align: left; margin-bottom: 15px; }
.bgf-input-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.bgf-input-group input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
.bgf-terms-group { margin-bottom: 20px; font-size: 13px; text-align: left; }

/* Botón con centrado flexbox */
#btn-confirm-free {
    background-color: #004481 !important;
    color: #fff !important;
    border: none; width: 100%; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: bold; cursor: pointer;
    text-transform: uppercase;
}


/* BgfTech: Control de visibilidad de modales */
.bgf-modal-overlay {
    display: none; /* Crucial: Oculto al cargar */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

/* Solo se muestra cuando agregamos la clase activa vía JS o la forzamos con Flex */
.bgf-modal-overlay.active {
    display: flex !important;
}


/* BgfTech: Asegurar que los modales nazcan ocultos */
.bgf-modal-overlay, #modal-entrega, #bgf-modal-free {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}


/* BgfTech: Estilos para el cierre del modal */
.bgf-modal-content {
    position: relative; /* Necesario para posicionar la X */
    padding-top: 40px;   /* Espacio extra para la X */
}

.bgf-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.bgf-modal-close:hover {
    color: #004481; /* Azul corporativo de Bgf Inversiones C.A. */
}


/* Aplicando fondo azul corporativo #004481 a la cápsula del carrito */
.cart-contents {
    background-color: #003366 !important;
    color: #ffffff !important; /* Texto en blanco para contraste */
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 4px;
}

/* Forzamos que el icono sea blanco sobre el fondo azul */
.cart-contents i.fa {
    color: #ffffff !important;
}


/* BgfTech: Unificar color blanco en todo el texto del carrito express */
.cart-contents, 
.cart-contents .amount-cart, 
.cart-contents .amount-cart strong {
    color: #ffffff !important;
}


/* * Ajuste de legibilidad para el listado de preguntas en escritorio.
 * Sobrescribe los estilos por defecto del plugin Product Questions & Answers.
 */

.table-responsive.my-table table tr td.ets-question-description p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #333 !important; /* Un tono oscuro para mejor contraste en BgfTech */
    margin: 0;
}

/* * Ajuste de fuente para las respuestas en escritorio.
 * Aplicado en desktop.css con prioridad sobre el plugin.
 */

/* Estilo para la pregunta (Ya definido) */
.my-table table tr td.ets-question-description p {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* Estilo para la respuesta (Celda con colspan 2) */
.my-table table tr td[colspan="2"] p {
    font-size: 18px !important;
    line-height: 1.6 !important;
    color: #007cba !important; /* Azul corporativo para identificar la respuesta oficial de BgfTech */
    font-weight: 500 !important;
}










/**
 * Estilos dedicados para pagina carrito y Mi Cuenta!
 * Modificación: Corrección de visibilidad de imagen de fondo en Desktop y Tablet.
 */

/* Forzar que el contenedor de las dos columnas sea flexible en todas las pantallas */
.woocommerce-account .u-columns.col2-set {
    display: flex !important;
    flex-direction: row; /* En paralelo para Desktop/Tablet */
    flex-wrap: wrap;    /* Permite bajar la segunda columna en móviles */
    width: 100%;
}

.woocommerce-account .woocommerce {
    max-width: 1150px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
}

/* --- SECCIÓN INGRESAR (Izquierda/Fondo Imagen) --- */
.woocommerce-account .u-column1.col-1 {
    /* Usamos una URL directa para asegurar compatibilidad con Desktop */
    background-image: linear-gradient(135deg, rgba(10, 48, 87, 0.85) 0%, rgba(10, 48, 87, 0.6) 100%), 
                      url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=1000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px !important;
    color: #ffffff;
    flex: 1; /* Ocupa el 50% en escritorio */
    min-height: 500px; /* Asegura que la imagen tenga altura en desktop */
}

/* --- SECCIÓN REGISTRAR (Derecha/Limpia) --- */
.woocommerce-account .u-column2.col-2 {
    background-color: #f4f7f9;
    padding: 60px !important;
    color: #0a3057;
    flex: 1; /* Ocupa el 50% en escritorio */
}

/* --- AJUSTE RESPONSIVO (Móvil) --- */
@media (max-width: 768px) {
    .woocommerce-account .u-columns.col2-set {
        flex-direction: column; /* Apilar en móviles */
    }
    
    .woocommerce-account .u-column1.col-1, 
    .woocommerce-account .u-column2.col-2 {
        width: 100%;
        padding: 40px 30px !important;
    }
}

/* Mantener tus estilos de fuentes y botones */
.woocommerce-account .form-row label {
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

.woocommerce-account .u-column2.col-2 p {
    font-size: 1.6rem !important;
    line-height: 1.9;
    color: #666;
    margin: 0;
}

/* Eliminar bordes nativos de WC */
.woocommerce-account .woocommerce form.login, 
.woocommerce-account .woocommerce form.register {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}








/**
 * Estilos dedicados para Carrusel Youtobe!
 
 */
.bgf-video-slider {
    width: 100%;
    overflow: hidden; /* Oculta el exceso para que no parezca una lista */
    padding: 20px 0;
}

.bgf-video-card {
    background: #222;
    padding: 10px;
	background-color: #ffffff;
    border-radius: 10px;
}

.bgf-thumb {
    width: 100%;
    aspect-ratio: 16 / 9; /* Mantiene el formato YouTube */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.bgf-video-title {
    font-size: 14px;
    line-height: 1.4;
    color: #333; /* Ajusta según tu fondo */
    margin: 10px 0 0;
    height: 3em; /* Limita a dos líneas de texto */
    overflow: hidden;
}


/* Evitar el salto visual del carrusel */

/* 1. Forzar que el contenedor no deje que los hijos se desparramen */
.bgf-video-slider {
    display: flex !important;
    overflow: hidden !important; /* Oculta los videos que sobran mientras carga */
    visibility: hidden; /* Lo ocultamos un segundo hasta que esté listo */
    max-height: 400px; /* Altura estimada para evitar que el layout salte */
}

/* 2. Cuando Swiper se inicializa, añade la clase .swiper-initialized automáticamente */
.bgf-video-slider.swiper-initialized {
    visibility: visible;
}

/* 3. Definir el tamaño de las diapositivas desde el CSS puro */
.bgf-video-slider .swiper-slide {
    width: 33.333% !important; /* En desktop queremos 3 */
    flex-shrink: 0;
    padding: 10px;
}

@media (max-width: 767px) {
    .bgf-video-slider .swiper-slide {
        width: 100% !important; /* En mobile 1 solo */
    }
}