/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/*CARRITO
 * /

/* Estilos para el icono del carrito en el menú */
.menu-cart-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.cart-svg-icon {
    vertical-align: middle;
    transition: transform 0.2s ease;
}

/* Efecto hover sobre el icono */
.menu-item-carrito:hover .cart-svg-icon {
    transform: scale(1.1);
}

/* Badge con el contador de productos */
.cart-contents-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: #20a29b; /* Mismo color turquesa corporativo */
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ocultar el contador o atenuarlo cuando el carrito esté vacío (Opcional) */
.cart-contents-count:contains("0") {
    opacity: 0.5;
}


/* Badge asociación
 * /
 
 * /* Banner superior estrecho */
.febiotec-user-banner {
    background-color: #20a29b; /* Color de fondo personalizado */
    color: #ffffff;
    font-size: 13px;
    padding: 6px 16px;
    width: 100%;
    z-index: 9999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

/* Contenedor flexible */
.febiotec-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Información del usuario y Badge */
.febiotec-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.febiotec-user-info .user-email {
    font-weight: 500;
    color: #ffffff;
}

/* Estilos de los Badges */
.febiotec-user-info .user-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Badge de la Asociación (Suscriptores) */
.febiotec-user-info .badge-asociacion {
    background-color: #ffffff; /* Fondo blanco */
    color: #20a29b;            /* Texto en color 20a29b */
    text-transform: none !important; /* Respeta estrictamente mayúsculas y minúsculas */
}

/* Badge para Usuarios Externos (Rojo) */
.febiotec-user-info .badge-externo {
    background-color: #dc2626; /* Fondo rojo */
    color: #ffffff;            /* Texto blanco */
    text-transform: uppercase;
}

/* Botones del banner */
.febiotec-banner-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.febiotec-btn {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Botón "Hazte miembro de FEBiotec" */
.febiotec-btn-join {
    background-color: #ffffff;
    color: #20a29b !important;
    font-weight: 700;
    border: 1px solid #ffffff;
}

.febiotec-btn-join:hover {
    background-color: #f8fafc;
    color: #167a74 !important;
}

/* Botón Mi Cuenta */
.febiotec-btn-account {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.febiotec-btn-account:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

/* Botón Cerrar sesión */
.febiotec-btn-logout {
    background-color: #dc2626;
    color: #ffffff !important;
    border: 1px solid #dc2626;
}

.febiotec-btn-logout:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff !important;
}

/* Adaptación para pantallas móviles */
@media (max-width: 600px) {
    .febiotec-banner-container {
        justify-content: center;
        text-align: center;
    }
}

/**/
/* Botón de añadir al carrito */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce a.button,
.woocommerce button.button {
    background-color: #20a29b !important;
    color: #ffffff !important;
    border-color: #20a29b !important;
}

/* Fondo de la etiqueta Oferta */
.woocommerce span.onsale {
    background-color: #20a29b !important;
    color: #ffffff !important;
}

/* Precio en oferta resaltado y en negrita */
.woocommerce .price ins,
.woocommerce-Price-amount.amount ins,
ins .woocommerce-Price-amount {
    color: #20a29b !important;
    font-weight: bold !important;
    text-decoration: none;
}

/* Quitar fondo blanco y sombras del contenedor del producto */
.woocommerce div.product,
.woocommerce #content div.product,
.type-product,
.single-product .site-main,
.single-product #main,
.single-product article,
.single-product .content-area {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Forzar transparencia/fondo gris en todos los contenedores de la página de producto */
body.single-product,
body.single-product #page,
body.single-product #content,
body.single-product .site-content,
body.single-product article,
body.single-product article.product,
body.single-product .entry-content,
body.single-product .woocommerce-notices-wrapper,
body.single-product .product {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* En caso de que el maquetador use tarjetas con fondo blanco explícito */
body.single-product [class*="container"],
body.single-product [class*="wrapper"],
body.single-product [class*="card"] {
    background-color: transparent !important;
    box-shadow: none !important;
}
/* Color global para todos los botones de WooCommerce y WordPress */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #20a29b !important;
    border-color: #20a29b !important;
    color: #ffffff !important;
}

/* Estado Hover y Focus (al pasar el ratón) */
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #19837d !important; /* Un tono ligeramente más oscuro para el efecto feedback */
    border-color: #19837d !important;
    color: #ffffff !important;
}
/* Ampliar ancho de la columna Acciones */
.woocommerce-orders-table__cell-order-actions,
.woocommerce-orders-table__header-order-actions {
    min-width: 180px !important;
    text-align: center !important;
}

.woocommerce-orders-table__cell-order-actions .button {
    margin: 2px 4px !important;
    display: inline-block !important;
}

/* ============================================================================
 * AJUSTE RESPONSIVO DEL LOGO PARA CABECERA Y MENÚ MÓVIL (GENERATEPRESS)
 * ============================================================================ */

/* Escritorio y Tablets (Pantallas de 768px en adelante) */
@media (min-width: 768px) {
    .site-header .header-image,
    .site-logo img,
    .main-navigation .site-logo img {
        width: 200px !important;
        max-width: 200px !important;
        height: auto !important;
    }
}

/* Dispositivos Móviles (Pantallas menores de 768px) */
@media (max-width: 767px) {
    .site-header .header-image,
    .site-logo img,
    .mobile-header-logo img,
    .main-navigation .site-logo img {
        width: 150px !important;
        max-width: 150px !important;
        height: auto !important;
    }

    /* Asegurar distribución limpia en la cabecera móvil */
    .site-header .inside-header,
    .navigation-search,
    .mobile-header-navigation .inside-navigation {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}

.woocommerce-account .woocommerce-Message--info .button,
.woocommerce-account .woocommerce-info .button {
    display: none !important;
}

.febiotec-table-subtext {
    font-size: 0.85em;      /* Reduce el tamaño respecto al texto base */
    font-weight: normal;   /* Opcional: le quita la negrita al paréntesis para dar mayor contraste */
    color: #64748b;        /* Opcional: un tono gris neutro más suave */
    display: block;        /* Opcional: fuerza un salto de línea para que quede debajo del título */
}