/* Validación para BgfTech - Móvil */
/* body::before { */
    /* content: "MODO: MÓVIL ACTIVADO" !important; */
    /* position: fixed; */
    /* top: 10px; */
    /* left: 10px; */
    /* background: #ff4d4d !important; */
    /* color: white !important; */
    /* padding: 5px 10px; */
    /* font-size: 12px; */
    /* z-index: 999999; */
    /* border-radius: 4px; */
    /* font-family: sans-serif; */
/* } */





/* Estilos Móvil - BgfTech (max-width: 767px) */

/* Carrusel Horizontal Táctil */
.wc-block-product-template, 
.wc-block-grid__products,
.wp-block-woocommerce-product-collection ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 15px !important;
    padding: 10px !important;
    scrollbar-width: none !important; /* Ocultar barra */
}

/* Mostrar 2 productos (aprox) en pantalla */
.wc-block-product-template li,
.wc-block-grid__product,
.wp-block-woocommerce-product-collection li {
    flex: 0 0 calc(50% - 20px) !important;
    min-width: calc(50% - 20px) !important;
    scroll-snap-align: center !important;
}

/* Ocultar flechas en móvil */
.envo-storefront-carousel-arrows,
.wc-block-grid__product-image .next,
.wc-block-grid__product-image .prev {
    display: none !important;
}





/* * Estilos específicos para Móvil - BgfTech.shop
 * Configuración de carrusel táctil de 2 columnas sin flechas.
 */

/* Ocultar elementos innecesarios del tema padre en móvil */
.envo-storefront-carousel-arrows,
.wc-block-grid__products + .swiper-pagination {
    display: none !important;
}

/* Transformar bloques de colecciones en carrusel horizontal */
.wc-block-grid__products {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 15px 15px 15px;
}

/* Ajuste de 2 productos por vista centrados */
.wc-block-grid__product {
    flex: 0 0 calc(50% - 15px) !important;
    max-width: calc(50% - 15px) !important;
    scroll-snap-align: center;
    list-style: none;
    margin-bottom: 0 !important;
}

/* Mejorar la legibilidad de títulos en móviles para consistencia visual */
.wc-block-grid__product-title {
    font-size: 14px !important;
    min-height: 40px;
    line-height: 1.2;
}




/**
 * BgfTech - Móvil Vertical
 * Muestra 2 productos + 15% del siguiente.
 */
.wc-block-product-template li,
.wc-block-grid__product {
    flex: 0 0 42% !important; /* Ajustado para que quepan 2 y asome el 3ro */
    min-width: 42% !important;
    scroll-snap-align: center !important; /* Centra el producto al soltar el dedo */
}

/**
 * BgfTech - Ajustes de Tarjeta en Móvil
 */

/* Reducir tamaño del título en móvil */
.wc-block-grid__product-title, 
.woocommerce-loop-product__title {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
    min-height: 2.4em; /* Reserva espacio para 2 líneas máximo */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Alineación de componentes: Imagen, Título, Precio y Botón */
.wc-block-grid__product, 
.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Empuja el botón al final */
    height: 100% !important;
    padding-bottom: 15px !important;
}

/* Alineación del precio */
.wc-block-grid__product-price, 
.price {
    margin-top: auto !important; /* Empuja el precio hacia arriba del botón */
    margin-bottom: 10px !important;
    font-weight: bold;
}

/**
 * BgfTech - Optimización Móvil (mobile.css)
 * Ajuste de títulos, alineación de elementos y corrección de botones.
 */

/* 1. Títulos: Reducción de fuente y control de altura */
.wc-block-grid__product-title, 
.woocommerce-loop-product__title {
    font-size: 14px !important; /* Tamaño legible pero compacto */
    line-height: 1.2 !important;
    margin: 10px 0 !important;
    font-weight: 500 !important;
    
    /* Forzar máximo 2 líneas y añadir puntos suspensivos si es más largo */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px; /* Mantiene la altura aunque el título sea de una sola línea */
}

/* 2. Estructura de la Tarjeta: Alineación Perfecta */
.wc-block-grid__product, 
li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    height: 100% !important;
    padding: 10px !important;
    background: #ffffff;
}

/* 3. Precios: Empuje hacia abajo */
.wc-block-grid__product-price, 
.price {
    margin-top: auto !important; /* Empuja el precio y el botón al fondo */
    margin-bottom: 8px !important;
    font-size: 15px !important;
}

