/* ============================================================
   MENU HIPERVINCULOS - NICC
   Plugin: nicchipervinculos
   Version: Iconos PNG 3D profesionales
   
   VARIABLES DINAMICAS:
   Este archivo usa variables LESS que se obtienen de style.ini
   Los colores ahora son personalizables desde Personalizacion Visual
   ============================================================ */

/* Variables auxiliares */
@hiper_primary: @ini_hiper_border;
@hiper_shadow: @ini_hiper_shadow;

.nicc-menu-hipervinculos {
    width: 100%;
    max-width: 2240px;
    min-width: 500px;
    background: linear-gradient(145deg, @ini_hiper_bg, #f8fafc);
    border-radius: @ini_hiper_radius;
    padding: 30px;
    box-shadow: 0 15px 50px fade(#000, 6%);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 20px auto;
    box-sizing: border-box;
}

.nicc-menu-hipervinculos .menu-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: @ini_hiper_text;
    margin-bottom: 22px;
}

.nicc-menu-hipervinculos .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.nicc-menu-hipervinculos .menu-item {
    background: linear-gradient(145deg, @ini_hiper_bg, @ini_hiper_icon_bg);
    border-radius: calc(@ini_hiper_radius + 2px);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid fade(@hiper_primary, 10%);
    box-shadow:
        0 4px 15px fade(@hiper_shadow, 8%),
        0 2px 6px fade(#000, 3%);
    text-decoration: none !important;
}

.nicc-menu-hipervinculos .menu-item:hover {
    transform: translateY(-4px);
    border-color: fade(@hiper_primary, 25%);
    background: linear-gradient(145deg, #f8faff, @ini_hiper_bg_hover);
    box-shadow:
        0 10px 30px fade(@hiper_shadow, 18%),
        0 5px 12px fade(#000, 5%);
}

.nicc-menu-hipervinculos .menu-item.full-width {
    grid-column: span 2;
    flex-direction: row;
    text-align: left;
    padding: 20px 24px;
}

.nicc-menu-hipervinculos .item-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, @ini_hiper_bg, @ini_hiper_icon_bg);
    border-radius: calc(@ini_hiper_radius + 2px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 12px fade(@hiper_shadow, 12%),
        inset 0 1px 0 fade(#fff, 80%);
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px;
}

.nicc-menu-hipervinculos .item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px fade(#000, 12%));
    transition: all 0.3s ease;
}

.nicc-menu-hipervinculos .menu-item.full-width .item-icon {
    width: 56px;
    height: 56px;
    padding: 8px;
}

.nicc-menu-hipervinculos .item-text {
    font-weight: 600;
    color: @ini_hiper_text;
    font-size: 0.95rem;
    line-height: 1.4;
}

.nicc-menu-hipervinculos .menu-item.full-width .item-text {
    font-size: 1.05rem;
}

.nicc-menu-hipervinculos .menu-item:hover .item-icon {
    transform: scale(1.08);
    box-shadow:
        0 6px 20px fade(@hiper_shadow, 20%),
        inset 0 1px 0 fade(#fff, 90%);
}

.nicc-menu-hipervinculos .menu-item:hover .item-icon img {
    filter: drop-shadow(0 4px 8px fade(@hiper_shadow, 25%));
    transform: scale(1.05);
}

/* ============================================================
   EMOJI FALLBACK (cuando no hay imagen PNG)
   ============================================================ */
.nicc-menu-hipervinculos .emoji-icon {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
    .nicc-menu-hipervinculos {
        width: 100%;
        padding: 20px;
        min-width: auto;
    }

    .nicc-menu-hipervinculos .menu-grid {
        gap: 10px;
    }

    .nicc-menu-hipervinculos .menu-item {
        padding: 18px 14px;
    }

    .nicc-menu-hipervinculos .item-icon {
        width: 52px;
        height: 52px;
        padding: 8px;
    }

    .nicc-menu-hipervinculos .item-text {
        font-size: 0.85rem;
    }

    .nicc-menu-hipervinculos .menu-title {
        font-size: 1.3rem;
    }
}
