/*
 Theme Name:   Envo One Child
 Theme URI:    http://fbsoluciones.com.mx
 Description:  Child Theme para Envo One - FBSoluciones
 Author:       FBSoluciones
 Author URI:   http://fbsoluciones.com.mx
 Template:     envo-one
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  envo-one-child
*/
/* Ocultar el botón original de proceder al pago */
a.checkout-button.button.alt.wc-forward {
    display: none !important;
}

/* Contenedor de botones - siempre visible */
.wc-proceed-to-checkout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-top: 20px !important;
}

/* Estilo base para el botón de WhatsApp */
.button.whatsapp-button {
    background-color: #25D366 !important;
    color: white !important;
    border: none !important;
    padding: 15px 20px !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    margin: 0 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    text-align: center !important;
}

.button.whatsapp-button:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15) !important;
    color: white !important;
}

/* Estilo para el icono de WhatsApp */
.whatsapp-icon {
    margin-right: 10px !important;
    font-size: 20px !important;
}

/* Para pantallas más grandes (tablet y desktop) */
@media (min-width: 768px) {
    .wc-proceed-to-checkout {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    .button.whatsapp-button {
        width: auto !important;
        min-width: 280px !important;
        margin: 0 !important;
    }
}

/* Asegurar que el botón sea visible en móviles */
@media (max-width: 767px) {
    .button.whatsapp-button {
        padding: 18px 15px !important;
        font-size: 17px !important;
    }
    
    /* Forzar visibilidad en móviles */
    .button.whatsapp-button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 999 !important;
    }
}

/* Asegurar que el carrito sea responsive */
.woocommerce-cart-form {
    margin-bottom: 30px;
    overflow-x: auto;
}

.cart_totals {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
    width: 100%;
}

/* Mejorar visibilidad del formulario de envío */
.shipping-calculator-form {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #e5e5e5;
}

.shipping-calculator-form p {
    margin-bottom: 10px;
}

.shipping-calculator-form input,
.shipping-calculator-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px; /* Mejor para móviles */
}

.shipping-calculator-form button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
}

.shipping-calculator-form button:hover {
    background-color: #555;
}

/* Destacar información de envío */
.woocommerce-shipping-destination {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #25D366;
    font-size: 14px;
}

/* ============================================= */
/* AJUSTES ESPECÍFICOS PARA MÓVILES MEJORADOS */
/* ============================================= */