/* 4. Botón "Añadir al Carrito": Corrección de Color y Posición */
html body .wc-block-grid__product-add-to-cart a,
html body .add_to_cart_button,
html body .wp-block-button__link {
    background-color: transparent !important;
    color: #181717 !important; /* Texto Negro */
    border: 1px solid #d9d9d9 !important;
    font-size: 12px !important;
    padding: 8px 5px !important;
    text-transform: uppercase;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/**
 * BgfTech - Ajuste Estricto de Título en Móvil
 * Reduce fuente, elimina espaciado excesivo y corta a máximo 2 líneas.
 */

.wc-block-grid__product-title, 
.woocommerce-loop-product__title,
.wp-block-woocommerce-product-collection h2 {
    /* 1. Reducción de fuente y espaciado */
    font-size: 14px !important; 
    line-height: 1.1 !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    padding: 0 !important;
    font-weight: 500 !important;

    /* 2. Forzar el corte (Truncado) a 2 líneas */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* NO permite más de 2 líneas */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    
    /* 3. Altura fija para mantener simetría */
    height: 2.2em !important; /* Altura de exactamente 2 líneas */
    min-height: 2.2em !important;
}

/* Ajuste del contenedor para que no se estire */
.wc-block-grid__product, 
li.product {
    display: flex !important;
    flex-direction: column !important;
    max-height: 420px; /* Ajusta este valor según el alto total deseado */
    overflow: hidden !important;
}

/**
 * BgfTech - Alineación de Precios Dual vs Gratis
 * Reserva un espacio fijo para el precio para que el botón no salte.
 */

/* 1. Contenedor de Precio: Altura Fija */
/**
 * BgfTech - Ajuste de Contenedor de Precio
 * Reducimos el tamaño fijo al mínimo necesario para 2 líneas.
 */

.wc-block-grid__product-price, 
.price {
    /* Ajustamos de 2.8em a 2.2em para cerrar el espacio */
    min-height: 1.8em !important; 
    
    display: flex !important;
    flex-direction: column !important;
    
    /* Alinea el contenido (Gratis o Dual) al final del contenedor */
    /* Así el texto siempre estará cerca del botón */
    justify-content: flex-end !important; 
    
    /* Eliminamos márgenes que puedan estar sumando espacio extra */
    margin-bottom: 5px !important; 
    padding-bottom: 0 !important;
}

/* Forzamos que el precio dual no tenga márgenes internos que lo inflen */
.price span, .price ins, .price del {
    margin: 0 !important;
    line-height: 1.1 !important;
}
/* 2. Ajuste específico para el texto "Gratis" */
/* Asumiendo que tu gancho usa una clase o etiqueta estándar de WC */
.price .woocommerce-Price-amount,
.price ins,
.price del {
    display: block !important;
    line-height: 1.2 !important;
}

/* 3. El Botón: Anclaje final */
.wc-block-grid__product-add-to-cart,
.add_to_cart_button {
    align-self: flex-end !important;
    width: 100% !important;
}

/**
 * BgfTech - Compactación de Botón (mobile.css)
 * Elimina espacios muertos y reduce el área del botón.
 */

/* 1. Eliminar márgenes superiores del contenedor del botón */
.wc-block-grid__product-add-to-cart,
.add_to_cart_button {
    margin-top: 0 !important; 
    padding-top: 0 !important;
}

/* 2. Reducir el padding interno del botón para que sea más delgado */
html body .wc-block-grid__product-add-to-cart a,
html body .add_to_cart_button,
html body .wp-block-button__link {
    padding-top: 5px !important;    /* Espacio superior interno mínimo */
    padding-bottom: 5px !important; /* Espacio inferior interno mínimo */
    margin-bottom: 0 !important;    /* Elimina margen inferior */
    line-height: 1 !important;      /* Ajusta la altura de línea al texto */
}

/* 3. Ajuste de la tarjeta para cerrar la brecha final */
.wc-block-grid__product, 
li.product {
    padding-bottom: 5px !important; /* Reduce el espacio al borde de la tarjeta */
}



/**
 * BgfTech - Altura Estricta de Precio (mobile.css)
 * Forzamos que el contenedor de precio sea IDENTICO en todos los productos.
 */

/**
 * BgfTech - Centrado Absoluto de Precio (mobile.css)
 * Alineación perfecta para precios Dual y Gratis en contenedor de altura fija.
 */

.wc-block-grid__product-price, 
.price {
    /* 1. Mantenemos la altura fija que definimos */
    height: 0px !important; 
    
    /* 2. Activamos Flexbox para centrado */
    display: flex !important;
    flex-direction: column !important;
    
    /* Centrado Vertical */
    justify-content: center !important; 
    
    /* Centrado Horizontal */
    align-items: center !important; 
    text-align: center !important;
    
    /* 3. Limpieza de espacios externos */
    margin-bottom: 10px !important;
    padding: 0 !important;
    width: 100% !important; /* Asegura que ocupe todo el ancho para centrar bien */
}

/* 4. Aseguramos que los elementos internos (span, ins, del) no tengan márgenes */
.price span, .price ins, .price del {
    display: block !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}


/**
 * BGF INVERSIONES C.A. - PRODUCT DETAIL (MOBILE & GLOBAL)
 * Estilos base y visualización en una sola columna.
 */

/* 1. Título y Cabecera */
.single-product .bgf-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 10px !important;
    color: #333;
    text-align: left;
}

/* 2. Tarjeta de Precios Duales */
.single-product .bgf-price-card-minimal {
    border: 1px solid rgba(0, 68, 129, 0.15);
    background: #ffffff;
    padding: 12px 15px !important;
    border-radius: 10px;
    margin: 5px 0 15px 0 !important;
}

.single-product .bgf-main-price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

.single-product .bgf-usd-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #000;
}

.single-product .bgf-ves-value {
    font-size: 16px !important;
    color: #444 !important;
    font-weight: 500;
}

