/* ==========================================================================
   PAMAS MEGA MENU - MODERN STYLES
   ========================================================================== */

/* INTEGRACIÓN CON EL MENÚ DESPLEGABLE DE CATEGORÍAS DE WOODMART (.wd-dropdown-cats) */
.wd-dropdown-cats.pamas-mega-menu-active-dropdown {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 1240px !important;
    max-width: calc(100vw - 30px) !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    border-radius: 14px !important;
}

.whb-column .wd-dropdown-cats.pamas-mega-menu-active-dropdown,
.wd-dropdown-menu.wd-dropdown-cats.pamas-mega-menu-active-dropdown {
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    width: 1240px !important;
    max-width: calc(100vw - 30px) !important;
}

.wd-dropdown-cats.pamas-mega-menu-active-dropdown .pamas-mega-menu-wrapper {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18) !important;
}

.pamas-mega-menu-wrapper {
    display: flex;
    background-color: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 480px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
}


/* --------------------------------------------------------------------------
   COLUMNA IZQUIERDA: PESTAÑAS VERTICALES Y AYUDA
   -------------------------------------------------------------------------- */
.pamas-mm-sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
}

.pamas-mm-tabs-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pamas-mm-tab-item {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pamas-mm-tab-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #334155 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pamas-mm-tab-item:hover .pamas-mm-tab-link,
.pamas-mm-tab-item.active .pamas-mm-tab-link {
    background-color: #eff6ff;
    color: #0195fa !important;
}

.pamas-mm-tab-arrow {
    font-size: 18px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.pamas-mm-tab-item.active .pamas-mm-tab-arrow {
    color: #0195fa;
    transform: translateX(2px);
}

/* TARJETA DE AYUDA LATERAL */
.pamas-mm-help-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-top: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.pamas-mm-help-icon {
    background-color: #eff6ff;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pamas-mm-help-content strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 2px;
}

.pamas-mm-help-content p {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 8px 0 !important;
    line-height: 1.3;
}

.pamas-mm-help-link {
    font-size: 12px;
    font-weight: 700;
    color: #0195fa !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pamas-mm-help-link:hover {
    color: #0056b3 !important;
}

/* --------------------------------------------------------------------------
   AREA DE CONTENIDO DERECHA
   -------------------------------------------------------------------------- */
.pamas-mm-content-area {
    flex: 1;
    padding: 24px 30px;
    background-color: #ffffff;
}

.pamas-mm-tab-content {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.pamas-mm-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.pamas-mm-content-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0195fa;
    margin: 0 0 20px 0 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* GRID DINÁMICO DE COLUMNAS DE CONTENIDO */
.pamas-mm-grid-4col {
    display: flex;
    gap: 20px;
    width: 100%;
}

.pamas-mm-col {
    flex: 1;
    min-width: 0;
}

.pamas-mm-col:not(:last-child) {
    border-right: 1px solid #e2e8f0;
    padding-right: 20px;
}

.pamas-mm-col-3 {
    flex: 1.4;
}



.pamas-mm-col-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.pamas-mm-col-title .pamas-mm-icon {
    font-size: 18px;
}

.pamas-mm-col-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 !important;
}

/* LISTAS Y DIVISIÓN EN 2 COLUMNAS AUTOMÁTICAS (BALANCED) */
.pamas-mm-subcat-list,
.pamas-mm-attr-list,
.pamas-mm-brands-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Soporte para dividir en 2 sub-columnas cuando hay muchos elementos */
.pamas-mm-split-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px !important;
}

.pamas-mm-subcat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pamas-mm-subcat-list li a:hover {
    color: #0195fa !important;
}

.subcat-item-icon {
    font-size: 15px;
}

/* BOTÓN CTA INFERIOR EN COL 1 */
.pamas-mm-cta-wrapper {
    margin-top: 24px;
}

.pamas-mm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0195fa;
    color: #ffffff !important;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(1, 149, 250, 0.3);
}

.pamas-mm-cta-btn:hover {
    background-color: #000000;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* COLUMNA 2: ATRIBUTOS / TECNOLOGÍA */
.pamas-mm-attr-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.pamas-mm-attr-list li a:hover {
    color: #0195fa !important;
}

.attr-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* COLUMNA 3: MARCAS */
.pamas-mm-brands-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 3px 0;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pamas-mm-brands-list li a:hover {
    color: #0195fa !important;
}

.brand-logo {
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand-text-logo {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* COLUMNA 4: BANNER PROMOCIONAL */
.pamas-mm-banner-box {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.pamas-mm-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.pamas-mm-banner-clean {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pamas-mm-banner-clean img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: none;
}

.pamas-mm-banner-box.default-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid #334155;
}

.banner-badge {
    background-color: #0195fa;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banner-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .pamas-mega-menu-wrapper {
        flex-direction: column;
    }
    .pamas-mm-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .pamas-mm-grid-4col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .pamas-mm-grid-4col {
        grid-template-columns: 1fr;
    }
}