@media (max-width: 767px) {
    /* HEADER GENERAL - Ajustar padding y altura */
    .site-header.title-header.container-fluid {
        padding: 8px 0;
        min-height: 60px;
    }
    
    .heading-row.row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        height: 60px;
    }
    
    /* LOGO MÁS GRANDE */
    .site-heading {
        width: 55%;
        max-width: 220px !important; /* Logo más grande */
        order: 1;
    }
    
    .site-branding-logo img {
        max-height: 50px !important; /* Altura aumentada */
        width: auto;
        transition: all 0.3s ease;
    }
    
    .site-branding-text {
        display: none;
    }
    
    /* CONTENEDOR DERECHO (ICONOS) */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        order: 2;
        width: 45%;
        gap: 15px;
        height: 100%;
    }
    
    /* MENÚ HAMBURGUESA MEJORADO - Color #15abd2 */
    .menu-button.visible-xs {
        order: 1;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .menu-button .navbar-header {
        margin: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    /* Icono hamburguesa moderno con color #15abd2 */
    .toggle.menu-panel {
        display: block !important;
        width: 36px; /* Un poco más grande */
        height: 36px;
        position: relative;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    .toggle.menu-panel span {
        display: block;
        width: 100%;
        height: 3px; /* Líneas un poco más gruesas */
        background: #15abd2; /* Color corporativo */
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .toggle.menu-panel span:nth-child(1) {
        top: 10px;
        transform-origin: center;
    }
    
    .toggle.menu-panel span:nth-child(2) {
        top: 18px;
        opacity: 1;
    }
    
    .toggle.menu-panel span:nth-child(3) {
        top: 26px;
        transform-origin: center;
    }
    
    /* Animación hover para el menú */
    .toggle.menu-panel:hover span {
        background: #0d7a9a; /* Color más oscuro al hover */
    }
    
    /* Animación cuando el menú está activo */
    .toggle.menu-panel.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .toggle.menu-panel.active span:nth-child(2) {
        opacity: 0;
    }
    
    .toggle.menu-panel.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* ICONO DEL CARRITO - Mejorado */
    .header-cart {
        order: 2;
        visibility: visible !important;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .cart-contents {
        display: flex;
        align-items: center;
        gap: 5px;
        position: relative;
        padding: 5px;
    }
    
    /* Icono carrito con color #15abd2 */
    .header-cart svg.feather-shopping-cart {
        width: 26px;
        height: 26px;
        color: #15abd2; /* Color corporativo */
        stroke: #15abd2; /* Asegurar color en SVG */
        transition: all 0.3s ease;
    }
    
    .header-cart:hover svg.feather-shopping-cart {
        color: #0d7a9a; /* Color más oscuro al hover */
        stroke: #0d7a9a;
    }
    
    /* Contador del carrito mejorado */
    .cart-counter {
        position: relative;
    }
    
    .cart-counter .count {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #15abd2; /* Color corporativo */
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    
    .cart-counter:hover .count {
        background: #0d7a9a; /* Color más oscuro al hover */
        transform: scale(1.1);
    }
    
    /* OCULTAR ELEMENTOS INNECESARIOS */
    .header-widget-area,
    .header-my-account,
    .header-wishlist,
    .header-compare {
        display: none !important;
    }
    
    .amount-cart.hidden-xs {
        display: none !important;
    }
}

/* ============================================= */
/* MEJORAS PARA TABLETS */
/* ============================================= */

@media (min-width: 768px) and (max-width: 991px) {
    .site-heading {
        max-width: 280px !important; /* Logo aún más grande en tablets */
    }
    
    .site-branding-logo img {
        max-height: 55px !important;
    }
    
    .header-right {
        gap: 20px;
    }
    
    .toggle.menu-panel {
        width: 40px;
        height: 40px;
    }
    
    .toggle.menu-panel span {
        height: 3px;
    }
    
    .toggle.menu-panel span:nth-child(1) {
        top: 12px;
    }
    
    .toggle.menu-panel span:nth-child(2) {
        top: 20px;
    }
    
    .toggle.menu-panel span:nth-child(3) {
        top: 28px;
    }
    
    .header-cart svg.feather-shopping-cart {
        width: 28px;
        height: 28px;
    }
}

/* ============================================= */
/* AJUSTES PARA MÓVILES MUY PEQUEÑOS */
/* ============================================= */

@media (max-width: 360px) {
    .site-heading {
        width: 50%;
        max-width: 180px !important;
    }
    
    .header-right {
        width: 50%;
        gap: 10px;
    }
    
    .site-branding-logo img {
        max-height: 45px !important;
    }
    
    .toggle.menu-panel {
        width: 32px;
        height: 32px;
    }
    
    .header-cart svg.feather-shopping-cart {
        width: 24px;
        height: 24px;
    }
}

/* ============================================= */
/* ANIMACIONES SUAVES PARA MEJOR EXPERIENCIA */
/* ============================================= */

.heading-row.row,
.site-branding-logo img,
.toggle.menu-panel span,
.header-cart svg.feather-shopping-cart,
.cart-counter .count {
    transition: all 0.3s ease;
}

/* ============================================= */
/* ESTILOS PARA EL MENÚ DESPLEGABLE OFFCANVAS */
/* ============================================= */

/* Fondo del menú desplegable */
.hc-offcanvas-nav .nav-container {
    background: #f8f9fa;
}

/* Botón de cerrar con color corporativo */
.hc-offcanvas-nav li.nav-close a {
    background: #15abd2 !important;
    color: white !important;
    font-weight: bold;
}

/* Items del menú */
.hc-offcanvas-nav .nav-item {
    border-bottom: 1px solid #e9ecef;
}

.hc-offcanvas-nav .nav-item > a {
    color: #333 !important;
    font-weight: 500;
    padding: 15px 20px;
}

.hc-offcanvas-nav .nav-item > a:hover {
    background: #15abd2 !important;
    color: white !important;
}

/* Título del menú */
.hc-offcanvas-nav .nav-title {
    background: #15abd2 !important;
    color: white !important;
    padding: 15px 20px;
    font-weight: bold;
}

/* Iconos del menú */
.hc-offcanvas-nav .nav-item > a .fa {
    color: #15abd2 !important;
}

.hc-offcanvas-nav .nav-item > a:hover .fa {
    color: white !important;
}
.hc-nav-trigger {
    top: 4px!important;
    
}

.whatsapp-boton {
    width: 70px;
    right: 80px;
    position: fixed;
    bottom: 0px;
    z-index: 1450;
}