.single-product .bgf-rate-tag {
    font-size: 11px !important;
    color: #777;
    background: #f0f4f8;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 3. Botones de Acción Estilo Payhip */
.single-product .payhip-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.single-product .bgf-btn-buy-now {
    background: #004481 !important;
    color: #fff !important;
    padding: 16px !important;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease;
}

.single-product .single_add_to_cart_button {
    background-color: rgba(0, 68, 129, 0.05) !important;
    color: #004481 !important;
    border: 1px solid #004481 !important;
    border-radius: 6px !important;
    padding: 14px !important;
    font-weight: 600 !important;
    width: 100% !important;
}

/* 4. Limpieza de PayPal (Global) */
.single-product .ppc-button-wrapper, 
.single-product #ppc-button-ppcp-gateway,
.single-product .wc-ppcp-product-payment-container,
.single-product [id^="zoid-paypal-buttons"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}


/**
 * BGF INVERSIONES C.A. - CARRUSEL TÁCTIL DE PRODUCTOS RELACIONADOS
 * Descripción: Convierte la lista vertical de relacionados en un carrusel horizontal para móvil.
 * Tipo: Modificación de diseño responsivo.
 */
    /* 1. Contenedor de la sección */
    .related.products {
        padding: 20px 0 !important;
        overflow: hidden;
    }

    .related.products h2 {
        font-size: 18px !important;
        margin-left: 15px !important;
        margin-bottom: 15px !important;
    }

    /* 2. Convertimos el <ul> en un carrusel de desplazamiento lateral */
    .related.products ul.products {
        display: flex !important;
        flex-wrap: nowrap !important; /* Evita que los productos bajen */
        overflow-x: auto !important; /* Permite el scroll horizontal */
        scroll-snap-type: x mandatory !important; /* Hace que se "pegue" al deslizar */
        -webkit-overflow-scrolling: touch; /* Suavidad en iOS */
        padding: 0 15px 20px 15px !important;
        gap: 15px !important;
        list-style: none !important;
    }

    /* Ocultar barra de scroll para estética limpia */
    .related.products ul.products::-webkit-scrollbar {
        display: none;
    }
	
	.related.products .price .amount bdi {
    font-weight: 800 !important; /* Negrita solicitada */
    white-space: nowrap !important; /* Evita que el $ baje */
    display: block !important; /* Cambiado a block para no romper el carrusel */
    text-align: center !important; /* Centra el monto */
	}

	/* Forzar el símbolo $ a quedarse pegado al número */
	.related.products .woocommerce-Price-currencySymbol {
		display: inline !important;
		font-weight: 800 !important;
		margin-left: 2px;
	}
	
	
	
	
	

    /* 3. Ajuste de cada producto (Mostramos 2 por pantalla) */
    .related.products ul.products li.product {
        flex: 0 0 calc(50% - 10px) !important; /* Ancho exacto para que entren 2 */
        width: calc(50% - 10px) !important;
        scroll-snap-align: start !important; /* Punto de anclaje del scroll */
        margin: 0 !important; /* Reset de márgenes de WooCommerce */
        background: #fff;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }


    /* Ajuste de imagen y título en el carrusel */
    .related.products ul.products li.product img {
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        margin-bottom: 10px !important;
    }

    .related.products ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.2 !important;
        height: 32px !important; /* Forzamos altura para alinear botones */
        overflow: hidden;
        margin-bottom: 10px !important;
    }

    /* Botón de añadir al carrito compacto para el carrusel */
    .related.products ul.products li.product .add_to_cart_button {
        padding: 8px 5px !important;
        font-size: 11px !important;
        text-transform: uppercase;
    }
	
	
/* ============================================
   HEADER MÓVIL COMPACTO - UNA LÍNEA
   Orden: Menu | Cuenta | Logo | Buscar | Carrito
   ============================================ */

/* Contenedor principal */
.mobile-header {
    position: fixed !important; /* Fuerza el fijado */
    top: 0 !important;          /* Bloquea el desplazamiento hacia arriba */
    left: 0 !important;
    width: 100% !important;
    transform: none !important; /* ANULA el salto del 20% del JS del padre */
    z-index: 9999 !important;   /* Asegura que siempre esté arriba */
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mobile-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 55px;
    padding: 0 5px;
}

/* Columnas generales */
.mobile-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
}

/* 1. MENÚ HAMBURGUESA */
.mobile-menu-col {
    justify-content: flex-start;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: opacity 0.3s;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.menu-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #333333;
    border-radius: 1px;
}

/* 2. CUENTA */
.mobile-account-col {
    justify-content: center;
}

.mobile-account-wrapper .my-account-link,
.mobile-account-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.mobile-account-wrapper .my-account-link:hover,
.mobile-account-icon:hover {
    color: #0073aa;
}

/* 3. LOGO (CENTRO) */
.mobile-logo-col {
    flex-grow: 1;
    max-width: 140px;
}

.mobile-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.mobile-logo-link {
    display: block;
    max-height: 45px;
    line-height: 0;
}

.mobile-logo-img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.mobile-site-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.mobile-site-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-site-title a:hover {
    color: #0073aa;
}

/* 4. BÚSQUEDA */
.mobile-search-col {
    justify-content: center;
}

.mobile-search-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mobile-search-toggle:hover {
    color: #0073aa;
}

/* 5. CARRITO */
.mobile-cart-col {
    justify-content: flex-end;
}

.mobile-cart-wrapper .cart-contents {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: color 0.3s;
}

.mobile-cart-wrapper .cart-contents:hover {
    color: #0073aa;
}

.mobile-cart-wrapper .cart-contents-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3366;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ============================================
   BÚSQUEDA DESPLEGABLE
   ============================================ */
.mobile-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1001;
    border-top: 1px solid #eee;
    display: none;
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.mobile-search-input:focus {
    border-color: #0073aa;
}

.mobile-search-submit {
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.mobile-search-submit:hover {
    background: #005a87;
}

.mobile-search-close {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 50px;
    font-size: 14px;
}

/* ============================================
   MENÚ MÓVIL DESPLEGABLE
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.mobile-menu-close:hover {
    color: #ff6b6b;
}

.mobile-navigation {
    padding: 15px;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > li {
    border-bottom: 1px solid #eee;
}

.mobile-menu > li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #0073aa;
}

.mobile-menu .sub-menu {
    padding-left: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 5px;
}

.mobile-menu .sub-menu li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-menu .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-menu .sub-menu a {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

/* ============================================
   AJUSTES PARA EL CONTENIDO
   ============================================ */
.device-mobile #page {
    padding-top: 0px; /* Altura del header móvil */
}

/* Ocultar elementos del header original en móvil */
.device-mobile .top-bar-section,
.device-mobile .search-heading,
.device-mobile .header-right,
.device-mobile .main-menu {
    display: none !important;
}

/* Asegurar que FontAwesome se vea bien */
.fa, .fas, .far, .fal, .fad, .fab {
    font-size: inherit;
    vertical-align: middle;
}

/* Responsive adicional para pantallas muy pequeñas */
@media (max-width: 360px) {
    .mobile-logo-img {
        max-height: 35px;
    }
    .mobile-site-title {
        font-size: 14px;
    }
    .mobile-header-row {
        height: 50px;
    }
    .device-mobile #page {
        padding-top: 0px;
    }
}
	
	
/* ===== ELEMENTOS BÁSICOS DEL HEADER MÓVIL ===== */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
}

.mobile-header-row {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 10px;
}

