/**
 * ============================================================
 * MEGA MENÚ DE CATEGORÍAS WOOCOMMERCE - HERCOM
 * Sube este archivo como "lc-mega-menu.css" dentro de tu tema activo
 * ============================================================
 */

/* Sobreescribe el ancho que Elementor pone inline en el contenedor padre */
#e-n-menu-content-1272 {
    width: 100% !important;
}

/* Layout principal: imagen a la izquierda + columnas a la derecha */
.lc-mega-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    min-height: 320px;
}

/* Panel izquierdo con la imagen */
.lc-mega-img-panel {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    background: #f5f7fa;
    border-right: 1px solid #e2e2e2;
}

.lc-mega-img {
    max-width: 140px;
    width: 100%;
    height: auto;
    display: block;
}

/* Wrapper de columnas con scroll horizontal */
.lc-mega-cols-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 28px;
    overflow-x: auto;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.lc-mega-col {
    min-width: 200px;
    flex: 0 0 auto;
}

.lc-mega-col + .lc-mega-col {
    border-left: 1px solid #e2e2e2;
    padding-left: 24px;
}

.lc-mega-col-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #1a3c8c;
    margin-bottom: 14px;
    min-height: 20px;
}

.lc-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lc-mega-item {
    margin-bottom: 10px;
}

.lc-mega-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lc-mega-item-name {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lc-mega-item-name:hover {
    color: #1a3c8c;
    text-decoration: underline;
}

.lc-mega-item.is-active > .lc-mega-item-row .lc-mega-item-name {
    color: #1a3c8c;
    font-weight: 600;
    text-decoration: underline;
}

.lc-mega-item-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.lc-mega-item-expand:hover {
    color: #1a3c8c;
    transform: translateX(2px);
}

.lc-mega-item.is-active > .lc-mega-item-row .lc-mega-item-expand {
    color: #1a3c8c;
}

/* Móvil: imagen arriba, columnas debajo */
@media (max-width: 768px) {
    .lc-mega-menu {
        flex-direction: column;
        max-width: 100%;
    }

    .lc-mega-img-panel {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e2e2e2;
        padding: 16px;
    }

    .lc-mega-img {
        max-width: 100px;
    }

    .lc-mega-cols-wrapper {
        padding: 16px;
        gap: 16px;
    }

    .lc-mega-col {
        min-width: 160px;
    }

    .lc-mega-item-name {
        font-size: 15px;
    }

    .lc-mega-col-title {
        font-size: 13px;
    }
}
