/* Estilos para el tooltip de información de addons */
.addon-info-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
    cursor: pointer;
}

.addon-info-tooltip .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #116EFB;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

.addon-info-tooltip .info-text {
    color: #116EFB;
    font-size: 12px;
    font-weight: 500;
}

.addon-info-tooltip .tooltip-content {
    position: absolute;
    top: calc(100% + 10px);
    left: -15px;
    background-color: rgba(19, 23, 29, 0.95);
    color: #F7F6F0;
    padding: 12px 15px;
    border-radius: 6px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    text-align: left;
    line-height: 1.5;
}

.addon-info-tooltip .tooltip-content::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background-color: rgba(19, 23, 29, 0.95);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.addon-info-tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Reorganizar la estructura del addon para escritorio */
.addon-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.addon-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.addon-name {
    margin-right: 8px;
}

/* Versión para móvil */
@media (max-width: 768px) {
    /* Mantener la estructura de fila en móvil */
    .addon-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .addon-header {
        display: flex;
        align-items: flex-start;
        align-content: flex-start;
        flex: 1;
        flex-wrap: wrap;
    }
    
    .addon-name {
        margin-right: 8px;
    }
    
    .addon-price {
        margin-right: 10px;
    }
    
    .addon-info-tooltip {
        margin-left: 6px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    /* Posicionar el tooltip */
    .addon-info-tooltip .tooltip-content {
        width: 200px;
        left: auto;
        right: 0;
        transform: none;
    }

    .addon-info-tooltip .tooltip-content::before {
        left: auto;
        right: 10px;
    }
    
    /* En móvil mostramos el icono Y el texto "Más info" */
    .addon-info-tooltip .info-text {
        display: inline-block;
        font-size: 11px;
    }
}

/* Para dispositivos táctiles */
.touch-device .tooltip-content.tooltip-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}