.mobile-col {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Botones */
.mobile-menu-toggle,
.mobile-search-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-bar {
    width: 20px;
    height: 2px;
    background: #333;
    margin: 2px 0;
    display: block;
}

/* Iconos FontAwesome */
.mobile-account-icon i,
.mobile-search-toggle i,
.mobile-search-submit i,
.mobile-menu-close i,
.mobile-search-close i {
    font-size: 18px;
    color: #333;
}

/* Logo */
.mobile-logo-img {
    max-height: 40px;
    width: auto;
}

.mobile-site-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mobile-site-title a {
    color: #333;
    text-decoration: none;
}

/* Paneles (ocultos por defecto via aria-hidden) */
.mobile-search-container,
.mobile-menu-overlay {
    display: none;
}

.mobile-search-container[aria-hidden="false"],
.mobile-menu-overlay[aria-hidden="false"] {
    display: block;
}

/* Búsqueda desplegable */
.mobile-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.mobile-search-form {
    display: flex;
    gap: 10px;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mobile-search-buttons {
    display: flex;
    gap: 5px;
}

/* Menú desplegable */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
}

.mobile-menu-header {
    text-align: right;
    margin-bottom: 0px;
}

/* Ajuste de contenido */
.device-mobile #page {
    /* El padding debe ser igual o mayor a la altura del header (aprox 60px) */
    padding-top: 0px !important; 
    margin-top: 0 !important;
}



/**
 * PROYECTO: BgfTech
 * FECHA: 29/01/2026
 * HORA: 12:05:00
 * TIPO: Modificación (Limpieza de Carrito)
 * DESCRIPCIÓN: Ocultar el monto de dinero en el icono del carrito y centrar el badge.
 * COMENTARIO: Se elimina el div .amount-cart visualmente para dar espacio al logo.
 */

/* 1. Ocultar el bloque del monto de dinero */
.mobile-cart-col .amount-cart {
    display: none !important;
}

/* 2. Estilizar el contenedor del icono para que sea un círculo de notificación */
.mobile-cart-col .cart-contents {
    position: relative;
    display: inline-block;
    padding: 5px;
}

/* 3. Posicionar el número (badge) sobre el icono de la bolsa */
.mobile-cart-col .cart-contents i.fa-shopping-bag {
    position: relative;
    font-size: 20px; /* Tamaño del icono */
    color: #333;
}

.mobile-cart-col .cart-contents .count {
    position: absolute;
    top: -10px;    /* Ajustar según necesidad visual */
    right: -10px;
    background-color: #ff4d4d; /* Rojo corporativo BgfTech */
    color: #ffffff;
    font-size: 10px;
    font-family: sans-serif;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff; /* Crea un anillo blanco para resaltar */
    font-style: normal; /* Quita la cursiva de la etiqueta <i> si la hereda */
}

/* 4. Ocultar el menú desplegable del carrito en móvil para evitar clics accidentales */
/* (El usuario irá directamente a la página de carrito al tocar) */
.mobile-cart-col .site-header-cart {
    display: none !important;
}






/**
 * PROYECTO: BgfTech
 * TIPO: Alineación Vertical de Cuenta
 * DESCRIPCIÓN: Centra icono y texto, corrigiendo el empuje hacia arriba.
 */

/* 1. Forzar el contenedor de la columna a ser un eje central */
.mobile-account-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* Centrado vertical real */
    align-items: center !important;     /* Centrado horizontal */
    height: 100% !important;
    padding-top: 10px !important;       /* Ajuste fino para bajar el bloque */
}

/* 2. Ajustar el wrapper interno para que no herede márgenes del padre */
.mobile-account-col .mobile-account-wrapper,
.mobile-account-col .header-login,
.mobile-account-col .header-login a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* 3. El Icono: Lo bajamos un poco más para que nivele con el Carrito */
.mobile-account-col i.fa-user-circle-o {
    font-size: 20px !important;
    margin-bottom: 2px !important; /* Espacio pequeño antes del texto */
    color: #1a1a1a !important;
}

/* 4. El Texto (Entrar/Nombre): Lo hacemos legible y centrado */
.mobile-account-col .header-login span {
    display: block !important; /* Lo volvemos a mostrar tras el cambio anterior */
    font-size: 9px !important;
    line-height: 1 !important;
    color: #555 !important;
    text-transform: uppercase;
    font-weight: 600;
}

/**
 * PROYECTO: BgfTech
 * ACCIÓN: Bloqueo de Monto en Carrito (Anti-Scroll Script)
 * DESCRIPCIÓN: Evita que el JS del padre muestre el monto al bajar el slider.
 */

/* Buscamos el monto del carrito y lo bloqueamos por completo */
.mobile-cart-col .amount-cart,
.mobile-cart-col .site-header-cart .amount,
.mobile-cart-col .cart-contents .amount {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important; /* Lo saca del flujo para que no empuje el icono */
}

/* Aseguramos que el badge (el círculo rojo) sea lo único que se vea */
.mobile-cart-col .cart-contents .count {
    display: flex !important; /* El badge siempre visible */
}










/**
 * PROPIEDAD: BGF INVERSIONES C.A
 * PROYECTO: BgfTech
 * DESCRIPCIÓN: Estilos de carrusel y rejilla restringidos a dispositivos móviles.
 */



    /* 1. Convertir bloques específicos en carrusel horizontal táctil */
    .wc-block-product-template, 
    .wc-block-grid__products,
    .wp-block-woocommerce-product-collection ul {
        display: flex !important;
        flex-wrap: nowrap !important; /* Mantiene los productos en una sola línea */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 15px !important;
        padding: 10px !important;
    }

    /* 2. Tamaño de la ficha en carrusel (Para que asome el 3er producto) */
    .wc-block-product-template li,
    .wc-block-grid__product,
    .wp-block-woocommerce-product-collection li {
        flex: 0 0 42% !important; 
        min-width: 42% !important;
        scroll-snap-align: center !important;
    }

    /* 3. Ajuste para la página de TIENDA oficial (NO carrusel) */
    /* Aquí permitimos que los productos bajen (wrap) para mostrar 2 por fila */
    .archive.post-type-archive-product ul.products,
    .tax-product_cat ul.products {
        display: flex !important;
        flex-wrap: wrap !important; /* Saltan a la siguiente línea */
        overflow-x: hidden !important;
        justify-content: center !important;
    }

    .archive.post-type-archive-product ul.products li.product,
    .tax-product_cat ul.products li.product {
        flex: 0 0 calc(50% - 20px) !important; /* 2 columnas perfectas */
        max-width: calc(50% - 20px) !important;
        margin: 10px 5px !important;
    }


