/**
 * Frontend Styles
 *
 * @package RP3_Multi_Brand
 * @version 2.0.1
 */

/* ============================================
   BRAND TAB STYLING
   - Cada tab tiene borde #5E5E5E
   - Active: fondo #F3F1F1, línea de color solo en ese tab
   - Inactive: fondo #DCDCDC
   ============================================ */
.logo-tab {
    position: relative;
    transition: all 0.3s ease;
    background-color: #DCDCDC;
    border-top: none;
    border-bottom: none;
    border-left: 1px solid rgba(94, 94, 94, 0.2);
    border-right: 1px solid rgba(94, 94, 94, 0.2);
    box-sizing: border-box;
}

.logo-tab.active-logo {
    background-color: #F3F1F1;
}

/* Línea de color SOLO en el tab activo */
.logo-tab.active-logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: currentColor;
    transition: all 0.3s ease;
}

/* Tabs inactivos NO tienen línea */
.logo-tab:not(.active-logo)::after {
    display: none;
}

/* Brand header wrapper */
.rp3-mb-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Banner text */
.rp3-mb-banner-text {
    flex: 1;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 20px;
}

/* Custom links */
.rp3-mb-custom-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rp3-mb-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.rp3-mb-link:hover {
    opacity: 0.8;
}

/* Brand switching animation */
.rp3-brand-switching {
    position: relative;
}

.rp3-brand-switching::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .rp3-mb-header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .rp3-mb-custom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-tab img {
        height: 36px !important;
    }
}