/* Empujamos el contenedor de la tienda hacia abajo */
    .archive.post-type-archive-product article.col-md-12 {
        padding-top: 35px !important; /* Altura del header + margen de seguridad */
    }

    /* Estilizamos el título "Tienda" para que no quede pegado al header */
    .archive.post-type-archive-product h1.page-title {
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        color: #333;
    }

    /* Alineamos el contador y el selector de orden para que se vean ordenados */
    .woocommerce-result-count, 
    .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
        margin: 10px 0 !important;
    }




/**
 * PROPIEDAD: BGF INVERSIONES C.A
 * PROYECTO: BgfTech
 * ACCIÓN: Corrección de solapamiento en página de CARRITO
 * ESTILO: Estilos dedicados para pagina carrito!
 */


    /* Bajamos el contenedor principal del carrito */
    .woocommerce-cart .single-entry-summary,
    .woocommerce-cart .woocommerce {
        padding-top: 10px !important; /* Espacio para el header fijo de BgfTech */
    }

    /* Ajuste visual para la tabla de productos en móvil */
    .woocommerce-cart table.cart img {
        width: 70px !important; /* Imagen un poco más compacta para ganar espacio */
        height: auto !important;
    }

    /* Mejorar la visibilidad de la "X" de eliminar */
    .woocommerce-cart a.remove {
        display: inline-block !important;
        margin-top: 5px !important;
        font-size: 22px !important;
        color: #e2401c !important; /* Un rojo llamativo para BgfTech */
    }
    
    /* Asegurar que los totales del carrito tengan aire al final */
    .cart-collaterals {
        padding: 20px 10px !important;
    }



/**
 * PROPIEDAD: BGF INVERSIONES C.A (BgfTech)
 * ACCIÓN: Corrección de solapamiento cuando el CARRITO ESTÁ VACÍO
 * ESTILO: estilos dedicados para pagina carrito!
 */

    /* 1. Bajamos el título principal "Carrito" */
    .woocommerce-cart .page-head {
        margin-top: 350px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 2. Bajamos los avisos de "Carrito vacío" o "Producto eliminado" */
    .woocommerce-cart .woocommerce-notices-wrapper,
    .woocommerce-cart .cart-empty,
    .woocommerce-cart .woocommerce-info {
        margin-top: 20px !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }

    /* 3. Ajuste para el botón "Volver a la tienda" */
    .woocommerce-cart .return-to-shop {
        padding: 0 15px !important;
        margin-bottom: 50px !important;
    }

    .woocommerce-cart .return-to-shop a.button {
        /* width: 100% !important; /* Botón grande y fácil de tocar */ */
        text-align: center !important;
        padding: 15px !important;
		color: #181717;
    }
	
	
	
	/**
 * PROPIEDAD: BGF INVERSIONES C.A (BgfTech)
 * ACCIÓN: Posicionamiento forzado del aviso "Tu carrito está vacío"
 * ESTILO: estilos dedicados para pagina carrito!
 */

/* Este es el bloque que mencionaste, lo bajamos del header */
.woocommerce-cart .woocommerce-info {
    margin-top: 150px !important; /* Espacio de seguridad bajo el header de 91px */
    margin-left: 20px !important;
    margin-right: 20px !important;
    display: block !important;
    clear: both !important;
    line-height: 1.5 !important;
    padding: 0px !important;
    background-color: #f8f9fa !important; /* Un gris suave para que no choque */
    border-left: 4px solid #333 !important; /* Estilo sobrio BgfTech */
}

/* El botón de "Volver a la tienda" que aparece justo después */
.return-to-shop {
    text-align: center !important;
    margin-top: 20px !important;
}

.return-to-shop a.button {
    display: inline-block !important;
    width: 90% !important;
    padding: 15px !important;
    font-weight: bold !important;
    text-transform: uppercase !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;
}	
	
	
	
/**
 * BgfTech - Ajuste Integral de Tarjetas de Producto (Mobile)
 * Acción: Corrige desborde de botones, aumenta precio dual y evita cortes de título.
 * Aplicar en: assets/css/style.css dentro de @media (max-width: 767px)
 */


    /* 1. Contenedor Principal: Permitir que la altura crezca según el contenido */
    ul.wc-block-product-template {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 20px 5% !important; /* Añadimos padding vertical para que las sombras no se corten */
        box-sizing: border-box !important;
        align-items: stretch !important; /* Estira todos los productos a la misma altura */
    }


    /* 2. Tarjeta de Producto: Flexibilidad total */
    ul.wc-block-product-template li.wc-block-product {
        flex: 0 0 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
        height: auto !important; /* IMPORTANTE: Elimina restricciones de altura */
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Empuja el botón al final */
        background: #fff;
        border-radius: 12px;
        padding-bottom: 20px !important; /* Espacio extra al final para el botón */
        scroll-snap-align: center !important;
    }

    /* 3. Título: Evitar cortes y asegurar tamaño */
    .wc-block-product-template li.wc-block-product h2.wp-block-post-title {
        height: auto !important;
        min-height: 3.5rem; /* Asegura espacio para al menos 2 líneas */
        margin: 10px 0 !important;
        overflow: visible !important; /* Evita que el título se corte */
    }

    .wc-block-product-template li.wc-block-product h2.wp-block-post-title a {
        font-size: 1.55rem !important; /* Ajuste ligero para que no rompa tanto el diseño */
        line-height: 1.2 !important;
        font-weight: 700 !important;
        display: block !important;
    }

    /* 4. Precio Dual: Aumento de legibilidad */
    .wc-block-components-product-price {
        font-size: 1.7rem !important; /* Precio $ */
        margin: 10px 0 !important;
    }

    .precio-bs-dual {
        font-size: 1.5rem !important; /* Precio Bs más visible */
        font-weight: 600 !important;
        /* color: #d9534f !important; /* Un tono que resalte el valor en Bs */ */
        display: block !important;
        margin-top: 4px;
    }

    /* 5. Botón Añadir al Carrito: Ajuste de posición y tamaño */
    .wp-block-woocommerce-product-button {
        margin: 10px !important;
        padding-bottom: 5px !important;
    }

    .wc-block-components-product-button__button {
        width: 100% !important;
        font-size: 1.15rem !important;
        padding: 15px !important; /* Más alto para facilitar el click */
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

/**
 * BgfTech - Compactación Extrema de Precio Dual
 * Acción: Fuerza fila única, elimina espacios y ajusta tamaños para evitar desbordes.
 */

/* 1. Contenedor Raíz del Bloque: Eliminación de márgenes externos */
.wp-block-woocommerce-product-price.has-small-font-size {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important; /* Reduce el interlineado al mínimo */
}

/* 2. Contenedor Interno: Forzar Flexbox en una sola fila */
.wc-block-components-product-price.wc-block-grid__product-price {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Prohíbe el salto de línea */
    justify-content: center !important;
    align-items: baseline !important;
    gap: 2px !important; /* Espacio mínimo controlado entre $ y Bs */
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Precio en Dólares: Limpieza de estilos heredados */
.wc-block-components-product-price strong {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8rem !important; /* Tamaño equilibrado para fila única */
    white-space: nowrap !important;
}

/* 4. Precio en Bolívares: Ajuste de escala */
.wc-block-components-product-price .precio-bs-dual {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.4rem !important; /* Un poco más pequeño para jerarquía visual */
    white-space: nowrap !important;
    display: inline-block !important;
}

/* 5. Ajuste del Botón adyacente para aprovechar el espacio ganado */
.wp-block-woocommerce-product-button {
    margin-top: 8px !important; /* Espacio mínimo necesario después del precio */
}



/* * Archivo: mobile.css
 * Descripción: Alineación horizontal de controles de compra para dispositivos móviles.
 * Acción: Organiza [Cantidad] + [Añadir al Carrito] + [Comprar Ahora] en una sola fila compacta.
 */

/* 1. Contenedor principal en móviles */
.payhip-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between; /* Distribuye el espacio */
    gap: 5px; /* Espacio mínimo para móviles */
    width: 100%;
    margin-top: 15px;
}

/* 2. Ajuste del Formulario (Contiene Cantidad y Añadir al Carrito) */
form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 5px;
    margin: 0 !important;
    order: 1; /* Primero en la fila */
    flex: 1;  /* Permite que crezca proporcionalmente */
}

/* 3. Selector de cantidad compacto */
form.cart .input-text.qty {
    width: 55px !important; /* Más angosto para móviles */
    height: 40px !important; /* Altura ligeramente menor para dedos */
    border: 1px solid #0056b3 !important;
    border-radius: 5px !important;
    font-size: 16px;
}

/* 4. Botón Añadir al Carrito (Compacto) */
.single_add_to_cart_button {
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important; /* Fuente reducida para evitar saltos de línea */
    white-space: nowrap;
    border-radius: 5px !important;
    flex: 1;
}

/* 5. Botón Comprar Ahora (Compacto) */
.bgf-btn-buy-now {
    order: 2; /* Al final de la fila */
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    background-color: #0056b3;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1;
}

/* 6. Asegurar que las flechas nativas sean táctiles */
form.cart .input-text.qty::-webkit-inner-spin-button {
    height: 30px;
    opacity: 1;
}



/* * Archivo: mobile.css
 * Descripción: Selector de cantidad ultra-compacto con alto contraste para móviles.
 * Acción: Reduce el tamaño del bloque y mejora la visibilidad de los controles +/-.
 */

/* 1. Contenedor de cantidad (Grupo unificado) */
.quantity {
    display: flex !important;
    align-items: center;
    background-color: #0056b3; /* Fondo azul para todo el bloque (Alto contraste) */
    border-radius: 6px;
    overflow: hidden;
    height: 36px; /* Altura reducida y compacta */
}

/* 2. Botones de Signos Más y Menos */
form.cart .minus, 
form.cart .plus {
    display: flex !important; /* Los reactivamos para mejor control táctil */
    width: 30px !important;
    height: 36px !important;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

/* 3. El cajón del número (Input central) */
form.cart .input-text.qty {
    width: 35px !important; /* Ancho mínimo necesario */
    height: 36px !important;
    background-color: #ffffff !important; /* Fondo blanco para resaltar el número */
    color: #0056b3 !important;            /* Texto azul */
    border: none !important;
    border-left: 1px solid #0056b3 !important;
    border-right: 1px solid #0056b3 !important;
    text-align: center;
    font-size: 14px !important;
    font-weight: bold;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

/* Eliminar flechas internas para limpiar el diseño compacto */
form.cart .input-text.qty::-webkit-inner-spin-button,
form.cart .input-text.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 4. Ajuste de los botones de acción para encajar en la fila */
.single_add_to_cart_button,
.bgf-btn-buy-now {
    height: 36px !important; /* Misma altura que el selector de cantidad */
    font-size: 11px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
}

/* Espaciado general de la fila */
.payhip-buttons {
    gap: 4px !important;
}














/* MODIFICACIÓN: Ajuste integral de cabecera móvil para BgfTech.
   Corrige contraste de iconos, halo del logo y visualización del menú.
*/

/* 1. Fondo Sólido de Cabecera */
#masthead.mobile-header {
    background-color: #003366 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    border: none !important;
}

/* 2. Aislamiento del Logo (Halo Blanco)
   Usamos la clase específica .mobile-logo-img que vimos en tu HTML
*/
.mobile-logo-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 3px rgba(255,255,255,0.5)) !important;
    max-height: 45px !important; /* Ajuste de escala para la fila única */
    width: auto !important;
}

/* 3. Corrección de Iconos (Menú, Buscar, Cuenta, Carrito)
   Forzamos que los iconos de FontAwesome sean blancos y no cuadros grises/blancos.
*/
.mobile-header i.fa, 
.mobile-menu-toggle .menu-bar,
.mobile-search-toggle i,
.header-login i,
.header-cart i {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Específico para las 3 barras del menú hamburguesa */
.mobile-menu-toggle .menu-bar {
    background-color: #ffffff !important;
    display: block;
    height: 2px;
    width: 20px;
    margin: 4px 0;
}

/* 4. Textos de acompañamiento (Entrar, Montos) */
.header-login span, 
.amount-cart strong,
.count {
    color: #ffffff !important;
}

/* Fondo del contador del carrito (el circulito del 0) */
.header-cart .count {
    background-color: #ff0000 !important; /* Rojo para destacar, o blanco si prefieres */
    color: #fff !important;
}

/* 5. Compensación de Margen en el Home */
/* body.home .single-entry-summary { */
    /* margin-top: 55px !important; /* Espacio para que el slider no se solape */ */
/* } */

/* 6. Limpieza de Fondo en el Cuerpo */
body.home #page.site {
    background: transparent !important;
}



/* MODIFICACIÓN: Optimización de Top Bar de Tasas para BgfTech.
   Ajusta el contenido a una sola fila eliminando etiquetas redundantes y reduciendo escala.
*/

.bgf-top-bar-automatica {
    background-color: #000000 !important; /* Negro sólido para contraste con el azul del header */
    color: #ffffff !important;
    font-size: 11px !important; /* Fuente compacta */
    padding: 5px 0 !important;
    width: 100%;
}

.bgf-container-tasa {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* Prohíbe el salto a dos filas */
}

.bgf-flex-items {
    display: flex !important;
    gap: 15px !important; /* Espacio entre USD y EUR */
}

/* Ocultar etiquetas USD/EUR si prefieres dejar solo el número y el icono */
.bgf-rate strong {
    display: none !important; 
}

/* Ajuste de iconos dashicons */
.bgf-top-bar-automatica .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle !important;
    margin-right: 3px !important;
}

/* Formato del texto de la tasa */
.bgf-rate {
    white-space: nowrap !important; /* Evita que el número se parta */
}

/* Ajuste de la meta data (fecha/BCV) para que no empuje las tasas */
.bgf-meta {
    font-size: 9px !important;
    opacity: 0.8;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    .bgf-meta {
        display: none !important; /* En móviles muy pequeños, ocultamos la fecha para priorizar la tasa */
    }
}


/* MODIFICACIÓN: Eliminación de espacios residuales entre cabecera y Slider.
   Oculta el título "Inicio" y ajusta el margen superior del contenedor principal.
*/

/* 1. Ocultamos el título de la página solo en el Home */
body.home .single-head.page-head {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Ajuste fino del margen del Slider */
/* body.home .single-entry-summary { */
    /* margin-top: 50px !important; /* Ajusta este valor (45px a 55px) según el alto real de tu header */ */
    /* padding-top: 0 !important; */
/* } */

/* 3. Eliminamos márgenes internos de la estructura de la página */
body.home .main-content-page {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 4. Forzamos que el contenedor del slider no tenga padding superior */
.n2-section-smartslider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* MODIFICACIÓN: Ajuste de legibilidad para el texto de cuenta en cabecera móvil.
   Cambia el color de gris a blanco y aumenta el tamaño de fuente.
*/

/* Localizamos el span específico dentro del wrapper de cuenta móvil */
.mobile-account-wrapper .header-login a span,
.mobile-account-wrapper .header-login span {
    color: #ffffff !important;
    font-size: 12px !important; /* Aumentado de 10px a 12px */
    font-weight: 500 !important; /* Un poco más de grosor para que resalte sobre el azul */
    opacity: 1 !important;
    margin-top: 2px !important;
    display: block !important;
}

/* Aseguramos que el contenedor de cuenta no recorte el texto ahora que es más grande */
.mobile-account-wrapper .header-login a {
    min-width: 50px !important;
    height: auto !important;
    justify-content: center !important;
}

/* MODIFICACIÓN: Inserción de etiqueta "Tasa BCV" mediante CSS.
   Permite identificar la fuente de los datos sin alterar el HTML/PHP.
*/

.bgf-flex-items::before {
    content: "Tasa BCV:";
    font-weight: 700;
    color: #ffcc00; /* Un color dorado/amarillo para resaltar sobre el negro */
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 10px;
    display: flex;
    align-items: center;
}

/* Refresco de versión para BgfTech - v1.0.1 */


/**
 * BgfTech - Layout de Contacto (Mobile)
 * Ubicación: mobile.css
 * Descripción: Optimización para smartphones. Las columnas se apilan verticalmente.
 */

/* 1. Reajuste de Columnas a Bloque */
.wp-block-columns {
    display: block !important;
    width: 100%;
}

.wp-block-column {
    flex-basis: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px; /* Separación entre formulario y mapa */
}

/* 2. Optimización del Formulario para Pulgares */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
    font-size: 16px !important; /* Evita que iOS haga zoom automático al enfocar */
    padding: 12px !important;   /* Área de toque más amplia */
    border: 1px solid #bbb;
}

.wpcf7-form label {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Ajuste del CAPTCHA en móviles */
.bgf-captcha-container {
    flex-wrap: wrap; /* Si el número es largo, baja a la siguiente línea */
    justify-content: flex-start;
}

/* 3. Área de Mensaje */
.wpcf7-form textarea {
    height: 120px !important;
}

/* 4. Botón Enviar (Full Width en móvil) */
.wpcf7-submit {
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
}

/* 5. Ajuste del Mapa para Móvil */
#bgf-map-container {
    height: 350px !important; /* Altura reducida para que no ocupe toda la pantalla */
    border-radius: 0;         /* Opcional: quitar bordes redondeados en móvil para look "edge-to-edge" */
    touch-action: pan-x pan-y; /* Permite scroll de la página si se toca el mapa con un dedo */
}

/* 6. Mejorar la legibilidad de errores de validación */
.wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 5px;
}


/**
 * TIPO: NUEVO / UI MOBILE
 * DESCRIPCIÓN: Estilos optimizados para el modal de descarga gratuita en BgfTech.
 * ARCHIVO: mobile.css
 */

.bgf-modal-content {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 15px;
    position: relative;
    width: 90%;
    margin: 10% auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    font-family: sans-serif;
}

/* Botón de cerrar (×) */
.bgf-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #888;
    line-height: 1;
}

/* Títulos y textos */
.bgf-modal-content h3 {
    color: #004481; /* Azul Bgf Inversiones C.A. */
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bgf-modal-content h3 img {
    width: 24px;
    height: 24px;
}

.bgf-modal-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

/* Grupos de entrada */
.bgf-input-group {
    margin-bottom: 15px;
    text-align: left;
}

.bgf-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.bgf-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box; /* Evita que el padding desborde el ancho */
}

/* Términos y condiciones */
.bgf-terms-group {
    margin: 15px 0;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
}

.bgf-terms-group input {
    margin-right: 10px;
    transform: scale(1.2); /* Checkbox más grande para móviles */
}

/* Botón de acción principal */
#btn-confirm-free.bgf-btn-buy-now {
    width: 100%;
    background-color: #004481;
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

#btn-confirm-free.bgf-btn-buy-now:active {
    background-color: #002d55; /* Efecto visual al presionar */
    transform: scale(0.98);
}

/* * 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 Responsivos para Modal de Mapas - BgfTech 
 * Archivo: mobile.css
 */

/* Forzar que la ventana del modal ocupe el ancho de la pantalla */
#TB_window {
    width: 95% !important;
    left: 2.5% !important;
    margin-left: 0 !important;
    top: 5% !important;
    margin-top: 0 !important;
}

/* Ajustar el contenido interno para que no desborde */
#TB_ajaxContent {
    width: 100% !important;
    height: 75vh !important; /* Altura dinámica según la pantalla */
    padding: 10px !important;
    overflow-x: hidden !important;
}

/* Ajustar el contenedor del mapa y el título */
#bgf-map-modal-container div {
    width: 100% !important;
}

/* Asegurar que la 'X' de cierre sea visible y fácil de presionar */
#TB_closeWindowButton {
    outline: none;
}





/**
 * Estilos dedicados para pagina carrito y Mi Cuenta!
 * Modificación: Adaptación responsiva fluida para móvil y tablet en diseño de BgfTech.
 */

/* Contenedor principal: Se adapta al ancho de pantalla */
.woocommerce-account .woocommerce {
    max-width: 1150px;
    margin: 20px auto; /* Margen reducido para móviles */
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Por defecto apilado (móvil) */
}

/* En tablets y desktop se ponen en paralelo */
@media (min-width: 768px) {
    .woocommerce-account .u-columns.col2-set {
        display: flex;
        flex-direction: row;
    }
    .woocommerce-account .woocommerce {
        margin: 50px auto;
    }
}

/* --- SECCIÓN INGRESAR (Izquierda/Fondo Imagen) --- */
.woocommerce-account .u-column1.col-1 {
    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?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    padding: 40px 30px !important; /* Padding ajustado para pantallas táctiles */
    color: #ffffff;
    flex: 1;
}

.woocommerce-account .u-column1.col-1 h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Inputs en sección Ingresar */
.u-column1.col-1 .form-row input.input-text {
    color: #ffffff !important;
    border-bottom: 2px solid rgba(255,255,255,0.3) !important;
    background: transparent !important;
    margin-bottom: 15px;
    width: 100%;
}

/* --- SECCIÓN REGISTRAR (Derecha/Limpia) --- */
.woocommerce-account .u-column2.col-2 {
    background-color: #f4f7f9;
    padding: 40px 30px !important;
    color: #0a3057;
    flex: 1;
}

.woocommerce-account .u-column2.col-2 h2 {
    color: #0a3057 !important;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Inputs en sección Registrar */
.u-column2.col-2 .form-row input.input-text {
    color: #333 !important;
    border-bottom: 2px solid rgba(10, 48, 87, 0.2) !important;
    background: transparent !important;
    margin-bottom: 10px;
    width: 100%;
}

/* Botones: Ajuste de tamaño para fácil clic en móvil */
.woocommerce-account .button {
    padding: 15px !important;
    font-size: 1.2rem !important;
    width: 100%;
}

/* Ajustes de etiquetas (Labels) */
.woocommerce-account .form-row label {
    font-size: 1.4rem; /* Reducido levemente para evitar desbordes en móviles */
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

/* Textos secundarios (Privacidad/Avisos) */
.woocommerce-account .u-column2.col-2 p, 
.woocommerce-account .woocommerce-privacy-policy-text p {
    font-size: 1.1rem !important; /* Ajustado para legibilidad móvil */
    line-height: 1.6;
    color: #666;
    margin: 10px 0;
}

/* Eliminación de bordes estándar de WooCommerce con prioridad */
.woocommerce-account .woocommerce form.login, 
.woocommerce-account .woocommerce form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}


/**
 * Estilos dedicados para Carrusel Youtube - Versión Mobile
 * Sin media queries, optimizado para interacción táctil.
 */

.bgf-video-slider {
    width: 100%;
    overflow: hidden;
    padding: 15px 0 25px 0; /* Un poco menos de padding lateral */
    background-color: #ffffff;
}

.bgf-video-card {
    background-color: #ffffff;
    padding: 8px; /* Espaciado interno más ajustado para mobile */
    border-radius: 12px;
    border: 1px solid #eeeeee; /* Borde sutil para separar del fondo blanco */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Sombra más ligera para mobile */
}

.bgf-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
}

/* Icono de Play optimizado para el pulgar */
.bgf-play-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bgf-play-icon::after {
    content: "";
    border-style: solid;
    border-width: 7px 0 7px 12px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 3px;
}

.bgf-video-title {
    font-size: 13px; /* Fuente ligeramente menor para pantallas pequeñas */
    line-height: 1.3;
    color: #000000; /* Negro puro para máximo contraste */
    margin: 10px 4px 5px 4px;
    height: 2.6em; /* Mantiene consistencia en el alto de las tarjetas */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta el texto a 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

/* Estilos para la paginación (puntos de Swiper) */
.swiper-pagination-bullet {
    background: #cccccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #ff0000; /* Rojo YouTube para el punto activo */
}



/* CORRECCIÓN DE SOLAPAMIENTO EN HOME - BgfTech */

.home .mobile-header {
    /* Limitamos la altura máxima para que no "chorree" hacia abajo */
    height: 70px !important; 
    background: #ffffff !important; /* Forzamos sólido para anular degradados */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
}

/* Si el degradado viene de un pseudo-elemento (común en Envo Storefront) */
.home .mobile-header::before,
.home .mobile-header::after {
    display: none !important;
}

/* Ajuste del Slider para que no quede debajo del degradado */
.home .device-mobile #page {
    /* Aseguramos que el contenido empiece justo después del header */
    padding-top: 60px !important; 
    margin-top: 0 !important;
}